-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
31 lines (31 loc) · 818 Bytes
/
.eslintrc.cjs
File metadata and controls
31 lines (31 loc) · 818 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
26
27
28
29
30
31
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./apps/*/tsconfig.json", "./packages/*/tsconfig.json"],
},
env: {
node: true,
},
plugins: ["@typescript-eslint"],
extends: ["xo", "xo-typescript", "prettier"],
rules: {
"@typescript-eslint/no-base-to-string": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/prefer-literal-enum-member": 0,
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/consistent-type-definitions": 0,
"no-eq-null": 0,
"no-bitwise": 0,
"no-await-in-loop": 0,
"eqeqeq": ["error", "smart"],
"capitalized-comments": 0,
"arrow-body-style": 0,
"complexity": 0,
},
settings: {
"import/resolver": {
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
},
},
};