-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
85 lines (85 loc) · 2.1 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
74
75
76
77
78
79
80
81
82
83
84
85
module.exports = {
plugins: ['security', 'mocha', 'node'],
extends: [
'plugin:security/recommended',
'plugin:mocha/recommended',
'plugin:node/recommended'
],
parserOptions: {
ecmaVersion: 10
},
rules: {
'no-whitespace-before-property': 'error',
'max-lines-per-function': ['error', 50],
'arrow-parens': ['error', 'as-needed'],
'quote-props': ['error', 'as-needed'],
'linebreak-style': ['error', 'unix'],
'padded-blocks': ['error', 'never'],
'comma-dangle': ['error', 'never'],
'no-constructor-return': 'error',
'no-duplicate-imports': 'error',
'max-classes-per-file': 'error',
'prefer-object-spread': 'error',
'no-unneeded-ternary': 'error',
'no-implicit-globals': 'error',
'no-confusing-arrow': 'error',
quotes: ['error', 'single'],
'no-trailing-spaces': 'error',
'prefer-rest-params': 'error',
'one-var': ['error', 'never'],
'no-nested-ternary': 'error',
'no-param-reassign': 'error',
'no-extend-native': 'error',
'max-lines': ['error', 300],
semi: ['error', 'always'],
'no-implied-eval': 'error',
'no-multi-assign': 'error',
'prefer-template': 'warn',
'prefer-spread': 'error',
'no-extra-semi': 'error',
'no-lonely-if': 'error',
'prefer-const': 'error',
'no-eq-null': 'error',
'no-console': 'off',
'no-alert': 'error',
'no-eval': 'error',
'no-var': 'error',
curly: 'error',
'no-multiple-empty-lines': [
'error',
{
max: 1
}
],
'padding-line-between-statements': [
'warn',
{
blankLine: 'always',
prev: '*',
next: [
'do',
'if',
'for',
'let',
'try',
'iife',
'const',
'class',
'block',
'throw',
'while',
'return',
'switch',
'export',
'block-like'
]
},
{ blankLine: 'always', prev: ['const', 'let', 'function'], next: '*' },
{
blankLine: 'any',
prev: ['const', 'let'],
next: ['const', 'let']
}
]
}
};