-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
65 lines (55 loc) · 1.64 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
{
"env": {
"jest/globals": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"extends": [
"airbnb-base",
"plugin:jsdoc/recommended",
"plugin:lodash/recommended",
"plugin:import/recommended",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
"plugin:security/recommended",
"plugin:eslint-comments/recommended",
"plugin:jsonc/recommended-with-json"
],
"plugins": [
"write-good-comments",
"align-assignments",
"no-secrets",
"security",
"sonarjs",
"unicorn",
"import",
"jsdoc",
"lodash",
"jest"
],
"ignorePatterns": ["package*.json"],
"rules": {
"linebreak-style": "off",
"no-continue": "off",
"no-multi-spaces": "off",
"no-use-before-define": "off",
"unicorn/prefer-module": "off",
"security/detect-object-injection": "off",
"security/detect-child-process": "off",
"security/detect-non-literal-fs-filename": "off",
"security/detect-unsafe-regex": "off",
"brace-style": ["error", "stroustrup"],
"no-param-reassign": ["error", { "props": false }],
"max-len": ["error", { "code": 120, "ignoreComments": true, "ignorePattern": ".*require.*" }],
"no-console": ["error", { "allow": ["info", "warn", "error", "table", "group", "groupEnd"] }],
"key-spacing": ["error", { "align": { "beforeColon": false, "afterColon": true, "on": "value" } }],
"align-assignments/align-assignments": ["error", { "requiresOnly": false } ],
"jsonc/auto": "error",
"no-secrets/no-secrets": "error",
"write-good-comments/write-good-comments": "warn"
}
}