diff --git a/eslint.config.mjs b/eslint.config.mjs index 27b2e71..9dbc4d8 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,8 +1,9 @@ // @ts-check import { createConfigForNuxt } from '@nuxt/eslint-config/flat' +import eslintConfigPrettier from "eslint-config-prettier"; // Run `npx @eslint/config-inspector` to inspect the resolved config interactively -export default createConfigForNuxt({ +const nuxtConfig = createConfigForNuxt({ features: { // Rules for module authors tooling: true, @@ -15,6 +16,5 @@ export default createConfigForNuxt({ ], }, }) - .append( - // your custom flat config here... - ) + +export default [nuxtConfig.toConfigs(), eslintConfigPrettier] diff --git a/package.json b/package.json index ed27558..3850c79 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,10 @@ }, "dependencies": { "@nuxt/kit": "^3.11.2", + "eslint-config-prettier": "^9.1.0", "lodash-es": "^4.17.21", + "prettier": "^3.3.1", + "prettier-plugin-tailwindcss": "^0.6.2", "zod": "^3.23.8" }, "devDependencies": { @@ -52,12 +55,9 @@ "@nuxt/schema": "^3.11.2", "@nuxt/test-utils": "^3.12.1", "@types/node": "^20.12.11", - "autoprefixer": "^10.4.19", "changelogen": "^0.5.5", "eslint": "^9.2.0", "nuxt": "^3.11.2", - "postcss": "^8.4.38", - "tailwindcss": "^3.4.4", "typescript": "latest", "vitest": "^1.6.0", "vue-tsc": "^2.0.16" diff --git a/playground/app.vue b/playground/app.vue index 54845c6..b47819f 100644 --- a/playground/app.vue +++ b/playground/app.vue @@ -1,18 +1,15 @@