-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
45 lines (45 loc) · 1.01 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
42
43
44
45
module.exports = {
extends: [
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
],
env: {
browser: true,
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
rules: {
'react/function-component-definition': 'off',
'import/extensions': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'import/prefer-default-export': 'warn',
'max-len': 'off',
'no-param-reassign': 'warn',
'no-underscore-dangle': ['warn', { allow: ['_env_'] }],
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],
'prefer-destructuring': ['error', { object: true, array: true }],
},
settings: {
'import/resolver': {
typescript: {},
},
},
overrides: [
{
extends: ['plugin:@typescript-eslint/disable-type-checked'],
files: ['./*.js'],
},
],
};