eslint-config/packages/vue/index.js
2021-03-15 01:53:40 +08:00

21 lines
418 B
JavaScript

module.exports = {
overrides: [
{
files: ['*.vue'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
},
],
extends: [
'plugin:vue/vue3-recommended',
'@antfu/eslint-config-ts',
],
rules: {
'vue/max-attributes-per-line': ['warn', { singleline: 5 }],
'vue/html-self-closing': 'off',
'vue/no-v-html': 'off',
},
}