зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 44fb0e3f3843 (bug 1789249) for causing mozlint failures. CLOSED TREE
This commit is contained in:
Родитель
c4dd970059
Коммит
e03fe088c7
|
@ -218,9 +218,6 @@ toolkit/components/translation/cld2/
|
|||
toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
|
||||
toolkit/modules/AppConstants.jsm
|
||||
|
||||
# Tests of ESLint command.
|
||||
tools/lint/test/files
|
||||
|
||||
# Uses special template formatting.
|
||||
tools/tryselect/selectors/chooser/templates/chooser.html
|
||||
|
||||
|
|
40
.eslintrc.js
40
.eslintrc.js
|
@ -22,28 +22,28 @@ function removeOverrides(config) {
|
|||
return config;
|
||||
}
|
||||
|
||||
function readFile(path) {
|
||||
return fs
|
||||
.readFileSync(path, { encoding: "utf-8" })
|
||||
.split("\n")
|
||||
.filter(p => p && !p.startsWith("#"));
|
||||
}
|
||||
|
||||
const ignorePatterns = [
|
||||
...readFile(
|
||||
path.join(__dirname, "tools", "rewriting", "ThirdPartyPaths.txt")
|
||||
),
|
||||
...readFile(path.join(__dirname, "tools", "rewriting", "Generated.txt")),
|
||||
...readFile(
|
||||
path.join(
|
||||
__dirname,
|
||||
"devtools",
|
||||
"client",
|
||||
"debugger",
|
||||
"src",
|
||||
".eslintignore"
|
||||
...fs
|
||||
.readFileSync(
|
||||
path.join(__dirname, "tools", "rewriting", "ThirdPartyPaths.txt")
|
||||
)
|
||||
).map(p => `devtools/client/debugger/src/${p}`),
|
||||
.toString("utf-8")
|
||||
.split("\n"),
|
||||
...fs
|
||||
.readFileSync(
|
||||
path.join(
|
||||
__dirname,
|
||||
"devtools",
|
||||
"client",
|
||||
"debugger",
|
||||
"src",
|
||||
".eslintignore"
|
||||
)
|
||||
)
|
||||
.toString("utf-8")
|
||||
.split("\n")
|
||||
.filter(p => p && !p.startsWith("#"))
|
||||
.map(p => `devtools/client/debugger/src/${p}`),
|
||||
];
|
||||
const httpTestingPaths = [
|
||||
"**/*mixedcontent",
|
||||
|
|
Загрузка…
Ссылка в новой задаче