-
Notifications
You must be signed in to change notification settings - Fork 54
/
.eslintrc.json
118 lines (118 loc) · 2.71 KB
/
.eslintrc.json
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"root": true,
"env": {
"mocha": true
},
"extends": [
"wikimedia/server"
],
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error",
"tab",
{
"SwitchCase": 1,
"MemberExpression": "off",
"CallExpression": {
"arguments": "off"
},
"flatTernaryExpressions": true
}
],
"one-var": [
"error",
{
"initialized": "never"
}
],
"no-restricted-properties": "off",
"no-restricted-syntax": "off",
"node/no-deprecated-api": "off",
"array-bracket-spacing": "off",
"arrow-parens": "off",
"camelcase": "off",
"comma-dangle": "off",
"comma-spacing": "off",
"computed-property-spacing": "off",
"key-spacing": "off",
"max-statements-per-line": "off",
"no-implicit-coercion": "off",
"no-misleading-character-class": "off",
"no-multi-spaces": "off",
"no-multiple-empty-lines": "off",
"no-redeclare": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"operator-linebreak": "off",
"prefer-regex-literals": "off",
"quote-props": "off",
"quotes": "off",
"space-before-function-paren": "off",
"space-in-parens": "off",
"consistent-this": "off",
"default-case": "off",
"eol-last": "off",
"func-style": "off",
"guard-for-in": "off",
"max-len": "off",
"multiline-ternary": "off",
"new-cap": "off",
"object-shorthand": "off",
"sort-vars": "off",
"strict": "off",
"vars-on-top": "off",
"wrap-iife": "off",
"prefer-arrow-callback": "off",
"prefer-template": "off",
"no-console": "off",
"no-control-regex": "off",
"no-invalid-this": "off",
"no-lonely-if": "off",
"no-loop-func": "off",
"no-nested-ternary": "off",
"no-prototype-builtins": "off",
"no-tabs": "off",
"no-throw-literal": "off",
"no-unmodified-loop-condition": "off",
"no-useless-concat": "off",
"no-useless-escape": "off",
"no-var": "off",
"no-buffer-constructor": "warn",
"no-process-exit": "off",
"jsdoc/check-alignment": "off",
"jsdoc/check-param-names": "off",
"jsdoc/check-tag-names": "off",
"jsdoc/check-types": "off",
"jsdoc/newline-after-description": "off",
"jsdoc/no-undefined-types": "off",
"jsdoc/require-param": "off",
"jsdoc/require-param-type": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-returns-check": "off",
"no-shadow": "off",
"node/no-missing-require": "off",
"jsdoc/require-asterisk-prefix": "warn",
"unicorn/prefer-string-slice": "warn",
"es-x/no-hashbang": "warn",
"n/no-process-exit": "warn",
"n/no-missing-require": "warn"
},
"overrides": [
{
"files": [
"package.json",
"baseconfig/**/*.json",
"tests/*.json",
"tests/parser/*.json"
],
"rules": {
"indent": "off",
"comma-spacing": "error"
}
}
]
}