Skip to content

Commit

Permalink
chore: update ignore patterns in eslint.config.js (#16678)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Dec 21, 2022
1 parent 6151d9e commit 10a5c78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile.js
Expand Up @@ -548,7 +548,7 @@ target.lintDocsJS = function([fix = false] = []) {
let errors = 0;

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

if (lastReturn.code !== 0) {
errors++;
Expand Down
5 changes: 2 additions & 3 deletions eslint.config.js
Expand Up @@ -82,7 +82,7 @@ module.exports = [
ignores: [
"build/**",
"coverage/**",
"docs/**",
"docs/*",
"!docs/.eleventy.js",
"jsdoc/**",
"templates/**",
Expand All @@ -91,8 +91,7 @@ module.exports = [
"tests/performance/**",
"tmp/**",
"tools/internal-rules/node_modules/**",
"**/test.js",
"!.eslintrc.js"
"**/test.js"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/eslint/flat-eslint.js
Expand Up @@ -4571,13 +4571,13 @@ describe("FlatESLint", () => {
beforeEach(prepare);
afterEach(cleanup);

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

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

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

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

0 comments on commit 10a5c78

Please sign in to comment.