-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
58 lines (58 loc) · 1.44 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
module.exports = {
extends: ['eslint:recommended', 'plugin:prettier/recommended', 'standard'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 8,
sourceType: 'module',
},
env: {
browser: true,
es6: true,
node: true,
},
plugins: ['standard', 'promise'],
rules: {
'import/no-webpack-loader-syntax': 'off',
'comma-dangle': ['error', 'always-multiline'],
'comma-style': 'error',
eqeqeq: 'warn',
'guard-for-in': 'error',
'keyword-spacing': 'error',
'lines-between-class-members': ['error', 'always'],
'max-nested-callbacks': ['error', 3],
'newline-per-chained-call': 'error',
'no-console': 'off',
'no-else-return': 'error',
'no-eval': 'error',
'no-implied-eval': 'error',
'no-lonely-if': 'error',
'no-new-func': 'error',
'no-shadow-restricted-names': 'error',
'no-trailing-spaces': 'error',
'no-undef-init': 'error',
'no-useless-concat': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'prefer-arrow-callback': 'error',
'prefer-spread': 'error',
'prettier/prettier': [
'error',
{
semi: false,
singleQuote: true,
trailingComma: 'all',
},
],
radix: 'error',
semi: ['error', 'never'],
'space-before-function-paren': [
'error',
{
anonymous: 'never',
asyncArrow: 'always',
named: 'never',
},
],
strict: ['error', 'never'],
},
}