-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
54 lines (54 loc) · 1.33 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
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
plugins: ['@typescript-eslint', 'react-hooks'],
parserOptions: {
ecmaVersion: 2015,
sourceType: 'module',
},
parser: '@typescript-eslint/parser',
rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-debugger': 2,
'no-undef': 0,
'no-unused-vars': 0,
'no-mixed-spaces-and-tabs': 0,
camelcase: 2,
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-delete-var': 2,
'no-dupe-keys': 2,
'no-dupe-args': 2,
'no-else-return': 2,
'no-eval': 2,
'no-extra-bind': 2,
'no-implied-eval': 2,
'no-invalid-regexp': 2,
'no-irregular-whitespace': 2,
'no-lonely-if': 2,
'no-multiple-empty-lines': [1, { max: 2 }],
'no-proto': 2,
'no-redeclare': 2,
'no-sparse-arrays': 2,
'no-trailing-spaces': 2,
'no-unexpected-multiline': 2,
'no-underscore-dangle': 0,
'no-unneeded-ternary': 2,
'no-useless-call': 2,
'no-empty': 0,
'no-duplicate-imports': 2,
'no-floating-decimal': 2,
'react/prop-types': 0,
},
settings: {
react: {
version: '16.8',
},
},
};