-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
86 lines (86 loc) · 2.24 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
module.exports = {
"env": {
"node": true,
},
"extends": [
"eslint:recommended",
"plugin:import/typescript",
"plugin:prettier/recommended",
"plugin:unicorn/recommended",
"plugin:node/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:ecmascript-compat/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-prefer-arrow",
"eslint-plugin-unicorn",
"@typescript-eslint"
],
"rules": {
"quotes": ["error", "single", { "avoidEscape": true }],
"import/order": ["error", {
"newlines-between": "always"
}],
"node/no-unsupported-features/es-syntax": "off",
"node/no-missing-import": "off",
"node/no-extraneous-import": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/filename-case": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-method-this-argument": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-null": "off",
"prefer-rest-params": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/triple-slash-reference": "off",
"unicorn/no-this-assignment": "off",
"unicorn/prefer-event-target": "off",
"unicorn/prefer-module": "off",
"import/no-extraneous-dependencies": ["error", {
devDependencies: false,
optionalDependencies: false,
}],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
]
},
"overrides": [
{
"files": ["**/__*__/**.ts", "**.test.ts"],
"env": {
"jest": true
},
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/no-extraneous-dependencies": ["error", {
devDependencies: true,
}],
}
}
],
"ignorePatterns": [
"assets",
"coverage",
"dist",
"e2e",
"package-e2e",
"website",
"/*.js",
"/*.mjs",
"/*.d.ts"
]
};