From 3e58e6b2bbd9651f3fa14b178c7b5e7ac1c089b3 Mon Sep 17 00:00:00 2001 From: David Nahodyl Date: Fri, 7 Jun 2024 15:31:45 -0400 Subject: [PATCH] prettier config --- eslint.config.mjs | 8 +- package.json | 6 +- playground/app.vue | 11 +- playground/components/ButtonPrimary.vue | 4 +- playground/components/LabeledInput.vue | 23 +- playground/components/nav/NavBar.vue | 23 +- playground/layouts/default.vue | 8 +- playground/nuxt.config.ts | 8 +- playground/package.json | 8 + playground/pages/index.vue | 7 +- playground/pages/todo-precog.vue | 34 +- playground/pages/todo.vue | 32 +- playground/pnpm-lock.yaml | 9267 +++++++++++++++++ .../server/api/todo-precog/index.post.ts | 34 +- playground/server/api/todo/index.post.ts | 18 +- playground/tailwind.config.js | 16 +- pnpm-lock.yaml | 279 +- 17 files changed, 9448 insertions(+), 338 deletions(-) create mode 100644 playground/pnpm-lock.yaml 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 @@