Skip to content

Commit

Permalink
update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Apr 12, 2024
1 parent 18b14f7 commit 1cffa16
Show file tree
Hide file tree
Showing 58 changed files with 644 additions and 563 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

7 changes: 6 additions & 1 deletion docs/components/content/Example/ExampleAlert.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<script setup>
defineProps(['type'])
defineProps({
type: {
type: String,
default: () => ''
}
})
</script>

<template>
Expand Down
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",
}
})
2 changes: 1 addition & 1 deletion examples/advanced/transformer/my-module/my-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineNuxtModule({
nuxt.options.nitro.externals = nuxt.options.nitro.externals || {}
nuxt.options.nitro.externals.inline = nuxt.options.nitro.externals.inline || []
nuxt.options.nitro.externals.inline.push(resolve('./my-module'))
// @ts-ignore
// @ts-expect-error
nuxt.hook('content:context', (contentContext) => {
contentContext.transformers.push(resolve('./my-module/my-transformer.ts'))
})
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/transformer/my-module/my-transformer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-ignore
// @ts-expect-error
import { defineTransformer } from '@nuxt/content/transformers'

export default defineTransformer({
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/transformer/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MyModule from './my-module/my-module'

export default defineNuxtConfig({
modules: [
// @ts-ignore
// @ts-expect-error
MyModule,
'@nuxt/content'
]
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"build:docs": "(cd docs && nuxi build)",
"build:web-types": "vue-docgen-web-types src/runtime/components/ ./dist/web-types.json",
"example": "./scripts/example.sh",
"lint": "eslint --ext .js,.ts,.vue .",
"lint": "eslint .",
"release": "npm run lint; release-it",
"prepack": "pnpm build",
"test:coverage": "vitest --coverage",
Expand All @@ -59,9 +59,9 @@
"listhen": "^1.7.2",
"mdast-util-to-string": "^4.0.0",
"mdurl": "^2.0.0",
"micromark": "^4.0.0",
"micromark-util-sanitize-uri": "^2.0.0",
"micromark-util-types": "^2.0.0",
"micromark": "^4.0.0",
"minisearch": "^6.3.0",
"ohash": "^1.1.3",
"pathe": "^1.1.2",
Expand All @@ -75,11 +75,11 @@
"ws": "^8.16.0"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.3.6",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "3.11.2",
"@nuxt/test-utils": "3.12.0",
"@nuxthq/studio": "^1.0.13",
"@nuxtjs/eslint-config-typescript": "latest",
"@nuxtjs/tailwindcss": "^6.11.4",
"@types/ws": "^8.5.10",
"c8": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion playground/basic/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineNuxtConfig({
includeWorkspace: true
},
modules: [
// @ts-ignore
// @ts-expect-error
contentModule
// '@nuxtjs/tailwindcss'
]
Expand Down
2 changes: 1 addition & 1 deletion playground/document-driven/components/content/Debug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</template>

<script setup lang="ts">
// @ts-ignore
// @ts-expect-error
import { useContent, useTheme } from '#imports'
const { globals, surround, page, navigation } = useContent()
Expand Down
2 changes: 1 addition & 1 deletion playground/navigation/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import contentModule from '../../src/module'

export default defineNuxtConfig({
modules: [
// @ts-ignore
// @ts-expect-error
contentModule
],
content: {
Expand Down
2 changes: 1 addition & 1 deletion playground/shared/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineNuxtConfig({
}
],
modules: [
// @ts-ignore
// @ts-expect-error
contentModule,
'@nuxthq/studio'
],
Expand Down
Loading

0 comments on commit 1cffa16

Please sign in to comment.