forked from enactjs/docs-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
88 lines (88 loc) · 2.28 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
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
86
87
88
module.exports = {
globals: {
'browser': true,
'expect': true,
'$': true,
'$$': true
},
env: {
'es6': true, // sets the "ecmaVersion" parser option to 6
'node': true,
'mocha': true
},
parserOptions: {
'ecmaVersion': 2018,
},
root: true,
extends: ['eslint:recommended'],
rules: {
'comma-dangle': 2,
'no-console': 0,
'no-control-regex': 0,
'no-debugger': 1,
'no-empty': 0,
'no-negated-in-lhs': 2,
'no-regex-spaces': 0,
'no-unexpected-multiline': 0,
'block-scoped-var': 1,
'dot-location': [1, 'property'],
'eqeqeq': [1, 'smart'],
'no-caller': 2,
'no-div-regex': 1,
'no-eval': 1,
'no-extra-bind': 1,
'no-floating-decimal': 1,
'no-implied-eval': 1,
'no-iterator': 2,
'no-labels': 2,
'no-native-reassign': 2,
'no-new-func': 2,
'no-new-wrappers': 2,
'no-new': 1,
'no-octal-escape': 1,
'no-proto': 2,
'no-redeclare': [2, {'builtinGlobals': true}],
'no-return-assign': [2, 'except-parens'],
'no-self-compare': 2,
'no-sequences': 2,
'no-throw-literal': 2,
'no-unused-expressions': [1, {'allowShortCircuit': true, 'allowTernary': true}],
'no-useless-call': 2,
'no-useless-return': 1,
'no-with': 2,
'radix': [1, 'as-needed'],
'wrap-iife': [2, 'inside'],
'no-catch-shadow': 2,
'no-label-var': 2,
'no-shadow-restricted-names': 2,
'no-shadow': [2, {'builtinGlobals': true, 'hoist': 'all', 'allow': ['context']}],
'no-use-before-define': [2, {'functions': false}],
'array-bracket-spacing': 1,
'brace-style': [1, '1tbs', {'allowSingleLine': true }],
'comma-spacing': 1,
'comma-style': 1,
'computed-property-spacing': 1,
'eol-last': 1,
'indent': [1, 'tab', {'SwitchCase': 1}],
'jsx-quotes': 1,
'linebreak-style': 1,
'new-cap': [2, {'newIsCap': true, 'capIsNew': false}],
'new-parens': 1,
'no-array-constructor': 2,
'no-lonely-if': 1,
'no-mixed-spaces-and-tabs': 1,
'no-new-object': 1,
'func-call-spacing': 1,
'no-trailing-spaces': 1,
'no-unneeded-ternary': 1,
'operator-linebreak': [1, 'after'],
'quotes': [1, 'single', {'avoidEscape':true}],
'semi': [1, 'always'],
'space-before-function-paren': [1, 'always'],
'space-infix-ops': 0,
'space-unary-ops': [1, {'words': true, 'nonwords': false}],
'spaced-comment': [1, 'always', {'markers': ['*']}],
'arrow-spacing': 1,
'require-yield': 0
}
};