This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (49 loc) · 2.03 KB
/
.eslintrc
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
{
"parserOptions": {
"sourceType": "script"
},
"extends": [
"airbnb-base",
"prettier",
"plugin:node/recommended"
],
"env": {
"es6": true,
"mocha": true,
"node": true
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"class-methods-use-this": ["off"],
"comma-dangle": ["error", {"arrays": "always-multiline", "objects": "always-multiline", "imports": "always-multiline", "exports": "always-multiline", "functions": "never"}],
"default-case": ["off"],
"func-names": ["off", "never"],
"global-require": ["off"],
"max-len": ["error", {"code": 120, "ignoreComments": true, "ignoreStrings": true}],
"no-console": ["error", { "allow": ["warn"] }],
"no-continue": ["off"],
"no-mixed-operators": ["error", {"allowSamePrecedence": true}],
"no-multi-assign": ["off"],
"no-param-reassign": ["off"],
"no-path-concat": ["off"],
"no-plusplus": ["off"],
"no-prototype-builtins": ["off"],
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"no-return-assign": ["off"],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-underscore-dangle": ["off", { "allowAfterThis": true, "allowAfterSuper": true }],
"no-unused-vars": ["error", {"vars": "all", "args": "none", "ignoreRestSiblings": true}],
"no-use-before-define": ["error", { "variables": false, "classes": false, "functions": false }],
"node/no-unsupported-features/es-syntax": ["error", {"version": ">=10.0.0","ignores": []}],
"node/process-exit-as-throw": ["off"],
"object-curly-spacing": ["error", "never"],
"object-property-newline": ["off", { "allowMultiplePropertiesPerLine": true }],
"prefer-destructuring": ["warn", {"array": false, "object": true}],
"prefer-object-spread": ["off"],
"prefer-rest-params": ["off"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
"strict": ["off"]
}
}