Skip to content

Commit 0f78d76

Browse files
committed
fix performance issue causing ignore-rules to be ignored
re eslint/eslint#19297
1 parent a053371 commit 0f78d76

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,9 @@ Add the following to `package.json`:
6666
"editor.codeActionsOnSave": {
6767
"source.fixAll.eslint": "explicit",
6868
},
69+
70+
// optional, if the local vs global versions conflict.
71+
// the exact syntax would depend on your package manager.
72+
"prettier.prettierPath": "./node_modules/prettier",
6973
}
7074
```

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import { selfClosingComp } from './rules/custom/self-closing-comp.js';
2424

2525
/** @type {import('typescript-eslint').ConfigWithExtends[]} */
2626
const jsConfigs = [
27-
includeIgnoreFile(join(process.cwd(), '.gitignore')),
28-
{ ignores: ['**/*.snap', '**/.next'], name: 'eslint-config-kyle/ignore' },
2927
eslint.configs.recommended,
3028
...tsEslint.configs.strict,
3129
...tsEslint.configs.stylistic,
@@ -76,6 +74,12 @@ const jsConfigs = [
7674
];
7775

7876
export default tsEslint.config(
77+
// ignore everything that is not version-controlled
78+
includeIgnoreFile(join(process.cwd(), '.gitignore')),
79+
80+
// and ignore some files that _are_ version-controlled
81+
{ ignores: ['**/*.snap'], name: 'eslint-config-kyle/ignore' },
82+
7983
// we need to update all JS configs to only validate JS/TS files,
8084
// because other languages don't necessarily have a compatible
8185
// AST API...

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy