-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
51 lines (51 loc) · 1.51 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
module.exports = {
root: true,
parser: 'babel-eslint',
extends: 'airbnb-base',
env: {
'node': true,
'es6': true,
'mocha': true,
},
parserOptions: {
'ecmaVersion': 6,
// 'sourceType': 'script', //module
},
rules: {
'import/extensions': ['off', 'always', {
'js': 'never',
}],
'indent': [2, 4, {SwitchCase: 1}],
'space-before-function-paren': 0,
'semi': 0,
'spaced-comment': [2, 'always', {block: {balanced: true}}],
'no-multiple-empty-lines': [2, {max: 2, maxBOF: 1}],
'linebreak-style': 0,
'no-param-reassign': 0,
'no-use-before-define': 0,
'no-plusplus': 0,
'no-bitwise': 0,
'max-len': [2, 150, 4, {ignoreStrings: true, ignoreTemplateLiterals: true}],
'no-console': 0,
'object-curly-spacing': [2, 'never'],
'object-curly-newline': 0,
'no-script-url': 0,
'arrow-body-style': 0,
'camelcase': 1,
'no-mixed-operators': 0,
'no-new': 0,
'no-continue': 0,
'no-else-return': 0,
'no-unused-vars': 1,
'brace-style': [2, '1tbs', {'allowSingleLine': false}],
'no-underscore-dangle': 0,
'class-methods-use-this': 0,
'prefer-arrow-callback': 1,
'import/no-named-as-default-member': 0,
'no-multi-spaces': 0,
'prefer-destructuring': 0,
'function-paren-newline': 0,
'no-alert': 2,
'arrow-parens': 0,
},
}