forked from BeeWell/cross-email-validator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
143 lines (143 loc) · 5.52 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"env": {
"node": true
},
"extends":
[ "eslint:recommended"
, "plugin:lodash/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"lodash",
"dependencies",
"node", "promise",
"prettier"
],
"rules": {
"no-extra-semi": [ "off" ],
"lodash/prefer-get": [ "warn" ],
"no-unused-vars": [ "warn" ],
"no-case-declarations": [ "warn" ],
"indent": [ "warn", 2 ],
"linebreak-style": [ "error", "unix" ],
"semi": [ "warn", "always" ],
"no-await-in-loop": [ "error" ],
"no-prototype-builtins": [ "error" ],
"no-template-curly-in-string": [ "warn" ],
"array-callback-return": [ "error" ],
"block-scoped-var": [ "warn" ],
"complexity": [ "warn" ],
"consistent-return": [ "error" ],
"curly": [ "error", "multi-line" ],
"default-case": [ "error" ],
"dot-location": [ "warn", "property" ],
"dot-notation": [ "warn", {"allowKeywords": true} ],
"eqeqeq": [ "error" ],
"no-alert": [ "error" ],
"no-caller": [ "error" ],
"no-div-regex": [ "error" ],
"no-eq-null": [ "error" ],
"no-eval": [ "error" ],
"no-extra-bind": [ "warn" ],
"no-extra-label": [ "warn" ],
"no-floating-decimal": [ "error" ],
"no-implicit-globals": [ "error" ],
"no-implied-eval": [ "error" ],
"no-invalid-this": [ "error" ],
"no-iterator": [ "error" ],
"no-lone-blocks": [ "warn" ],
"no-loop-func": [ "error" ],
"no-magic-numbers": [ "warn", { "ignore": [0,1,2,0.1,0.25,0.5] } ],
"no-new-func": [ "error" ],
"no-new-wrappers": [ "error" ],
"no-proto": [ "error" ],
"no-return-assign": [ "error" ],
"no-return-await": [ "error" ],
"no-self-compare": [ "error" ],
"no-sequences": [ "error" ],
"no-unmodified-loop-condition": [ "warn" ],
"no-unused-expressions": [ "error", { "allowTernary": true, "allowShortCircuit": true } ],
"no-useless-call": [ "error" ],
"no-useless-return": [ "error" ],
"no-void": [ "error" ],
"no-with": [ "error" ],
"radix": [ "error", "always" ],
"require-await": [ "error" ],
"strict": [ "error", "global" ],
"no-label-var": [ "error" ],
"no-shadow": [ "warn" ],
"no-shadow-restricted-names": [ "error" ],
"no-undef-init": [ "error" ],
"no-use-before-define": [ "warn" ],
"no-bitwise": [ "error" ],
"no-var": [ "error" ],
"prefer-arrow-callback": [ "warn" ],
"prefer-const": [ "error" ],
"prefer-destructuring": [
"error",
{"array": false},
{"enforceForRenamedProperties": false}
],
"prefer-rest-params": [ "error" ],
"prefer-spread": [ "error" ],
"prefer-template": [ "warn" ],
"yield-star-spacing": [ "warn", "after" ],
"callback-return": [ "error" ],
"handle-callback-err": [ "error" ],
"no-buffer-constructor": [ "error" ],
"no-sync": [ "error", {"allowAtRootLevel": true} ],
"array-bracket-newline": [ "warn", "consistent" ],
"camelcase": [ "warn", { "ignoreDestructuring": true } ],
"comma-dangle": [
"warn",
{ "arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"function-paren-newline": [ "warn", "consistent" ],
"implicit-arrow-linebreak": [ "error", "beside" ],
"no-mixed-operators": [ "error" ],
"no-trailing-spaces": [ "warn", { "ignoreComments": true } ],
"no-unneeded-ternary": [ "warn" ],
"prefer-object-spread": [ "error" ],
"arrow-body-style": [ "error", "as-needed" ],
"arrow-parens": [ "error" ],
"generator-star-spacing": [ "warn", "after" ],
"no-confusing-arrow": [ "error" ],
"no-duplicate-imports": [ "error", { "includeExports": false } ],
"no-useless-computed-key": [ "warn" ],
"no-useless-rename": [ "warn" ],
"no-await-in-loop": [ "error" ],
"no-console": [ "warn", { "allow": ["debug","warn","error"] } ],
"lodash/chaining": [ "off" ],
"lodash/chain-style": [ "off" ],
"lodash/import-scope": [ "off" ],
"lodash/prefer-lodash-method": [ "off" ],
"lodash/prop-shorthand": [ "warn" ],
"lodash/path-style": [ "warn" ],
"template-tag-spacing": [ "warn" ],
"dependencies/case-sensitive": [ "error" ],
"dependencies/no-cycles": [ "warn" ],
"dependencies/no-unresolved": [ "error" ],
"dependencies/require-json-ext": [ "warn" ],
"node/no-extraneous-import": [ "off" ],
"node/no-missing-import": [ "error" ],
"node/exports-style": [ "warn", "module.exports" ],
"node/prefer-global/buffer": ["warn", "never"],
"node/prefer-global/console": ["warn", "always"],
"node/prefer-global/process": ["warn", "never"],
"node/prefer-global/url": ["warn", "never"],
"promise/catch-or-return": ["error"],
"promise/no-return-wrap": ["warn"],
"promise/param-names": ["warn"],
"promise/no-native": ["error"],
"promise/no-return-in-finally": ["error"],
"promise/valid-params": ["off"],
"require-yield": ["error"]
}
}