-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
60 lines (60 loc) · 1.28 KB
/
index.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
/* eslint-env browser:false, node */
module.exports = {
env: {
browser: true,
node: false
},
extends: [
'eslint:recommended',
'standard'
],
parserOptions: {
// Require explicit support for IE by implicitly supporting modern browsers.
// ECMAScript 9 support is lacking in Edge and Safari.
ecmaVersion: 8,
ecmaFeatures: {
jsx: false
}
},
rules: {
'array-bracket-spacing': 'error',
'block-scoped-var': 'error',
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
'capitalized-comments': [
'error',
'always',
{ 'ignoreConsecutiveComments': true }
],
'computed-property-spacing': 'error',
indent: [
'error',
2,
{
FunctionDeclaration: { parameters: 2 },
FunctionExpression: { parameters: 2 },
ignoreComments: false,
SwitchCase: 1
}
],
'max-len': [
'error',
{
'ignoreRegExpLiterals': true,
'ignoreStrings': true,
'ignoreUrls': true
}
],
'no-cond-assign': 'off',
'no-extra-parens': 'off',
'operator-linebreak': [
'error',
'after',
{
'overrides': {}
}
],
'one-var': 'off',
semi: ['error', 'always'],
'semi-style': 'error'
}
};