-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (33 loc) · 1.01 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
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "simple-import-sort"],
extends: ["@wemake-services/typescript/strict"],
ignorePatterns: [".eslintrc.js"],
parserOptions: {
tsconfigRootDir: __dirname,
project: [
"./backend/tsconfig.json",
"./frontend/tsconfig.json",
"./tsconfig.json"
]
},
rules: {
"@typescript-eslint/semi": [2, "always"],
"quotes": [2, "double", { "avoidEscape": true }],
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"camelcase": "error",
"@typescript-eslint/indent": "off",
"max-len": ["warn", { "code": 120, "tabWidth": 2 }],
"import/max-dependencies": ["warn", { "ignoreTypeImports": true }],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/ban-types": ["error", { "types": { "{}": false } }]
}
}