diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index f79529d..0000000 --- a/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -# Common -node_modules -dist -.nuxt -coverage diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index e14cbd6..0000000 --- a/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": [ - "@nuxtjs/eslint-config-typescript" - ] -} diff --git a/docs/app.config.ts b/docs/app.config.ts index 7851dc4..3926848 100644 --- a/docs/app.config.ts +++ b/docs/app.config.ts @@ -5,10 +5,10 @@ export default defineAppConfig({ image: '/social-card.png', socials: { twitter: 'nuxt_js', - github: 'nuxt-modules/google-fonts' + github: 'nuxt-modules/google-fonts', }, header: { - logo: true - } - } + logo: true, + }, + }, }) diff --git a/docs/components/Logo.vue b/docs/components/Logo.vue index 168e086..47d63a9 100644 --- a/docs/components/Logo.vue +++ b/docs/components/Logo.vue @@ -1,5 +1,11 @@ diff --git a/docs/nuxt.config.js b/docs/nuxt.config.ts similarity index 67% rename from docs/nuxt.config.js rename to docs/nuxt.config.ts index 999ead8..848bf12 100644 --- a/docs/nuxt.config.js +++ b/docs/nuxt.config.ts @@ -1,4 +1,4 @@ export default defineNuxtConfig({ extends: '@nuxt-themes/docus', - modules: ['@nuxtjs/plausible'] + modules: ['@nuxtjs/plausible'], }) diff --git a/docs/tokens.config.ts b/docs/tokens.config.ts index 29bda5e..ec8b414 100644 --- a/docs/tokens.config.ts +++ b/docs/tokens.config.ts @@ -12,7 +12,7 @@ export default defineTheme({ 600: '#1b73e8', 700: '#1f64d6', 800: '#1f52ae', - 900: '#1f4689' - } - } + 900: '#1f4689', + }, + }, }) diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..0903c82 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,20 @@ +// @ts-check +import { createConfigForNuxt } from '@nuxt/eslint-config/flat' + +export default createConfigForNuxt({ + features: { + tooling: true, + stylistic: true, + }, + dirs: { + src: [ + './playground', + './docs', + ], + }, +}).append({ + files: ['docs/**'], + rules: { + 'vue/multi-word-component-names': 'off', + }, +}) diff --git a/package.json b/package.json index 2c94d73..28ad0a7 100755 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dev": "nuxi dev playground", "dev:build": "nuxi build playground", "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground", - "lint": "eslint --ext .js,.ts,.vue", + "lint": "eslint", "prepack": "pnpm build", "release": "pnpm test && pnpm prepack && pnpm changelogen --release --push && pnpm publish", "test": "pnpm lint && vitest run --coverage" @@ -38,13 +38,13 @@ "devDependencies": { "@nuxt/module-builder": "latest", "@nuxt/test-utils": "latest", - "@nuxtjs/eslint-config-typescript": "latest", "@vitest/coverage-v8": "latest", "changelogen": "latest", "del": "latest", - "eslint": "latest", + "eslint": "9.1.1", "nuxt": "latest", - "vitest": "latest" + "vitest": "latest", + "@nuxt/eslint-config": "0.3.9" }, "publishConfig": { "access": "public" diff --git a/playground/app.vue b/playground/app.vue index d18ca21..e797933 100644 --- a/playground/app.vue +++ b/playground/app.vue @@ -1,4 +1,3 @@ -