-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
53 lines (53 loc) · 1.88 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
module.exports = {
rules: {
'array-bracket-spacing': [ 'error', 'always' ],
'array-element-newline': [ 'error', 'consistent' ],
'arrow-parens': [ 'error', 'always' ],
'arrow-spacing': 'error',
'block-spacing': 'error',
// must expand out comma-dangle to get `functions` option enabled
'comma-dangle': [ 'error', {
arrays: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
imports: 'always-multiline',
objects: 'always-multiline',
} ],
'comma-spacing': [ 'error', { before: false, after: true } ],
'eol-last': [ 'error', 'never' ],
'func-call-spacing': [ 'error', 'never' ],
'indent': [ 'error', 2, { SwitchCase: 1 } ],
'keyword-spacing': [ 'error', {
before: true,
after: true,
} ],
'linebreak-style': [ 'error', 'unix' ],
'max-len': [ 'error', {
code: 100,
tabWidth: 2,
ignorePattern: '^\\s*' +
'(transition:\\s[A-Za-z-]+\\s[#$)(0-9A-Za-z-]|background-image:\\s|<svg)',
} ],
'no-duplicate-imports': 'error',
'no-empty': [ 'error', { allowEmptyCatch: true } ],
'no-multi-spaces': 'error',
'no-multiple-empty-lines': [ 'error', { max: 1, maxBOF: 0 } ],
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'object-curly-newline': [ 'error', { multiline: true } ],
'object-curly-spacing': [ 'error', 'always' ],
'object-property-newline': [ 'error', { allowAllPropertiesOnSameLine: true } ],
'padded-blocks': [ 'error', 'never' ],
'quote-props': [ 'error', 'consistent-as-needed' ],
'quotes': [ 'error', 'single' ],
'semi':[ 'error', 'always' ],
'semi-spacing': 'error',
'semi-style': [ 'error', 'last' ],
'space-before-function-paren': [ 'error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
} ],
'spaced-comment': [ 'error', 'always' ],
},
};