-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy patheslint.config.mjs
34 lines (33 loc) · 1.29 KB
/
eslint.config.mjs
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
import eslint from '@eslint/js';
import eslintConfigPrettier from "eslint-config-prettier/flat";
import importPlugin from 'eslint-plugin-import';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
eslintConfigPrettier,
importPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.typescript,
{
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"no-irregular-whitespace": "off",
"no-control-regex": "off",
"no-duplicate-imports": ["error", {"includeExports": true}],
"arrow-body-style": ["error", "as-needed"],
"no-restricted-globals": ["error", "name", "toString", "pending"],
"import/no-unresolved": "off",
"import/order": ["error", {
"groups": ["builtin", "external", "internal", "sibling"],
"pathGroupsExcludedImportTypes": ["parent", "sibling", "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}]
},
ignores: ["dist"]
}
);