-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (56 loc) · 1.59 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
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'airbnb-typescript'],
parserOptions: {
project: './tsconfig.json',
ecmaFeatures: {
jsx: true
},
ecmaVersion: 'latest',
sourceType: 'module'
},
env: {
browser: true,
es2021: true
},
parser: '@typescript-eslint/parser',
plugins: ['react', 'react-hooks', 'prettier', '@typescript-eslint'],
rules: {
'prettier/prettier': [
'error',
{
useTabs: false
}
],
'no-console': 'off', // TEMP
'func-names': 0,
'prefer-destructuring': 0,
'@typescript-eslint/semi': 'off',
'react/style-prop-object': 'off',
'react/function-component-definition': 'off',
'arrow-body-style': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/comma-dangle': 'off',
'consistent-return': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-extra-semi': 'off',
'no-plusplus': 'off',
'@typescript-eslint/indent': 'off',
'react/no-unstable-nested-components': 'off',
'react-hooks/exhaustive-deps': 'warn',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.tsx'] }],
'import/no-relative-parent-imports': 'error',
'no-return-await': 'off',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'import/no-relative-parent-imports': 'off',
'jsx-a11y/label-has-associated-control': [
2,
{
assert: 'either',
depth: 3
}
]
}
}