|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "extends": ["eslint:recommended"], |
| 4 | + "env": { |
| 5 | + "browser": true, |
| 6 | + "es2021": true |
| 7 | + }, |
| 8 | + "parserOptions": { |
| 9 | + "ecmaVersion": 12, |
| 10 | + "sourceType": "module" |
| 11 | + }, |
| 12 | + "overrides": [ |
| 13 | + { |
| 14 | + "files": ["**/*.ts"], |
| 15 | + "settings": { |
| 16 | + "import/extensions": [".js", ".ts"], |
| 17 | + "import/parsers": { |
| 18 | + "@typescript-eslint/parser": [".ts"] |
| 19 | + }, |
| 20 | + "import/resolver": { |
| 21 | + "typescript": { |
| 22 | + "alwaysCheckTypes": true, |
| 23 | + "project": "./tsconfig.json", |
| 24 | + "extensions": [".ts", ".tsx"] |
| 25 | + }, |
| 26 | + "node": { |
| 27 | + "extensions": [".js", ".jsx", ".ts", ".tsx"], |
| 28 | + "moduleDirectory": ["node_modules"] |
| 29 | + } |
| 30 | + } |
| 31 | + }, |
| 32 | + "parser": "@typescript-eslint/parser", |
| 33 | + "parserOptions": { |
| 34 | + "project": "./tsconfig.json", |
| 35 | + "tsconfigRootDir": "./" |
| 36 | + }, |
| 37 | + "plugins": ["unused-imports"], |
| 38 | + "extends": [ |
| 39 | + "plugin:@typescript-eslint/recommended", |
| 40 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 41 | + "plugin:import/errors", |
| 42 | + "plugin:import/warnings", |
| 43 | + "plugin:import/typescript", |
| 44 | + "plugin:prettier/recommended" |
| 45 | + ], |
| 46 | + "rules": { |
| 47 | + "@typescript-eslint/no-unused-vars": "off", |
| 48 | + "unused-imports/no-unused-imports": "error", |
| 49 | + "no-multiple-empty-lines": 2, |
| 50 | + "import/newline-after-import": [2], |
| 51 | + "@typescript-eslint/explicit-function-return-type": 2, |
| 52 | + "@typescript-eslint/no-inferrable-types": [ |
| 53 | + 2, |
| 54 | + { |
| 55 | + "ignoreProperties": true |
| 56 | + } |
| 57 | + ], |
| 58 | + "import/order": [ |
| 59 | + "error", |
| 60 | + { |
| 61 | + "newlines-between": "always", |
| 62 | + "alphabetize": { |
| 63 | + "order": "asc", |
| 64 | + "caseInsensitive": true |
| 65 | + }, |
| 66 | + "pathGroups": [ |
| 67 | + { |
| 68 | + "pattern": "@/**", |
| 69 | + "group": "external", |
| 70 | + "position": "after" |
| 71 | + }, |
| 72 | + { |
| 73 | + "pattern": "@ve-app", |
| 74 | + "group": "internal", |
| 75 | + "position": "after" |
| 76 | + }, |
| 77 | + { |
| 78 | + "pattern": "@ve-components", |
| 79 | + "group": "internal", |
| 80 | + "position": "after" |
| 81 | + }, |
| 82 | + { |
| 83 | + "pattern": "@ve-core", |
| 84 | + "group": "internal", |
| 85 | + "position": "after" |
| 86 | + }, |
| 87 | + { |
| 88 | + "pattern": "@ve-utils", |
| 89 | + "group": "internal", |
| 90 | + "position": "after" |
| 91 | + }, |
| 92 | + { |
| 93 | + "pattern": "@ve-types/**", |
| 94 | + "group": "type", |
| 95 | + "position": "after" |
| 96 | + }, |
| 97 | + { |
| 98 | + "pattern": "../../lib/**", |
| 99 | + "group": "external", |
| 100 | + "position": "after" |
| 101 | + } |
| 102 | + ], |
| 103 | + "groups": [ |
| 104 | + "builtin", |
| 105 | + "external", |
| 106 | + "internal", |
| 107 | + "unknown", |
| 108 | + "parent", |
| 109 | + "sibling", |
| 110 | + "index", |
| 111 | + "object", |
| 112 | + "type" |
| 113 | + ] |
| 114 | + } |
| 115 | + ] |
| 116 | + } |
| 117 | + } |
| 118 | + ] |
| 119 | +} |
0 commit comments