|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "extends": [ |
| 4 | + "eslint:recommended", |
| 5 | + "plugin:@typescript-eslint/eslint-recommended", |
| 6 | + "plugin:@typescript-eslint/recommended", |
| 7 | + "plugin:vue/recommended", |
| 8 | + "standard", |
| 9 | + "plugin:prettier/recommended" |
| 10 | + ], |
| 11 | + "parser": "vue-eslint-parser", |
| 12 | + "parserOptions": { |
| 13 | + "parser": "@typescript-eslint/parser", |
| 14 | + "ecmaVersion": 2021, |
| 15 | + "sourceType": "module", |
| 16 | + "extraFileExtensions": [".vue"] |
| 17 | + }, |
| 18 | + "plugins": ["import"], |
| 19 | + "rules": { |
| 20 | + "no-console": ["error", { "allow": ["warn", "error"] }], |
| 21 | + "no-debugger": "error", |
| 22 | + "object-curly-spacing": "error", |
| 23 | + "array-bracket-spacing": "error", |
| 24 | + "no-multi-spaces": "error", |
| 25 | + "vue/multi-word-component-names": "warn", |
| 26 | + "import/order": "error", |
| 27 | + "curly": "error", |
| 28 | + "brace-style": "error", |
| 29 | + "no-else-return": "error", |
| 30 | + "no-lonely-if": "error", |
| 31 | + "require-await": "error", |
| 32 | + "no-extra-parens": "error", |
| 33 | + "func-style": ["error", "declaration", { "allowArrowFunctions": true }], |
| 34 | + "eol-last": "error", |
| 35 | + "no-eval": "error", |
| 36 | + "no-implied-eval": "error", |
| 37 | + "complexity": "warn", |
| 38 | + "max-depth": "warn", |
| 39 | + "max-lines": "warn", |
| 40 | + "max-lines-per-function": "warn" |
| 41 | + }, |
| 42 | + "ignorePatterns": ["**/node_modules/**/*", "**/dist/**/*"], |
| 43 | + "settings": { |
| 44 | + "import/parsers": { |
| 45 | + "@typescript-eslint/parser": [".ts", ".tsx"] |
| 46 | + }, |
| 47 | + "import/resolver": { |
| 48 | + "typescript": { |
| 49 | + "alwaysTryTypes": true |
| 50 | + } |
| 51 | + } |
| 52 | + }, |
| 53 | + "overrides": [ |
| 54 | + { |
| 55 | + "files": ["**/__tests__/*.{j,t}s?(x)", "**/tests/**/*.spec.{j,t}s?(x)"], |
| 56 | + "env": { |
| 57 | + "jest": true |
| 58 | + }, |
| 59 | + "plugins": ["jest"], |
| 60 | + "rules": { |
| 61 | + "max-lines-per-function": "off" |
| 62 | + } |
| 63 | + }, |
| 64 | + { |
| 65 | + "files": ["packages/**/*.js", "packages/**/*.vue"], |
| 66 | + "env": { |
| 67 | + "browser": true |
| 68 | + } |
| 69 | + }, |
| 70 | + { |
| 71 | + "files": ["packages/**/*.ts"], |
| 72 | + "env": { |
| 73 | + "browser": true |
| 74 | + }, |
| 75 | + "parserOptions": { |
| 76 | + "parser": "@typescript-eslint/parser", |
| 77 | + "ecmaVersion": 2021, |
| 78 | + "sourceType": "module", |
| 79 | + "project": "./tsconfig.json" |
| 80 | + }, |
| 81 | + "plugins": ["eslint-plugin-tsdoc"], |
| 82 | + "rules": { |
| 83 | + "tsdoc/syntax": "warn", |
| 84 | + "no-use-before-define": "off", |
| 85 | + "@typescript-eslint/promise-function-async": "off", |
| 86 | + "@typescript-eslint/naming-convention": [ |
| 87 | + "error", |
| 88 | + { |
| 89 | + "selector": ["typeLike"], |
| 90 | + "format": ["PascalCase"] |
| 91 | + }, |
| 92 | + { |
| 93 | + "selector": ["memberLike"], |
| 94 | + "format": ["camelCase", "UPPER_CASE", "snake_case"] |
| 95 | + } |
| 96 | + ], |
| 97 | + "@typescript-eslint/consistent-type-definitions": ["error", "interface"] |
| 98 | + } |
| 99 | + } |
| 100 | + ] |
| 101 | +} |
0 commit comments