-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
30 lines (30 loc) · 954 Bytes
/
.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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "simple-import-sort"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
ignorePatterns: ["/dist/**/*", "coverage/**/*"],
rules: {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-console": "error",
"no-duplicate-imports": "error",
"@typescript-eslint/no-unused-vars": "error",
"max-depth": ["error", 2],
"max-nested-callbacks": ["error", 2],
"max-lines-per-function": ["error", 70],
"max-statements": ["error", 26],
"max-params": ["error", 3],
},
overrides: [
{
files: ["**/*.test.ts", "**/*.dev.ts", "specs/**/*.ts"],
rules: {
"max-lines-per-function": "off",
"max-statements": "off",
"max-nested-callbacks": "off",
"@typescript-eslint/no-non-null-assertion": "off",
},
},
],
};