-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
43 lines (43 loc) · 1001 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
36
37
38
39
40
41
42
43
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
commonjs: true,
es6: true,
amd: true,
},
extends: ['plugin:react/recommended', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 8,
ecmaFeatures: {
ecmaVersion: 2019,
jsx: true,
},
sourceType: 'module',
},
plugins: ['react-hooks'],
settings: {
react: {
pragma: 'React',
version: '16.8.5',
},
},
rules: {
'keyword-spacing': 'error',
'import/named': 0,
'import/prefer-default-export': 0,
indent: ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
'no-plusplus': 0,
'no-undef': 0,
'no-unsued-vars': 0,
'prettier/prettier': 'error',
quotes: ['error', 'single'],
'react/prop-types': 2,
'react/require-default-props': 0,
'react/jsx-filename-extension': 0,
'react-hooks/rules-of-hooks': 'error',
semi: ['error', 'always'],
'space-before-blocks': 'error',
},
};