File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
Original file line number Diff line number Diff line change @@ -248,18 +248,16 @@ We found that this is a pretty common operation when writing ESLint configs whic
248
248
For example in codebases with type-aware linting a config object like this is a very common way to disable TS-specific linting setups on JS files:
249
249
250
250
``` js
251
- export default tseslint .config ([
252
- {
253
- files: [' **/*.js' ],
254
- extends: [tseslint .configs .disableTypeChecked ],
255
- rules: {
256
- // turn off other type-aware rules
257
- ' deprecation/deprecation' : ' off' ,
258
- ' @typescript-eslint/internal/no-poorly-typed-ts-props' : ' off' ,
251
+ export default tseslint .config ({
252
+ files: [' **/*.js' ],
253
+ extends: [tseslint .configs .disableTypeChecked ],
254
+ rules: {
255
+ // turn off other type-aware rules
256
+ ' deprecation/deprecation' : ' off' ,
257
+ ' @typescript-eslint/internal/no-poorly-typed-ts-props' : ' off' ,
259
258
260
- // turn off rules that don't apply to JS code
261
- ' @typescript-eslint/explicit-function-return-type' : ' off' ,
262
- },
259
+ // turn off rules that don't apply to JS code
260
+ ' @typescript-eslint/explicit-function-return-type' : ' off' ,
263
261
},
264
- ] );
262
+ } );
265
263
```
You can’t perform that action at this time.
0 commit comments