-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
42 lines (42 loc) · 1021 Bytes
/
.eslintrc.js
File metadata and controls
42 lines (42 loc) · 1021 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
32
33
34
35
36
37
38
39
40
41
42
module.exports = {
env: {
node: true,
es2022: true,
jest: true,
},
extends: [
"standard-with-typescript",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "tsconfig.json",
tsconfigRootDir: __dirname,
},
settings: {
"import/parser": {
"@typescript-eslint/parser": [".ts"],
},
"import/resolver": {
typescript: {
alwaysTryTypes: true,
project: "./tsconfig.json",
},
},
},
plugins: ["prettier", "import"],
rules: {
"import/no-named-as-default-member": "off",
"prettier/prettier": "error",
"import/extensions": "off",
"no-console": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"import/no-unresolved": "off",
"@typescript-eslint/no-misused-promises": "off",
},
};