Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update ignore patterns in eslint.config.js #16678

Merged
merged 1 commit into from Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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