diff --git a/.eslintignore b/.eslintignore
deleted file mode 100644
index 53c37a166..000000000
--- a/.eslintignore
+++ /dev/null
@@ -1 +0,0 @@
-dist
\ No newline at end of file
diff --git a/.eslintrc b/.eslintrc
deleted file mode 100644
index c1042c736..000000000
--- a/.eslintrc
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "root": true,
- "extends": ["@nuxtjs/eslint-config-typescript"],
- "rules": {
- "vue/multi-word-component-names": "off",
- "vue/no-multiple-template-root": "off",
- "no-redeclare": "off",
- "import/named": "off"
- }
-}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c05555709..35441a546 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,7 +21,7 @@ jobs:
# name: Install pnpm
# id: pnpm-install
# with:
- # version: 8
+ # version: 9
# - run: pnpm install
# - run: pnpm prepare
# - run: pnpm lint
@@ -34,12 +34,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
- node-version: '16'
+ node-version: '20'
- uses: pnpm/action-setup@v3.0.0
name: Install pnpm
id: pnpm-install
with:
- version: 8
+ version: 9
- run: pnpm install
- run: pnpm prepare
- run: pnpm lint
diff --git a/docs/components/content/Example/ExampleAlert.vue b/docs/components/content/Example/ExampleAlert.vue
index aa44b4362..31d523061 100644
--- a/docs/components/content/Example/ExampleAlert.vue
+++ b/docs/components/content/Example/ExampleAlert.vue
@@ -1,5 +1,10 @@
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 000000000..c827135c9
--- /dev/null
+++ b/eslint.config.mjs
@@ -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",
+ }
+})
\ No newline at end of file
diff --git a/examples/advanced/transformer/my-module/my-module.ts b/examples/advanced/transformer/my-module/my-module.ts
index ef5733b78..3f1ea0816 100644
--- a/examples/advanced/transformer/my-module/my-module.ts
+++ b/examples/advanced/transformer/my-module/my-module.ts
@@ -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'))
})
diff --git a/examples/advanced/transformer/my-module/my-transformer.ts b/examples/advanced/transformer/my-module/my-transformer.ts
index 9858b6818..bd4fa4308 100644
--- a/examples/advanced/transformer/my-module/my-transformer.ts
+++ b/examples/advanced/transformer/my-module/my-transformer.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import { defineTransformer } from '@nuxt/content/transformers'
export default defineTransformer({
diff --git a/examples/advanced/transformer/nuxt.config.ts b/examples/advanced/transformer/nuxt.config.ts
index 11065e4b2..8939679b8 100644
--- a/examples/advanced/transformer/nuxt.config.ts
+++ b/examples/advanced/transformer/nuxt.config.ts
@@ -2,7 +2,7 @@ import MyModule from './my-module/my-module'
export default defineNuxtConfig({
modules: [
- // @ts-ignore
+ // @ts-expect-error
MyModule,
'@nuxt/content'
]
diff --git a/package.json b/package.json
index f3cd4e919..feb4e6a26 100644
--- a/package.json
+++ b/package.json
@@ -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",
@@ -46,7 +46,7 @@
"test:unit": "nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/document-driven && vitest run"
},
"dependencies": {
- "@nuxt/kit": "^3.10.3",
+ "@nuxt/kit": "^3.11.2",
"@nuxtjs/mdc": "^0.6.1",
"@vueuse/core": "^10.9.0",
"@vueuse/head": "^2.0.0",
@@ -55,18 +55,18 @@
"defu": "^6.1.4",
"destr": "^2.0.3",
"json5": "^2.2.3",
- "knitwork": "^1.0.0",
+ "knitwork": "^1.1.0",
"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",
"scule": "^1.3.0",
- "shiki": "^1.2.0",
+ "shiki": "^1.3.0",
"slugify": "^1.6.6",
"socket.io-client": "^4.7.5",
"ufo": "^1.5.3",
@@ -75,40 +75,29 @@
"ws": "^8.16.0"
},
"devDependencies": {
+ "@nuxt/eslint-config": "^0.3.8",
"@nuxt/module-builder": "^0.5.5",
- "@nuxt/schema": "3.10.3",
- "@nuxt/test-utils": "3.11.0",
+ "@nuxt/schema": "3.11.2",
+ "@nuxt/test-utils": "3.12.1",
"@nuxthq/studio": "^1.0.13",
- "@nuxtjs/eslint-config-typescript": "latest",
- "@nuxtjs/tailwindcss": "^6.11.4",
+ "@nuxtjs/tailwindcss": "^6.12.0",
"@types/ws": "^8.5.10",
"c8": "^9.1.0",
"csvtojson": "^2.0.10",
- "eslint": "^8.57.0",
+ "eslint": "^9.0.0",
"globby": "^14.0.1",
"husky": "^9.0.11",
"jiti": "^1.21.0",
"lint-staged": "^15.2.2",
- "nuxt": "3.10.3",
+ "nuxt": "3.11.2",
"rehype-figure": "^1.0.1",
"rehype-wrap-all": "^1.1.0",
- "release-it": "^17.1.1",
+ "release-it": "^17.2.0",
"remark-oembed": "^1.2.2",
- "vitest": "^1.4.0",
+ "vitest": "^1.5.0",
"vue-docgen-web-types": "^0.1.8"
},
- "packageManager": "pnpm@8.15.5",
- "pnpm": {
- "peerDependencyRules": {
- "allowedVersions": {
- "vue": "^3.2.45"
- },
- "ignoreMissing": [
- "webpack",
- "vue"
- ]
- }
- },
+ "packageManager": "pnpm@9.0.2",
"release-it": {
"git": {
"commitMessage": "chore(release): release v${version}"
diff --git a/playground/basic/nuxt.config.ts b/playground/basic/nuxt.config.ts
index 07c9dcb57..3d22ae601 100644
--- a/playground/basic/nuxt.config.ts
+++ b/playground/basic/nuxt.config.ts
@@ -25,7 +25,7 @@ export default defineNuxtConfig({
includeWorkspace: true
},
modules: [
- // @ts-ignore
+ // @ts-expect-error
contentModule
// '@nuxtjs/tailwindcss'
]
diff --git a/playground/document-driven/components/content/Debug.vue b/playground/document-driven/components/content/Debug.vue
index 9c8e86795..85391dbc3 100644
--- a/playground/document-driven/components/content/Debug.vue
+++ b/playground/document-driven/components/content/Debug.vue
@@ -28,7 +28,7 @@