Skip to content

Commit 10a5c78

Browse files
authored
chore: update ignore patterns in eslint.config.js (#16678)
1 parent 6151d9e commit 10a5c78

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

Makefile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ target.lintDocsJS = function([fix = false] = []) {
548548
let errors = 0;
549549

550550
echo("Validating JavaScript files in the docs directory");
551-
const lastReturn = exec(`${ESLINT}${fix ? "--fix" : ""} docs/.eleventy.js`);
551+
const lastReturn = exec(`${ESLINT}${fix ? "--fix" : ""} docs`);
552552

553553
if (lastReturn.code !== 0) {
554554
errors++;

eslint.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module.exports = [
8282
ignores: [
8383
"build/**",
8484
"coverage/**",
85-
"docs/**",
85+
"docs/*",
8686
"!docs/.eleventy.js",
8787
"jsdoc/**",
8888
"templates/**",
@@ -91,8 +91,7 @@ module.exports = [
9191
"tests/performance/**",
9292
"tmp/**",
9393
"tools/internal-rules/node_modules/**",
94-
"**/test.js",
95-
"!.eslintrc.js"
94+
"**/test.js"
9695
]
9796
},
9897
{

tests/lib/eslint/flat-eslint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4571,13 +4571,13 @@ describe("FlatESLint", () => {
45714571
beforeEach(prepare);
45724572
afterEach(cleanup);
45734573

4574-
it("'isPathIgnored()' should return 'true' for 'node_modules/foo/index.js'.", async () => {
4574+
it("'isPathIgnored()' should return 'false' for 'node_modules/foo/index.js'.", async () => {
45754575
const engine = new FlatESLint({ cwd: getPath() });
45764576

45774577
assert.strictEqual(await engine.isPathIgnored("node_modules/foo/index.js"), false);
45784578
});
45794579

4580-
it("'isPathIgnored()' should return 'true' for 'node_modules/foo/.dot.js'.", async () => {
4580+
it("'isPathIgnored()' should return 'false' for 'node_modules/foo/.dot.js'.", async () => {
45814581
const engine = new FlatESLint({ cwd: getPath() });
45824582

45834583
assert.strictEqual(await engine.isPathIgnored("node_modules/foo/.dot.js"), false);

0 commit comments

Comments
 (0)