generated from thereisnodeveloper/webdev-template-webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
36 lines (34 loc) · 1000 Bytes
/
.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
{
"plugins": ["sonarjs", "css-modules", "html", "write-good-comments"],
"extends": [
"airbnb-base",
"plugin:n/recommended",
"plugin:sonarjs/recommended-legacy",
"plugin:unicorn/recommended",
"plugin:depend/recommended",
"plugin:css-modules/recommended",
],
// files are handled by loadContent()
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
},
"env": {
"es2022": true,
"browser": true,
"node": true,
},
"rules": {
"n/handle-callback-err": "error",
// "handle-callback-err": "error",
"unicorn/better-regex": "warn",
"write-good-comments/write-good-comments": ["warn", { "whitelist": ["validate"] }],
"sonarjs/public-static-readonly": "off",
"sonarjs/todo-tag": "off",
"unicorn/prefer-top-level-await": "off",
"prefer-arrow-callback": "off",
"unicorn/no-array-for-each": "off",
"indent": ["error", 2, { "ignoreComments": true }],
"implicit-arrow-linebreak": "off",
},
}