-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc.js
More file actions
25 lines (25 loc) · 786 Bytes
/
.eslintrc.js
File metadata and controls
25 lines (25 loc) · 786 Bytes
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
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended",
],
plugins: [
"sonarjs",
],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
rules: {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "error",
"sonarjs/no-duplicate-string": ["warn", 3],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"indent": ["error", 4],
"comma-dangle": ["error", "always-multiline"],
"semi": ["error", "always"],
"no-trailing-spaces": "error",
},
};