Skip to content

Commit

Permalink
fix(build): remove declarations to reduce chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 10, 2024
1 parent 1390217 commit 09a96cd
Show file tree
Hide file tree
Showing 16 changed files with 727 additions and 48 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default createConfigForNuxt({
// options here

}, {
rules: {
"@typescript-eslint/no-explicit-any": "off",
"vue/multi-word-component-names": "off",
"@typescript-eslint/ban-ts-comment": "off",
}
})
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dev:build": "nuxi build playground",
"dev:generate": "nuxi generate playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"lint": "eslint --ext .js,.ts,.vue .",
"lint": "eslint ",
"test": "vitest",
"release": "pnpm test && release-it"
},
Expand All @@ -47,6 +47,7 @@
},
"devDependencies": {
"@iconify/vue": "^4.1.2",
"@nuxt/eslint-config": "^0.3.13",
"@nuxt/content": "^2.13.2",
"@nuxt/module-builder": "^0.8.3",
"@nuxt/test-utils": "^3.14.1",
Expand Down
3 changes: 2 additions & 1 deletion playground/components/TestComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ defineProps({
}
})
const emit = defineEmits(['change', 'delete'])
defineEmits(['change', 'delete'])
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const test = {}
</script>
2 changes: 1 addition & 1 deletion playground/components/TextDefine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { PropType, defineComponent, type SlotsType } from 'vue'
export default defineComponent({
name: 'TextDefine',
slots: Object as SlotsType<{
default: {}
default: any
}>,
props: {
title: {
Expand Down
1 change: 1 addition & 0 deletions playground/components/content/UseSlots.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<script setup lang="ts">
const slots = useSlots()
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const defaultSlot = computed(() => slots.default?.())
</script>
1 change: 1 addition & 0 deletions playground/components/content/UseSlotsDestructuring.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
</template>

<script setup lang="ts">
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { title, default: dd } = useSlots()
</script>
3 changes: 2 additions & 1 deletion playground/components/global/TestGlobalComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ defineProps({
}
})
const emit = defineEmits(['change', 'delete'])
defineEmits(['change', 'delete'])
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const test = {}
</script>
Loading

0 comments on commit 09a96cd

Please sign in to comment.