35 lines
790 B
JavaScript
35 lines
790 B
JavaScript
module.exports = {
|
|
overrides: [
|
|
{
|
|
files: ['*.vue'],
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
},
|
|
rules: {
|
|
'no-unused-vars': 'off',
|
|
'no-undef': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
},
|
|
},
|
|
],
|
|
extends: [
|
|
'plugin:vue/vue3-recommended',
|
|
'@antfu/eslint-config-ts',
|
|
],
|
|
rules: {
|
|
'vue/max-attributes-per-line': 'off',
|
|
'vue/no-v-html': 'off',
|
|
'vue/require-prop-types': 'off',
|
|
'vue/require-default-prop': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
|
|
// reactivity transform
|
|
'vue/no-setup-props-destructure': 'off',
|
|
|
|
'vue/component-tags-order': ['error', {
|
|
order: ['script', 'template', 'style'],
|
|
}],
|
|
},
|
|
}
|