-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
36 lines (35 loc) · 1.19 KB
/
.eslintrc.js
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
module.exports = {
env: {
node: true,
es6: true,
es2020: true,
mocha: true
},
plugins: ["simple-import-sort", "sonarjs"],
extends: [
"standard-with-typescript",
"plugin:sonarjs/recommended"
],
parserOptions: {
project: "./tsconfig.json",
ecmaVersion: 2020
},
rules: {
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": "off",
"max-classes-per-file": 0,
"max-len": ["error", { "code": 100, "ignoreTrailingComments": true, "ignoreUrls": true, "ignoreStrings": true, "ignoreTemplateLiterals": true}],
"no-underscore-dangle": 0,
"simple-import-sort/sort": "warn",
"sort-imports": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "varsIgnorePattern": "_" }],
"@typescript-eslint/quotes": "off",
"semi": "off",
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/strict-boolean-expressions": "off",
"sonarjs/cognitive-complexity": ["error", 16]
}
}