зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1608799 - Load devtools debugger's .eslintignore directly into ESLint to avoid duplication. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D60148 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7a5528ceb9
Коммит
7164a847f0
|
@ -66,19 +66,6 @@ devtools/server/tests/browser/storage-*.html
|
|||
!devtools/server/tests/browser/storage-unsecured-iframe.html
|
||||
devtools/server/tests/browser/stylesheets-nested-iframes.html
|
||||
devtools/client/webreplay/mochitest/examples/*.html
|
||||
|
||||
# Ignore devtools debugger files
|
||||
# Keep in sync with devtools/client/debugger/.eslintignore
|
||||
devtools/client/debugger/assets/*
|
||||
devtools/client/debugger/src/test/examples/
|
||||
devtools/client/debugger/src/test/integration/
|
||||
devtools/client/debugger/src/test/unit-sources/
|
||||
devtools/client/debugger/src/**/fixtures/
|
||||
devtools/client/debugger/src/test/mochitest/
|
||||
devtools/client/debugger/bin/
|
||||
devtools/client/debugger/packages/**/fixtures/
|
||||
devtools/client/debugger/node_modules
|
||||
devtools/client/debugger/out
|
||||
devtools/client/webreplay/mochitest/examples/
|
||||
|
||||
# Ignore devtools debugger files which aren't intended for linting, and also
|
||||
|
|
13
.eslintrc.js
13
.eslintrc.js
|
@ -33,9 +33,16 @@ const chromeTestPaths = [
|
|||
"**/test*/chrome/",
|
||||
];
|
||||
|
||||
const ignorePatterns =
|
||||
fs.readFileSync("tools/rewriting/ThirdPartyPaths.txt")
|
||||
.toString("utf-8").split("\n");
|
||||
const ignorePatterns = [
|
||||
...fs.readFileSync("tools/rewriting/ThirdPartyPaths.txt")
|
||||
.toString("utf-8")
|
||||
.split("\n"),
|
||||
...fs.readFileSync("devtools/client/debugger/.eslintignore")
|
||||
.toString("utf-8")
|
||||
.split("\n")
|
||||
.filter(p => p && !p.startsWith("#"))
|
||||
.map(p => `devtools/client/debugger/${p}`),
|
||||
]
|
||||
|
||||
module.exports = {
|
||||
ignorePatterns,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# Keep in sync with top-level .eslintignore
|
||||
|
||||
assets/*
|
||||
src/test/examples/**
|
||||
src/test/integration/**
|
||||
|
@ -9,4 +7,4 @@ src/test/mochitest/**
|
|||
bin/
|
||||
packages/**/fixtures/**
|
||||
node_modules
|
||||
out
|
||||
out
|
||||
|
|
Загрузка…
Ссылка в новой задаче