-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
39 lines (38 loc) · 1.09 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'airbnb-typescript',
],
plugins: ['react', '@typescript-eslint'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
env: {
browser: true,
node: true,
jest: true,
},
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, 4],
'react/jsx-indent': [2, 4],
'react/jsx-indent-props': [2, 4],
'jsx-a11y/label-has-associated-control': 0,
'jsx-a11y/label-has-for': 0,
'react/destructuring-assignment': 0,
'max-len': ['error', { 'code': 120 }],
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
settings: {
'import/resolver': {
node: { extensions: ['.js', '.mjs'] },
},
},
},
};