Skip to content

Commit

Permalink
style: move inheritAttrs to defineOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorin Gitlan committed Dec 26, 2023
1 parent cc23181 commit e3b1959
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 44 deletions.
8 changes: 2 additions & 6 deletions packages/vue-bezier/src/components/Fade/FadeTransition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
</component>
</template>

<script lang="ts">
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
import type { Events } from '../../../types'
import {
Expand All @@ -26,6 +20,8 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps())
const emit = defineEmits<Events>()
Expand Down
5 changes: 2 additions & 3 deletions packages/vue-bezier/src/components/Scale/ScaleTransition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ export const customProps = {
}
}
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
Expand All @@ -42,6 +39,8 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps(customProps))
const emit = defineEmits<Events>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export const customProps = {
type: Object
}
}
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
Expand All @@ -38,6 +34,7 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps(customProps))
const emit = defineEmits<Events>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export const customProps = {
type: Object
}
}
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
Expand All @@ -38,6 +34,7 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps(customProps))
const emit = defineEmits<Events>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ export const customProps = {
type: Object
}
}
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
Expand All @@ -37,6 +33,7 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps(customProps))
const emit = defineEmits<Events>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export const customProps = {
type: Object
}
}
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
Expand All @@ -39,6 +35,7 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps(customProps))
const emit = defineEmits<Events>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
</component>
</template>

<script lang="ts">
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
import type { Events } from '../../../types'
import {
Expand All @@ -26,6 +20,7 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps())
const emit = defineEmits<Events>()
Expand Down
5 changes: 1 addition & 4 deletions packages/vue-bezier/src/components/Zoom/ZoomUpTransition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export const customProps = {
type: Object
}
}
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
Expand All @@ -38,6 +34,7 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps(customProps))
const emit = defineEmits<Events>()
Expand Down
5 changes: 1 addition & 4 deletions packages/vue-bezier/src/components/Zoom/ZoomXTransition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export const customProps = {
type: Object
}
}
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
Expand All @@ -38,6 +34,7 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps(customProps))
const emit = defineEmits<Events>()
Expand Down
5 changes: 1 addition & 4 deletions packages/vue-bezier/src/components/Zoom/ZoomYTransition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export const customProps = {
type: Object
}
}
export default {
inheritAttrs: false
}
</script>

<script setup lang="ts">
Expand All @@ -38,6 +34,7 @@ import {
buildTag
} from '../../composable'
defineOptions({ inheritAttrs: false })
const props = defineProps(buildProps(customProps))
const emit = defineEmits<Events>()
Expand Down
2 changes: 1 addition & 1 deletion rules/vue-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
// disallow this usage in a beforeRouteEnter method
'vue/no-this-in-before-route-enter': 'error',
// disallow unsupported Vue.js syntax on the specified version
'vue/no-unsupported-features': ['error', { ignores: [], version: '^3.0.0' }],
'vue/no-unsupported-features': ['error', { ignores: [], version: '^3.3.0' }],
// disallow unused properties
'vue/no-unused-properties': 'error',
// disallow unused refs
Expand Down

0 comments on commit e3b1959

Please sign in to comment.