Backed out changeset 44fb0e3f3843 (bug 1789249) for causing mozlint failures. CLOSED TREE

This commit is contained in:
Butkovits Atila 2022-09-07 11:52:01 +03:00
Родитель c4dd970059
Коммит e03fe088c7
2 изменённых файлов: 20 добавлений и 23 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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",