|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "extends": ["@webdeveric/eslint-config-ts", "plugin:import/recommended", "plugin:import/typescript", "prettier"], |
| 4 | + "env": { |
| 5 | + "es6": true, |
| 6 | + "node": true |
| 7 | + }, |
| 8 | + "parserOptions": { |
| 9 | + "project": ["./tsconfig.json"], |
| 10 | + "EXPERIMENTAL_useProjectService": true |
| 11 | + }, |
| 12 | + "settings": { |
| 13 | + "import/extensions": [".ts", ".mts", ".cts", ".js", ".json"], |
| 14 | + "import/resolver": { |
| 15 | + "typescript": { |
| 16 | + "project": "./tsconfig.json" |
| 17 | + }, |
| 18 | + "node": { |
| 19 | + "extensions": [".js", ".ts", ".mts", ".cts"] |
| 20 | + } |
| 21 | + }, |
| 22 | + "import/parsers": { |
| 23 | + "@typescript-eslint/parser": [".ts", ".mts", ".cts"] |
| 24 | + } |
| 25 | + }, |
| 26 | + "rules": { |
| 27 | + "import/first": "error", |
| 28 | + "import/no-absolute-path": "error", |
| 29 | + "import/no-cycle": "error", |
| 30 | + "import/no-deprecated": "error", |
| 31 | + "import/no-extraneous-dependencies": [ |
| 32 | + "error", |
| 33 | + { |
| 34 | + "devDependencies": ["./vitest.config.mts", "./lint-staged.config.mjs", "./test/**/*"] |
| 35 | + } |
| 36 | + ], |
| 37 | + "import/no-relative-packages": "error", |
| 38 | + "import/no-self-import": "error", |
| 39 | + "import/no-unresolved": "error", |
| 40 | + "import/no-useless-path-segments": [ |
| 41 | + "error", |
| 42 | + { |
| 43 | + "noUselessIndex": false |
| 44 | + } |
| 45 | + ], |
| 46 | + "import/order": [ |
| 47 | + "error", |
| 48 | + { |
| 49 | + "alphabetize": { |
| 50 | + "order": "asc", |
| 51 | + "caseInsensitive": true |
| 52 | + }, |
| 53 | + "groups": ["builtin", "external", "internal", "parent", ["sibling", "index"], "type"], |
| 54 | + "newlines-between": "always" |
| 55 | + } |
| 56 | + ], |
| 57 | + "sort-imports": "off" |
| 58 | + }, |
| 59 | + "overrides": [ |
| 60 | + { |
| 61 | + "files": ["**/*.test.ts"], |
| 62 | + "rules": { |
| 63 | + "@typescript-eslint/no-explicit-any": "off" |
| 64 | + } |
| 65 | + } |
| 66 | + ] |
| 67 | +} |
0 commit comments