-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
46 lines (46 loc) · 1.19 KB
/
.eslintrc.cjs
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
module.exports = {
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:sonarjs/recommended",
"eslint:recommended",
"problems",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
"modules": true
},
},
"plugins": [
"prettier",
"@typescript-eslint",
"eslint-plugin-no-explicit-type-exports",
"sonarjs"
],
"rules": {
"no-duplicate-imports": 0,
"no-explicit-type-exports/no-explicit-type-exports": 2,
"prettier/prettier": "error",
"sonarjs/prefer-single-boolean-return": 0,
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"eol-last": ["error", "always"],
"indent": ["error", 2],
"linebreak-style": ["error","unix"],
"max-len": ["error", { "code": 120 }],
"no-trailing-spaces": "error",
"quotes": ["error","double"],
"semi": ["error", "always"]
}
}