forked from compiler-explorer/compiler-explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
84 lines (84 loc) · 2.7 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
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
{
"root": true,
"plugins": [
"jsdoc",
"node",
"promise",
"requirejs",
"sonarjs",
"unicorn"
],
"extends": [
"eslint:recommended",
"plugin:requirejs/recommended",
"plugin:node/recommended",
"plugin:unicorn/recommended"
],
"env": {
"mocha": true,
"node": true,
"es6": true
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "smart"],
"indent": ["error", 4, {"SwitchCase": 1}],
"max-len": ["error", 120, {"ignoreRegExpLiterals": true}],
"max-statements": ["error", 50],
"no-control-regex": 0,
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single", {"allowTemplateLiterals": true, "avoidEscape": true}],
"semi": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "always", "asyncArrow": "always", "named": "never"}],
"yoda": ["error", "never", {"onlyEquality": true}],
"jsdoc/check-alignment": "warn",
"jsdoc/check-param-names": "warn",
"jsdoc/check-syntax": "warn",
"jsdoc/check-tag-names": "warn",
"jsdoc/check-types": "warn",
"jsdoc/empty-tags": "warn",
"jsdoc/newline-after-description": "warn",
"jsdoc/require-hyphen-before-param-description": "warn",
"jsdoc/valid-types": "warn",
"no-process-exit": "off",
"node/no-unpublished-require": "off",
"node/shebang": "off",
"promise/catch-or-return": "error",
"promise/no-new-statics": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/valid-params": "error",
"sonarjs/no-collection-size-mischeck": "error",
"sonarjs/no-redundant-boolean": "error",
"sonarjs/no-unused-collection": "error",
"sonarjs/prefer-immediate-return": "error",
"sonarjs/prefer-object-literal": "error",
"sonarjs/prefer-single-boolean-return": "error",
"unicorn/catch-error-name": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/no-hex-escape": "off",
"unicorn/no-null": "off",
"unicorn/no-reduce": "off",
"unicorn/prefer-add-event-listener": "off",
"unicorn/prefer-flat-map": "error",
"unicorn/prefer-optional-catch-binding": "off",
"unicorn/prefer-number-properties": "off",
"unicorn/prefer-string-slice": "off",
"unicorn/prevent-abbreviations": "off"
},
"parserOptions": {
"ecmaVersion": 2018
},
"globals": {
"BigInt": true
}
}