-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(lint): Merge TS and JS linting ESLint configs
- Loading branch information
1 parent
7b17647
commit 6cddc13
Showing
7 changed files
with
30 additions
and
28 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 |
---|---|---|
@@ -1,16 +1,36 @@ | ||
// eslint config for .js files | ||
module.exports = { | ||
extends: [ | ||
'standard' | ||
], | ||
plugins: [ | ||
'react' | ||
], | ||
rules: { | ||
'react/jsx-uses-react': 'error', | ||
'react/jsx-uses-vars': 'error' | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
jsx: true | ||
} | ||
jsx: true, | ||
ecmaVersion: 2018 | ||
}, | ||
overrides: [ | ||
// linting for js files | ||
{ | ||
files: ['**/*.js'], | ||
extends: [ | ||
'standard' | ||
] | ||
}, | ||
// linting for ts files | ||
{ | ||
files: ['**/*.ts'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended' | ||
], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off' | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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
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