From 05dd5fcf9e32d0a11a9bb567e9bb4d2e2e04d97a Mon Sep 17 00:00:00 2001 From: Christine Tham Date: Sun, 19 Nov 2023 14:04:00 +1100 Subject: [PATCH] Fixed prettier config --- .prettierrc | 3 +-- package.json | 1 - pnpm-lock.yaml | 11 ----------- prettier.config.cjs | 15 --------------- src/layouts/Layout.astro | 2 +- 5 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 prettier.config.cjs diff --git a/.prettierrc b/.prettierrc index 64bb3ee..3a1f6fb 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,6 +4,5 @@ "trailingComma": "none", "semi": false, "printWidth": 100, - "plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"], - "pluginSearchDirs": false + "plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"] } \ No newline at end of file diff --git a/package.json b/package.json index 0206010..af4fa4a 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "eslint-plugin-markdown": "^3.0.1", "eslint-plugin-mdx": "^2.2.0", "prettier": "^3.1.0", - "prettier-config-standard": "^7.0.0", "prettier-plugin-astro": "^0.12.2", "prettier-plugin-tailwindcss": "^0.5.7", "typescript": "^5.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8aaf096..0934186 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,9 +51,6 @@ devDependencies: prettier: specifier: ^3.1.0 version: 3.1.0 - prettier-config-standard: - specifier: ^7.0.0 - version: 7.0.0(prettier@3.1.0) prettier-plugin-astro: specifier: ^0.12.2 version: 0.12.2 @@ -5120,14 +5117,6 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier-config-standard@7.0.0(prettier@3.1.0): - resolution: {integrity: sha512-NgZy4TYupJR6aMMuV/Aqs0ONnVhlFT8PXVkYRskxREq8EUhJHOddVfBxPV6fWpgcASpJSgvvhVLk0CBO5M3Hvw==} - peerDependencies: - prettier: ^2.6.0 || ^3.0.0 - dependencies: - prettier: 3.1.0 - dev: true - /prettier-plugin-astro@0.12.2: resolution: {integrity: sha512-1OXSEht27zrnX7rCa0bEpLdspeumFW4hnj4+JzPuG5bRlSOAhD0rbXBNZfRD9q0Qbr00EcCcnjd6k6M8q+GfTA==} engines: {node: ^14.15.0 || >=16.0.0} diff --git a/prettier.config.cjs b/prettier.config.cjs deleted file mode 100644 index a4e2b2b..0000000 --- a/prettier.config.cjs +++ /dev/null @@ -1,15 +0,0 @@ -/** @type {import("prettier").Config} */ -module.exports = { - // i am just using the standard config, change if you need something else - ...require('prettier-config-standard'), - pluginSearchDirs: [__dirname], - plugins: [require.resolve('prettier-plugin-astro'), require.resolve('prettier-plugin-tailwindcss')], - overrides: [ - { - files: '*.astro', - options: { - parser: 'astro' - } - } - ] -} diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index f22a593..c2da892 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,7 +6,7 @@ export interface Props { const { title } = Astro.props --- - +