-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.js
46 lines (46 loc) · 1.08 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
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2021,
sourceType: "module",
},
plugins: ["import", "@typescript-eslint"],
env: {
jest: true,
node: true,
},
rules: {
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{ allowExpressions: true, allowTypedFunctionExpressions: true },
],
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"import/extensions": [
"error",
"ignorePackages",
{
ts: "never",
js: "never",
},
],
"import/no-unresolved": [
"error",
{
ignore: ["\\.\\.?/dist/"],
},
],
"import/prefer-default-export": "off",
"no-useless-constructor": "off",
"no-underscore-dangle": "off",
},
};