-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow for better handling of javascript files
- Loading branch information
Showing
5 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@mscharley/eslint-config': patch | ||
--- | ||
|
||
Prevent better support for linting JS files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
import { configs as mscharley, withStyles } from '@mscharley/eslint-config'; | ||
import { configs as tseslint } from 'typescript-eslint'; | ||
import { disableTypeCheckedRules, configs as mscharley, withStyles } from '@mscharley/eslint-config'; | ||
|
||
const c = [ | ||
...mscharley.recommended, | ||
...withStyles(), | ||
{ | ||
ignores: ['**/dist/**'], | ||
}, | ||
{ | ||
files: [ | ||
// No global typescript project | ||
'*.js', | ||
// Most eslint plugins don't bother with typescript types which causes issues. | ||
'presets/eslint/rules/**/*.js', | ||
// Prettier doesn't have a typescript project | ||
'presets/prettier/**/*.js', | ||
// Disable for config files in the root of the commands | ||
'commands/*/*.js', | ||
], | ||
...tseslint.disableTypeChecked, | ||
}, | ||
disableTypeCheckedRules( | ||
// No global typescript project | ||
'*.js', | ||
// Most eslint plugins don't bother with typescript types which causes issues. | ||
'presets/eslint/rules/**/*.js', | ||
// Prettier doesn't have a typescript project | ||
'presets/prettier/**/*.js', | ||
// Disable for config files in the root of the commands | ||
'commands/*/*.js', | ||
), | ||
]; | ||
|
||
export default c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters