|
| 1 | +import eslint from '@eslint/js'; |
| 2 | +import eslintConfigPrettier from "eslint-config-prettier/flat"; |
| 3 | +import importPlugin from 'eslint-plugin-import'; |
| 4 | +import tseslint from 'typescript-eslint'; |
| 5 | + |
| 6 | +export default tseslint.config( |
| 7 | + eslint.configs.recommended, |
| 8 | + tseslint.configs.recommended, |
| 9 | + eslintConfigPrettier, |
| 10 | + importPlugin.flatConfigs.recommended, |
| 11 | + importPlugin.flatConfigs.typescript, |
| 12 | + { |
| 13 | + rules: { |
| 14 | + "@typescript-eslint/no-explicit-any": "off", |
| 15 | + "@typescript-eslint/no-empty-interface": "error", |
| 16 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 17 | + "no-irregular-whitespace": "off", |
| 18 | + "no-control-regex": "off", |
| 19 | + "no-duplicate-imports": ["error", {"includeExports": true}], |
| 20 | + "arrow-body-style": ["error", "as-needed"], |
| 21 | + "no-restricted-globals": ["error", "name", "toString", "pending"], |
| 22 | + "import/order": ["error", { |
| 23 | + "groups": ["builtin", "external", "internal", "sibling"], |
| 24 | + "pathGroupsExcludedImportTypes": ["parent", "sibling", "index"], |
| 25 | + "alphabetize": { |
| 26 | + "order": "asc", |
| 27 | + "caseInsensitive": true |
| 28 | + } |
| 29 | + }] |
| 30 | + } |
| 31 | + } |
| 32 | +); |
0 commit comments