This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
97 lines (97 loc) · 2.98 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
{
"env": {
"es6": true,
"mocha": true,
"node": true
},
"extends": [
"plugin:lodash-fp/recommended",
"plugin:unicorn/recommended",
"airbnb-base"
],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "script"
},
"plugins": [
"lodash-fp",
"promise",
"unicorn"
],
"rules": {
"array-bracket-spacing": "off",
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": false }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
"imports": "always-multiline",
"objects": "always-multiline"
}],
"consistent-return": "off",
"func-names": "off",
"function-paren-newline": ["error", "consistent"],
"generator-star-spacing": ["error", "after"],
"global-require": "off",
"guard-for-in": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": ["**/test/**", "/scripts/"] }],
"import/order": [ "error", {
"groups": [ "builtin", "external", "internal", [ "parent", "sibling" ], "index" ]
}],
"indent": ["error", 2, {
"CallExpression": { "arguments": "first" },
"SwitchCase": 1
}],
"max-len": "off",
"newline-per-chained-call": "off",
"no-continue": "off",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-multiple-empty-lines": [ "error", { "max": 1, "maxEOF": 0 } ],
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-restricted-syntax": ["error", "ClassDeclaration"],
"no-underscore-dangle": "off",
"no-unused-vars": ["error", { "args": "after-used", "vars": "all" }],
"no-use-before-define": "off",
"no-warning-comments": ["error"],
"one-var": [ "error", { "initialized": "never", "uninitialized": "always" }],
"one-var-declaration-per-line": ["error", "initializations"],
"object-curly-newline": ["error", { "consistent": true }],
"prefer-rest-params": "off",
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"promise/param-names": "error",
"require-yield": "off",
"semi": ["error","never"],
"semi-style": ["error", "first"],
"space-unary-ops": ["error", {
"nonwords": false,
"overrides": { "!": true },
"words": true
}],
"strict": ["error", "global"],
"unicorn/catch-error-name": ["error", { "name": "err" }],
"unicorn/filename-case": "off",
"unicorn/throw-new-error": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/new-for-builtins": "off",
"unicorn/regex-shorthand": "off",
"valid-jsdoc": "error"
},
"settings": {
"lodash": {
"pragma": "fp"
},
"import/resolver": {
"node": {
"moduleDirectory": [
"node_modules",
"."
]
}
}
}
}