-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.2 KB
/
.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
36
37
38
39
40
41
module.exports = {
extends: ['airbnb', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'import'],
env: {
browser: true,
node: true,
},
globals: {
window: false,
document: false,
it: false,
describe: false,
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'import/no-extraneous-dependencies': [2, { devDependencies: ['**/test.tsx', '**/test.ts'] }],
'@typescript-eslint/indent': [2, 2],
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-explicit-any': 0,
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-props-no-spreading': 0,
'react/prop-types': 0,
'implicit-arrow-linebreak': 0,
'operator-linebreak': [1, 'after'],
'import/no-unresolved': [2, { ignore: ['RootTypes'] }],
},
};