-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
57 lines (56 loc) · 1.71 KB
/
.eslintrc.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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
extends: 'eslint:recommended',
env: {
'browser': true
},
rules: {
// NOTE: Plain old js rules ...
'object-curly-spacing': [ 'error', 'always' ],
'comma-dangle': [ 'error', 'only-multiline' ],
'eqeqeq': 'error',
'semi': 'error',
'yoda': 'error',
'block-scoped-var': 'error',
'no-trailing-spaces': 'error',
'no-multiple-empty-lines': [ 'error', { 'max': 1, maxEOF: 1 } ],
'default-case': 'error',
'dot-notation': 'error',
'no-eq-null': 'error',
'no-lone-blocks': 'error',
'no-useless-concat': 'error',
'no-multi-spaces': 'error',
'no-lonely-if': 'error',
'radix': [ 'error', 'as-needed' ],
'wrap-iife': [ 'error', 'outside' ],
'no-useless-concat': 'error',
'keyword-spacing': 'error',
'array-callback-return': 'error',
'no-empty-function': 'error',
'space-before-function-paren': [ 'error', 'never' ],
'space-in-parens': [ 'error', 'always', { 'exceptions': [ '{}' ] } ],
'no-warning-comments': 'error',
'no-param-reassign': 'error',
'no-else-return': 'error',
'key-spacing': 'error',
'lines-around-comment': 'error',
'newline-after-var': 'error',
'no-extra-parens': 'error',
// NOTE: ES2015 specific rules
'no-duplicate-imports': 'error',
'arrow-spacing': 'error',
'arrow-parens': [ 'error', 'as-needed' ],
'no-var': 'error',
'prefer-template': 'error',
'template-curly-spacing': [ 'error', 'always' ],
'object-shorthand': 'error',
'prefer-const': 'error',
'no-const-assign': 'error',
'arrow-body-style': [ 'error', 'always' ],
'prefer-rest-params': 'error',
}
};