-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
38 lines (38 loc) · 1.25 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"tsconfigRootDir": ".",
"sourceType": "module"
},
"plugins": ["@typescript-eslint/eslint-plugin", "prettier", "import"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "plugin:import/recommended", "plugin:import/typescript"],
"root": true,
"env": {
"node": true
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-explicit-any": "off",
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"import/newline-after-import": ["error", { "considerComments": true }],
"import/no-unresolved": ["error", { "ignore": ["bun", "bun:test"] }],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", ["parent", "sibling"]],
"newlines-between": "always",
"alphabetize": { "order": "asc", "caseInsensitive": true }
}
],
"no-console": 2,
"sort-imports": ["error", { "ignoreDeclarationSort": true, "allowSeparatedGroups": true }]
},
"settings": {
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
}
}