2019-07-18 03:27:54 +08:00
|
|
|
module.exports = {
|
2021-03-15 01:53:40 +08:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.vue'],
|
|
|
|
parser: 'vue-eslint-parser',
|
|
|
|
parserOptions: {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
},
|
2021-03-16 00:30:01 +08:00
|
|
|
rules: {
|
|
|
|
'no-unused-vars': 'off',
|
2021-07-05 11:09:47 +08:00
|
|
|
'no-undef': 'off',
|
2021-03-16 00:30:01 +08:00
|
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
|
|
},
|
2021-03-15 01:53:40 +08:00
|
|
|
},
|
|
|
|
],
|
2019-07-18 03:27:54 +08:00
|
|
|
extends: [
|
2020-08-12 19:24:32 +08:00
|
|
|
'plugin:vue/vue3-recommended',
|
2019-07-18 04:43:03 +08:00
|
|
|
'@antfu/eslint-config-ts',
|
2019-07-18 03:27:54 +08:00
|
|
|
],
|
2019-07-19 15:32:43 +08:00
|
|
|
rules: {
|
2021-12-27 17:04:52 +08:00
|
|
|
'vue/max-attributes-per-line': 'off',
|
2021-03-15 01:53:40 +08:00
|
|
|
'vue/no-v-html': 'off',
|
2021-09-13 11:31:02 +08:00
|
|
|
'vue/require-prop-types': 'off',
|
|
|
|
'vue/require-default-prop': 'off',
|
2021-11-28 01:09:24 +08:00
|
|
|
'vue/multi-word-component-names': 'off',
|
2022-03-18 16:42:49 +08:00
|
|
|
|
|
|
|
// reactivity transform
|
|
|
|
'vue/no-setup-props-destructure': 'off',
|
2022-03-30 04:20:16 +08:00
|
|
|
|
|
|
|
'vue/component-tags-order': ['error', {
|
|
|
|
order: ['script', 'template', 'style'],
|
|
|
|
}],
|
2020-08-12 19:24:32 +08:00
|
|
|
},
|
2019-07-18 03:27:54 +08:00
|
|
|
}
|