Skip to content

Commit

Permalink
chore: upgrade deps & linter (#2611)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Apr 18, 2024
1 parent 9870b42 commit 6cb6017
Show file tree
Hide file tree
Showing 59 changed files with 10,392 additions and 6,674 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 6 additions & 1 deletion docs/components/content/Example/ExampleAlert.vue
@@ -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
@@ -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
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
@@ -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
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
39 changes: 14 additions & 25 deletions package.json
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 @@ -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",
Expand All @@ -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",
Expand All @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion playground/basic/nuxt.config.ts
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
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
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
Expand Up @@ -27,7 +27,7 @@ export default defineNuxtConfig({
}
],
modules: [
// @ts-ignore
// @ts-expect-error
contentModule,
'@nuxthq/studio'
],
Expand Down

0 comments on commit 6cb6017

Please sign in to comment.