Skip to content

Commit 09a96cd

Browse files
committed
fix(build): remove declarations to reduce chunk size
1 parent 1390217 commit 09a96cd

File tree

16 files changed

+727
-48
lines changed

16 files changed

+727
-48
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
2+
3+
export default createConfigForNuxt({
4+
// options here
5+
6+
}, {
7+
rules: {
8+
"@typescript-eslint/no-explicit-any": "off",
9+
"vue/multi-word-component-names": "off",
10+
"@typescript-eslint/ban-ts-comment": "off",
11+
}
12+
})

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dev:build": "nuxi build playground",
3434
"dev:generate": "nuxi generate playground",
3535
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
36-
"lint": "eslint --ext .js,.ts,.vue .",
36+
"lint": "eslint ",
3737
"test": "vitest",
3838
"release": "pnpm test && release-it"
3939
},
@@ -47,6 +47,7 @@
4747
},
4848
"devDependencies": {
4949
"@iconify/vue": "^4.1.2",
50+
"@nuxt/eslint-config": "^0.3.13",
5051
"@nuxt/content": "^2.13.2",
5152
"@nuxt/module-builder": "^0.8.3",
5253
"@nuxt/test-utils": "^3.14.1",

playground/components/TestComponent.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ defineProps({
3838
}
3939
})
4040
41-
const emit = defineEmits(['change', 'delete'])
41+
defineEmits(['change', 'delete'])
4242
43+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4344
const test = {}
4445
</script>

playground/components/TextDefine.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { PropType, defineComponent, type SlotsType } from 'vue'
1313
export default defineComponent({
1414
name: 'TextDefine',
1515
slots: Object as SlotsType<{
16-
default: {}
16+
default: any
1717
}>,
1818
props: {
1919
title: {

playground/components/content/UseSlots.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<script setup lang="ts">
88
const slots = useSlots()
99
10+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1011
const defaultSlot = computed(() => slots.default?.())
1112
1213
</script>

playground/components/content/UseSlotsDestructuring.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
</template>
66

77
<script setup lang="ts">
8+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
89
const { title, default: dd } = useSlots()
910
</script>

playground/components/global/TestGlobalComponent.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ defineProps({
3838
}
3939
})
4040
41-
const emit = defineEmits(['change', 'delete'])
41+
defineEmits(['change', 'delete'])
4242
43+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4344
const test = {}
4445
</script>

0 commit comments

Comments
 (0)