-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.13 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
module.exports = {
env: {
browser: true,
node: true,
},
extends: ['airbnb/base', 'prettier'],
plugins: ['prettier', 'react'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
parser: 'babel-eslint',
rules: {
'prettier/prettier': ['error'],
'arrow-spacing': 0,
'comma-dangle': 0,
'func-names': 0,
'object-shorthand': 0,
'newline-after-var': 0,
'no-console': 0,
'no-invalid-this': 0,
'object-curly-spacing': [2, 'always'],
'prefer-arrow-callback': 0,
'prefer-const': 1,
'prefer-reflect': 0,
'space-before-function-paren': [0, { anonymous: 'always', named: 'always' }],
'class-methods-use-this': 0,
'no-shadow': 0,
'no-plusplus': 0,
'no-new': 0,
'no-unused-vars': [1, { vars: 'local', args: 'none' }],
'no-param-reassign': 0,
radix: 0,
'no-multi-assign': 0,
'no-alert': 0,
"no-use-before-define": ["error", { "variables": false }],
},
};