-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
73 lines (69 loc) · 1.83 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
61
62
63
64
65
66
67
68
69
70
71
72
73
module.exports = {
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 2018,
},
env: {
es6: true,
node: true,
},
plugins: [
'import',
],
rules: {
'array-bracket-spacing': [ 2, 'always' ],
'comma-dangle': [ 2, {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
} ],
'comma-spacing': [ 2, { after: true } ],
'computed-property-spacing': [ 2, 'never' ],
'eol-last': [ 2, 'always' ],
'func-call-spacing': [ 2, 'never' ],
'dot-notation': [ 2 ],
'indent': [ 2, 'tab' ],
'key-spacing': [ 2, { beforeColon: false, afterColon: true } ],
'keyword-spacing': [ 2, { before: true, after: true } ],
'no-cond-assign': [ 2 ],
'no-duplicate-imports': [ 2 ],
'no-extra-semi': [ 2 ],
'no-multi-spaces': [ 2 ],
'no-sync': [ 2 ],
'no-trailing-spaces': [ 2 ],
'no-var': [ 2 ],
'object-curly-spacing': [ 2, 'always' ],
'object-shorthand': [ 2 ],
'prefer-const': [ 2 ],
'prefer-spread': [ 2 ],
'semi': [ 2, 'always' ],
'semi-spacing': [ 2, { before: false, after: true } ],
'space-before-blocks': [ 2, 'always' ],
'space-before-function-paren': [ 2, {
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
} ],
'space-in-parens': [ 2 ],
'space-infix-ops': [ 2 ],
'space-unary-ops': [ 2, { words: true, nonwords: false } ],
'spaced-comment': [ 2 ],
'import/order': [ 'error', {
'groups': [
'builtin',
[ 'internal', 'external' ],
[ 'parent', 'sibling', 'index' ],
],
'newlines-between': 'always',
} ],
'quotes': [ 'error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true,
} ],
'quote-props': [ 'error', 'consistent-as-needed' ],
'brace-style': [ 'error', 'stroustrup' ],
'padded-blocks': [ 'error', { classes: 'always' } ],
},
};