Skip to content

Commit

Permalink
Merge pull request #110 from kalix127/style/add-eslint-vue-block-lang…
Browse files Browse the repository at this point in the history
…-rule

feat: add eslint rule to enforce typescript in vue script blocks
  • Loading branch information
rahul-vashishtha authored Jan 10, 2025
2 parents 2a62944 + 2e0193a commit 179865e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/content/inspira/examples/AnimatedBeamDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
const containerRef = ref(null);
const div1Ref = ref(null);
const div2Ref = ref(null);
Expand Down
2 changes: 1 addition & 1 deletion components/content/inspira/examples/AnimatedBeamDemo2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</ClientOnly>
</template>

<script setup>
<script setup lang="ts">
const containerRef = ref(null);
const div1Ref = ref(null);
const div2Ref = ref(null);
Expand Down
2 changes: 1 addition & 1 deletion components/content/inspira/examples/AnimatedListDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ClientOnly>
</template>

<script setup>
<script setup lang="ts">
const notifications = [
{
name: "Payment received",
Expand Down
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ export default withNuxt(
order: ["template", "script", "style"],
},
],
"vue/block-lang": [
"error",
{
script: {
lang: "ts",
},
},
],
"tailwindcss/no-custom-classname": "off",
"@typescript-eslint/no-empty-object-type": [
"error",
Expand Down

0 comments on commit 179865e

Please sign in to comment.