|
1 | 1 | import vueBlockAttributeOrder from "@byscripts/eslint-plugin/vue-block-attribute-order"; |
2 | 2 | import typescriptConfig from "./typescript.js"; |
3 | 3 | import pluginVue from "eslint-plugin-vue"; |
4 | | -import { |
5 | | - defineConfigWithVueTs, |
6 | | - vueTsConfigs, |
7 | | -} from "@vue/eslint-config-typescript"; |
| 4 | +import { defineConfigWithVueTs, vueTsConfigs } from "@vue/eslint-config-typescript"; |
8 | 5 |
|
9 | 6 | export default defineConfigWithVueTs( |
10 | 7 | { |
@@ -44,21 +41,12 @@ export default defineConfigWithVueTs( |
44 | 41 | "vue/define-macros-order": [ |
45 | 42 | "error", |
46 | 43 | { |
47 | | - order: [ |
48 | | - "defineOptions", |
49 | | - "defineProps", |
50 | | - "defineEmits", |
51 | | - "defineModel", |
52 | | - "defineSlots", |
53 | | - ], |
| 44 | + order: ["defineOptions", "defineProps", "defineEmits", "defineModel", "defineSlots"], |
54 | 45 | defineExposeLast: true, |
55 | 46 | }, |
56 | 47 | ], |
57 | 48 | "vue/define-props-declaration": ["error", "type-based"], |
58 | | - "vue/define-props-destructuring": [ |
59 | | - "error", |
60 | | - { destructure: "only-when-assigned" }, |
61 | | - ], |
| 49 | + "vue/define-props-destructuring": ["error", { destructure: "only-when-assigned" }], |
62 | 50 | "vue/enforce-style-attribute": ["error", { allow: ["scoped", "module"] }], |
63 | 51 | "vue/html-button-has-type": "error", |
64 | 52 | "vue/html-comment-content-newline": [ |
@@ -110,12 +98,13 @@ export default defineConfigWithVueTs( |
110 | 98 | "vue/static-class-names-order": "error", |
111 | 99 | "vue/v-for-delimiter-style": ["error", "of"], |
112 | 100 | "vue/v-on-handler-style": ["error", ["method", "inline-function"]], |
| 101 | + "vue/require-default-prop": "off", |
113 | 102 | }, |
114 | 103 | }, |
115 | 104 | { |
116 | 105 | files: ["*/pages/**/*.vue"], |
117 | 106 | rules: { |
118 | 107 | "vue/multi-word-component-names": "off", |
119 | | - } |
120 | | - } |
| 108 | + }, |
| 109 | + }, |
121 | 110 | ); |
0 commit comments