-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
36 lines (36 loc) · 1.02 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"plugins": ["@typescript-eslint"],
"extends": ["airbnb-base", "airbnb-typescript/base", "plugin:sonarjs/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"overrides": [],
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"max-classes-per-file": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/no-implied-eval": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_"
}
],
"no-plusplus": "off",
"consistent-return": "off", // https://eslint.org/docs/latest/rules/consistent-return#when-not-to-use-it
"class-methods-use-this": "off",
"no-param-reassign": "warn",
"no-restricted-syntax": "off",
"no-cond-assign": "warn",
"no-useless-constructor": "warn",
"@typescript-eslint/no-useless-constructor": "warn"
}
}