Skip to content

Commit 33dbb6e

Browse files
committed
feat(vue): enable require-typed-object-prop as error
Warns when using Object as a prop type instead of a typed interface. No autofix, has editor suggestions. Gradual migration. # Conflicts: # test/__snapshots__/factory/full-on.snap.json # test/__snapshots__/factory/javascript-vue.snap.json
1 parent 00b499d commit 33dbb6e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/configs/vue.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export async function vue(
9898
useAttrs: 'attrs',
9999
useSlots: 'slots',
100100
}],
101+
'vue/require-typed-object-prop': 'error',
101102
'vue/require-typed-ref': 'error',
102103
'vue/v-bind-style': ['error', 'shorthand'],
103104
'vue/v-on-handler-style': [

test/__snapshots__/factory/full-on.snap.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,7 @@
15771577
"vue/require-render-return": "error",
15781578
"vue/require-slots-as-functions": "error",
15791579
"vue/require-toggle-inside-transition": "error",
1580+
"vue/require-typed-object-prop": "error",
15801581
"vue/require-typed-ref": "error",
15811582
"vue/require-v-for-key": "error",
15821583
"vue/require-valid-default-prop": "error",

test/__snapshots__/factory/javascript-vue.snap.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,7 @@
13571357
"vue/require-render-return": "error",
13581358
"vue/require-slots-as-functions": "error",
13591359
"vue/require-toggle-inside-transition": "error",
1360+
"vue/require-typed-object-prop": "error",
13601361
"vue/require-typed-ref": "error",
13611362
"vue/require-v-for-key": "error",
13621363
"vue/require-valid-default-prop": "error",

0 commit comments

Comments
 (0)