-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc.js
60 lines (60 loc) · 1.1 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
52
53
54
55
56
57
58
59
60
module.exports = {
'env': {
'node': true,
'es6': true,
},
'parserOptions': {
'ecmaVersion': 2018,
},
'globals': {
},
'rules': {
'semi': 1,
'no-bitwise': 2,
'camelcase': 0,
'curly': 2,
'guard-for-in': 2,
'no-trailing-spaces': 1,
'indent': [1, 2],
'wrap-iife': [
2,
'any'
],
'no-use-before-define': [
2,
{
'functions': false,
}
],
'max-len': [
2,
{
'code': 140,
'ignoreComments': true,
}
],
'new-cap': 2,
'no-caller': 2,
'no-empty': 2,
'no-new': 2,
'quotes': [
1,
'single',
{ 'avoidEscape': true, }
],
'no-undef': 2,
'no-unused-vars': [2, {
argsIgnorePattern: '^_',
}],
'comma-dangle': ['error', {
'arrays': 'never',
'objects': 'always',
'imports': 'never',
'exports': 'never',
'functions': 'never',
}],
'eol-last': ['error', 'always'],
'space-before-function-paren': ['warn', 'never'],
'object-property-newline': ['warn', {'allowAllPropertiesOnSameLine': true,}],
},
};