|
| 1 | +/* |
| 2 | + * @Descripttion: |
| 3 | + * @version: |
| 4 | + * @Author: wenlan |
| 5 | + * @Date: 2022-01-14 15:22:01 |
| 6 | + * @LastEditors: wenlan |
| 7 | + * @LastEditTime: 2022-01-14 19:58:10 |
| 8 | + */ |
| 9 | +module.exports = { |
| 10 | + parser: "vue-eslint-parser", |
| 11 | + parserOptions: { |
| 12 | + parser: "@typescript-eslint/parser", |
| 13 | + ecmaVersion: 2020, |
| 14 | + sourceType: "module", |
| 15 | + ecmaFeatures: { |
| 16 | + jsx: true |
| 17 | + } |
| 18 | + }, |
| 19 | + extends: [ |
| 20 | + "plugin:vue/vue3-recommended", |
| 21 | + "plugin:@typescript-eslint/recommended", |
| 22 | + "prettier/@typescript-eslint", |
| 23 | + "plugin:prettier/recommended" |
| 24 | + ], |
| 25 | + rules: { |
| 26 | + "@typescript-eslint/ban-ts-ignore": "off", |
| 27 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 28 | + "@typescript-eslint/no-explicit-any": "off", |
| 29 | + "@typescript-eslint/no-var-requires": "off", |
| 30 | + "@typescript-eslint/no-empty-function": "off", |
| 31 | + "vue/custom-event-name-casing": "off", |
| 32 | + "no-use-before-define": "off", |
| 33 | + // 'no-use-before-define': [ |
| 34 | + // 'error', |
| 35 | + // { |
| 36 | + // functions: false, |
| 37 | + // classes: true, |
| 38 | + // }, |
| 39 | + // ], |
| 40 | + "@typescript-eslint/no-use-before-define": "off", |
| 41 | + // '@typescript-eslint/no-use-before-define': [ |
| 42 | + // 'error', |
| 43 | + // { |
| 44 | + // functions: false, |
| 45 | + // classes: true, |
| 46 | + // }, |
| 47 | + // ], |
| 48 | + "@typescript-eslint/ban-ts-comment": "off", |
| 49 | + "@typescript-eslint/ban-types": "off", |
| 50 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 51 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 52 | + "@typescript-eslint/no-unused-vars": [ |
| 53 | + "error", |
| 54 | + { |
| 55 | + argsIgnorePattern: "^h$", |
| 56 | + varsIgnorePattern: "^h$" |
| 57 | + } |
| 58 | + ], |
| 59 | + "no-unused-vars": [ |
| 60 | + "error", |
| 61 | + { |
| 62 | + argsIgnorePattern: "^h$", |
| 63 | + varsIgnorePattern: "^h$" |
| 64 | + } |
| 65 | + ], |
| 66 | + "space-before-function-paren": "off", |
| 67 | + quotes: ["error", "single"], |
| 68 | + "comma-dangle": ["error", "never"] |
| 69 | + } |
| 70 | +} |
0 commit comments