-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.react.js
More file actions
56 lines (55 loc) · 1.3 KB
/
.eslintrc.react.js
File metadata and controls
56 lines (55 loc) · 1.3 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
project: './tsconfig.json',
ecmaFeatures: {
jsx: true,
tsx: true
}
},
plugins: [
'@typescript-eslint',
'import',
'jest',
'sort-keys-fix'
],
extends: [
'airbnb-typescript',
'prettier',
'plugin:jest/recommended'
],
env: {
browser: true,
node: true,
es6: true,
jest: true
},
settings: {
'import/resolver': {
typescript: {}
}
},
rules: {
'no-underscore-dangle': 'off',
'import/prefer-default-export': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-indent': 'off',
'class-methods-use-this': 'warn',
'sort-keys-fix/sort-keys-fix': 'error',
'react/no-did-update-set-state': 'off',
'react/no-find-dom-node':'off',
"import/extensions": [
"off",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
'import/no-extraneous-dependencies': 'off'
}
}