-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.29 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
module.exports = {
extends: 'airbnb-base',
env: {
'browser': true,
'commonjs': true,
'node': true,
'es6': true
},
parser: 'babel-eslint',
parserOptions: {
'ecmaVersion': 6,
'ecmaFeatures': {
'experimentalObjectRestSpread': true,
'experimentalDecorators': true,
'experimentalOptionalChaining': true,
},
'sourceType': 'module'
},
rules: {
'space-before-function-paren': ['warn', 'always'],
'semi': ['warn', 'never', {
'beforeStatementContinuationChars': 'always',
}],
'object-curly-newline': ['off'],
'arrow-parens': ['off'],
'no-floating-decimal': ['off'],
'key-spacing': ['warn', {
'align': 'value'
}],
'consistent-return': ['off'],
'no-return-await': ['off'],
'prefer-arrow-callback': ['off'],
'no-unused-vars': ['warn'],
'max-len': ['warn', 120],
'no-underscore-dangle': ['off'],
'no-plusplus': ['off'],
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }],
'global-require': ['off'],
'no-confusing-arrow': ['off'],
'no-shadow': ['warn'],
'template-curly-spacing': ['warn', 'always'],
'arrow-body-style': ['off'],
'prefer-template': ['warn'],
'no-use-before-define': ['error', { 'variables': true, 'functions': false, 'classes': false }],
},
};