Skip to content

Commit

Permalink
Backed out changeset 44fb0e3f3843 (bug 1789249) for causing mozlint f…
Browse files Browse the repository at this point in the history
…ailures. CLOSED TREE
  • Loading branch information
Butkovits Atila committed Sep 7, 2022
1 parent c4dd970 commit e03fe08
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
40 changes: 20 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e03fe08

Please sign in to comment.