|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + extends: [ |
| 4 | + 'plugin:vue/vue3-essential', |
| 5 | + 'eslint:recommended', |
| 6 | + '@vue/eslint-config-typescript', |
| 7 | + '@vue/eslint-config-prettier/skip-formatting', |
| 8 | + '@vue/airbnb' |
| 9 | + ], |
| 10 | + parserOptions: { |
| 11 | + ecmaVersion: 'latest' |
| 12 | + }, |
| 13 | + overrides: [ |
| 14 | + { |
| 15 | + files: ['*.vue'], |
| 16 | + rules: { |
| 17 | + 'vue/multi-word-component-names': 'off' |
| 18 | + } |
| 19 | + } |
| 20 | + ], |
| 21 | + rules: { |
| 22 | + 'no-plusplus': 'off', |
| 23 | + 'comma-dangle': ['error', 'never'], |
| 24 | + 'import/no-extraneous-dependencies': 'off', |
| 25 | + 'import/extensions': 'off', |
| 26 | + 'import/no-unresolved': 'off', |
| 27 | + '@typescript-eslint/no-unused-vars': [ |
| 28 | + 'error', |
| 29 | + { |
| 30 | + ignoreRestSiblings: true, |
| 31 | + vars: 'local' |
| 32 | + } |
| 33 | + ], |
| 34 | + 'no-shadow': 'off', |
| 35 | + 'implicit-arrow-linebreak': 'off', |
| 36 | + 'space-before-blocks': 'error', |
| 37 | + 'function-paren-newline': 'off', |
| 38 | + 'padding-line-between-statements': [ |
| 39 | + 'error', |
| 40 | + { |
| 41 | + blankLine: 'always', |
| 42 | + prev: '*', |
| 43 | + next: 'return' |
| 44 | + }, |
| 45 | + { |
| 46 | + blankLine: 'always', |
| 47 | + prev: ['const', 'let', 'var'], |
| 48 | + next: '*' |
| 49 | + }, |
| 50 | + { |
| 51 | + blankLine: 'any', |
| 52 | + prev: ['const', 'let', 'var'], |
| 53 | + next: ['const', 'let', 'var'] |
| 54 | + } |
| 55 | + ], |
| 56 | + 'object-curly-newline': 'off', |
| 57 | + 'vue/multi-word-component-names': 'off', |
| 58 | + 'vue/comma-dangle': 'off', |
| 59 | + 'vue/no-setup-props-destructure': 'off', |
| 60 | + 'func-call-spacing': 'off', |
| 61 | + 'operator-linebreak': 'off', |
| 62 | + 'import/prefer-default-export': 'off', |
| 63 | + 'vue/html-indent': 'off', |
| 64 | + 'vue/max-attributes-per-line': 'off', |
| 65 | + 'no-spaced-func': 'off', |
| 66 | + '@typescript-eslint/consistent-type-imports': 'error', |
| 67 | + 'vuejs-accessibility/form-control-has-label': 'off', |
| 68 | + 'vue/first-attribute-linebreak': 'off', |
| 69 | + indent: ['off'], |
| 70 | + curly: ['error', 'multi', 'consistent'], |
| 71 | + 'no-confusing-arrow': 'off', |
| 72 | + 'nonblock-statement-body-position': 'off', |
| 73 | + 'vue/operator-linebreak': 'off' |
| 74 | + } |
| 75 | +}; |
0 commit comments