File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -66,5 +66,9 @@ Add the following to `package.json`:
66
66
" editor.codeActionsOnSave" : {
67
67
" source.fixAll.eslint" : " explicit" ,
68
68
},
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" ,
69
73
}
70
74
```
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ import { selfClosingComp } from './rules/custom/self-closing-comp.js';
24
24
25
25
/** @type {import('typescript-eslint').ConfigWithExtends[] } */
26
26
const jsConfigs = [
27
- includeIgnoreFile ( join ( process . cwd ( ) , '.gitignore' ) ) ,
28
- { ignores : [ '**/*.snap' , '**/.next' ] , name : 'eslint-config-kyle/ignore' } ,
29
27
eslint . configs . recommended ,
30
28
...tsEslint . configs . strict ,
31
29
...tsEslint . configs . stylistic ,
@@ -76,6 +74,12 @@ const jsConfigs = [
76
74
] ;
77
75
78
76
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
+
79
83
// we need to update all JS configs to only validate JS/TS files,
80
84
// because other languages don't necessarily have a compatible
81
85
// AST API...
You can’t perform that action at this time.
0 commit comments