-
Notifications
You must be signed in to change notification settings - Fork 54
/
.eslintrc.js
35 lines (35 loc) · 1006 Bytes
/
.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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
es6: true,
},
extends: [],
plugins: ['react', 'react-hooks', 'import', '@typescript-eslint'],
rules: {
'@typescript-eslint/class-name-casing': 'warn',
'@typescript-eslint/no-array-constructor': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
'import/newline-after-import': 'warn',
'import/no-cycle': 'error',
'import/no-default-export': 'warn',
'import/no-extraneous-dependencies': 'error',
'import/no-relative-parent-imports': 'warn',
'no-var': 'warn',
'prefer-arrow-callback': 'warn',
'prefer-const': 'warn',
radix: 'warn',
'react/jsx-uses-react': 'warn',
'react/jsx-uses-vars': 'warn',
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'warn',
'react/sort-comp': 'warn',
},
};