File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ // @ts -check
1
2
// TODO(@lishaduck) [eslint@>9.5]: Use `.ts` extension to get more type checking for this file.
2
3
// TODO(@lishaduck) [engine:node@>=18]: Upgrade `tseslint`.
3
4
// TODO(@lishaduck) [engine:node@>=18]: Use `eslint-define-config` to get type checking for this file.
@@ -32,7 +33,6 @@ module.exports = {
32
33
'test/snapshots' ,
33
34
'test/temporary' ,
34
35
'vendor/' ,
35
- '.eslintrc.js' ,
36
36
'new-package/elm-review-package-tests/check-previews-compile.js'
37
37
] ,
38
38
rules : {
@@ -114,6 +114,13 @@ module.exports = {
114
114
'n/no-process-exit' : 'off' ,
115
115
'@typescript-eslint/unbound-method' : 'off' // TODO(@lishaduck): Fix this warning. I just got confused.
116
116
}
117
+ } ,
118
+ {
119
+ files : [ '.eslintrc.js' ] ,
120
+ rules : {
121
+ camelcase : 'off' ,
122
+ '@typescript-eslint/prefer-nullish-coalescing' : 'off' // It's not happy with how TS is set up on this config file.
123
+ }
117
124
}
118
125
] ,
119
126
globals : {
Original file line number Diff line number Diff line change 47
47
"check-engines" : " ls-engines --mode=ideal" ,
48
48
"elm-format" : " elm-format --validate ast-codec init-templates new-package parseElm review template" ,
49
49
"elm-tests" : " (cd template/ && elm make src/Elm/Review/Main.elm --output=/dev/null && elm-test)" ,
50
- "eslint-check" : " eslint . --report-unused-disable-directives --max-warnings=2 " ,
50
+ "eslint-check" : " eslint . --report-unused-disable-directives --max-warnings=7 " ,
51
51
"eslint-fix" : " npm run eslint-check -- --fix" ,
52
52
"jest" : " npx jest" ,
53
53
"prepare" : " elm-tooling install" ,
Original file line number Diff line number Diff line change 31
31
"exclude" : [
32
32
" node_modules" ,
33
33
" **/elm-stuff/" ,
34
- " .eslintrc.js" ,
35
34
" new-package/elm-review-package-tests/check-previews-compile.js" ,
36
35
" test/temporary"
37
36
]
You can’t perform that action at this time.
0 commit comments