-
Notifications
You must be signed in to change notification settings - Fork 100
/
.eslintrc.cjs
37 lines (36 loc) · 907 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
31
32
33
34
35
36
37
/* eslint-env node */
/* @type import("eslint").ESLintConfig */
module.exports = {
plugins: ["@typescript-eslint", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
],
parser: "@typescript-eslint/parser",
root: true,
rules: {
// Disables
"@typescript-eslint/no-explicit-any": "off",
"no-extra-semi": "off", // covered by prettier
// Enables
"@typescript-eslint/consistent-type-imports": "error",
"import/order": "error",
"import/no-duplicates": "error",
"import/no-cycle": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
},
],
},
settings: {
// 'import/resolver': {
// typescript: true,
// node: true,
// }
},
}