-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
35 lines (34 loc) · 963 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* eslint-disable prettier/prettier */
module.exports = {
plugins: ['jest'],
extends: [
'react-app',
'plugin:prettier/recommended',
'plugin:jest/recommended',
],
rules: {
eqeqeq: 'error',
'no-duplicate-imports': 'error',
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
},
overrides: [
{
files: ['src/**/*.{tsx,ts}'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'no-duplicate-imports': 'off',
'@typescript-eslint/no-duplicate-imports': 'error',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
}
]
};