-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.js
61 lines (61 loc) · 1.54 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
57
58
59
60
61
module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: true,
es6: true,
node: true,
},
extends: ['airbnb', 'plugin:prettier/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'import/prefer-default-export': 0,
'react/forbid-prop-types': 0,
'prefer-destructuring': 1,
'consistent-return': 1,
'no-control-regex': 1,
'no-useless-escape': 1,
'import/prefer-default-export ': 0,
'class-methods-use-this': 0,
'no-underscore-dangle': 0,
'no-unused-vars': 1,
'import/no-unresolved': 1,
'no-prototype-builtins': 1,
'import/extensions': 0,
'no-plusplus': 0,
'vars-on-top': 1,
'react/jsx-filename-extension': [
0,
{
extensions: ['.jsx', '.tsx'],
},
],
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }],
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/jsx-one-expression-per-line': 'off',
'no-return-await': 2,
'no-unused-expressions': 0,
'jsx-a11y/no-autofocus': 0,
'no-param-reassign': 0,
'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
};