-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
52 lines (50 loc) · 1.29 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2018,
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
root: true,
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
globals: {
ENV: true,
},
plugins: ['react', 'import', '@typescript-eslint'],
extends: [
'airbnb-typescript',
'airbnb/hooks',
'prettier',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'no-console': 'warn',
'react/prop-types': ['off'],
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-filename-extension': [
'error',
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
],
'react/jsx-props-no-spreading': 'off',
'import/prefer-default-export': 'off',
'jsx-a11y/no-onchange': 'warn',
'func-style': ['error', 'expression'],
'@typescript-eslint/no-unused-vars-experimental': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'off',
// FIXME: Temp rules during the transitoin wa keda
'@typescript-eslint/no-unused-vars-experimental': 'off',
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'warn',
},
ignorePatterns: ['.eslintrc.js'],
}