diff --git a/spx-gui/.eslintrc.cjs b/spx-gui/.eslintrc.cjs index 8fd834a41..4d1f6ad01 100644 --- a/spx-gui/.eslintrc.cjs +++ b/spx-gui/.eslintrc.cjs @@ -31,6 +31,20 @@ module.exports = { 'v-.*' // for Vue Konva components ] } + ], + 'no-restricted-imports': [ + 'warn', + { + paths: [ + { + // Workaround for https://github.com/vuejs/eslint-plugin-vue/issues/2437 + name: 'vue', + importNames: ['defineProps', 'defineEmits'], + message: + '`defineProps` and `defineEmits` are compiler macros and no longer need to be imported.' + } + ] + } ] } } diff --git a/spx-gui/src/components/asset/animation/GroupCostumesModal.vue b/spx-gui/src/components/asset/animation/GroupCostumesModal.vue index bbad57da2..9fe8f3fda 100644 --- a/spx-gui/src/components/asset/animation/GroupCostumesModal.vue +++ b/spx-gui/src/components/asset/animation/GroupCostumesModal.vue @@ -54,7 +54,7 @@