From 24109671550e165bd6392be1c5419adc1e56e5a2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 10 Jan 2024 03:09:36 +0000 Subject: [PATCH 1/2] chore: release eslint-plugin-prettier --- .changeset/rich-pigs-allow.md | 5 ----- CHANGELOG.md | 16 +++++++++++----- package.json | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 .changeset/rich-pigs-allow.md diff --git a/.changeset/rich-pigs-allow.md b/.changeset/rich-pigs-allow.md deleted file mode 100644 index ebdda894..00000000 --- a/.changeset/rich-pigs-allow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-prettier": patch ---- - -chore: add `package.json` into `exports` map diff --git a/CHANGELOG.md b/CHANGELOG.md index 391c408f..d599f2f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 5.1.3 + +### Patch Changes + +- [#629](https://github.com/prettier/eslint-plugin-prettier/pull/629) [`985b33c`](https://github.com/prettier/eslint-plugin-prettier/commit/985b33c56f146b2e65ae391a3af57f63b07ecbdf) Thanks [@JounQin](https://github.com/JounQin)! - chore: add `package.json` into `exports` map + ## 5.1.2 ### Patch Changes @@ -15,12 +21,12 @@ ```json5 [ { - files: ['**/*.md'], - rules: { 'prettier/prettier': ['error', { parser: 'markdown' }] }, + files: ["**/*.md"], + rules: { "prettier/prettier": ["error", { parser: "markdown" }] }, }, { - files: ['**/*.mdx'], - rules: { 'prettier/prettier': ['error', { parser: 'mdx' }] }, + files: ["**/*.mdx"], + rules: { "prettier/prettier": ["error", { parser: "mdx" }] }, }, ] ``` @@ -41,7 +47,7 @@ ```js // eslint.config.js - const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended'); + const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); module.exports = [ // Any other config imports go at the top diff --git a/package.json b/package.json index d6c70669..58847a21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-prettier", - "version": "5.1.2", + "version": "5.1.3", "description": "Runs prettier as an eslint rule", "repository": "git+https://github.com/prettier/eslint-plugin-prettier.git", "homepage": "https://github.com/prettier/eslint-plugin-prettier#readme", From 824d0a93f417db842202febfbf1c7a4bb9b41183 Mon Sep 17 00:00:00 2001 From: JounQin Date: Wed, 10 Jan 2024 11:27:59 +0800 Subject: [PATCH 2/2] chore: lock prettier version for changesets --- CHANGELOG.md | 10 +++++----- package.json | 3 +++ pnpm-lock.yaml | 13 +++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d599f2f2..a9da46b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,12 +21,12 @@ ```json5 [ { - files: ["**/*.md"], - rules: { "prettier/prettier": ["error", { parser: "markdown" }] }, + files: ['**/*.md'], + rules: { 'prettier/prettier': ['error', { parser: 'markdown' }] }, }, { - files: ["**/*.mdx"], - rules: { "prettier/prettier": ["error", { parser: "mdx" }] }, + files: ['**/*.mdx'], + rules: { 'prettier/prettier': ['error', { parser: 'mdx' }] }, }, ] ``` @@ -47,7 +47,7 @@ ```js // eslint.config.js - const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); + const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended'); module.exports = [ // Any other config imports go at the top diff --git a/package.json b/package.json index 58847a21..e1c845b5 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,9 @@ "pnpm": { "patchedDependencies": { "@types/eslint@8.56.0": "patches/@types__eslint@8.56.0.patch" + }, + "overrides": { + "prettier": "^3.1.1" } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1eab45de..ddfa8cd7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: false excludeLinksFromLockfile: false +overrides: + prettier: ^3.1.1 + patchedDependencies: '@types/eslint@8.56.0': hash: r7mjcwcmok5lsw2nb63qlph4sa @@ -303,7 +306,7 @@ packages: fs-extra: 7.0.1 lodash.startcase: 4.4.0 outdent: 0.5.0 - prettier: 2.8.8 + prettier: 3.1.1 resolve-from: 5.0.0 semver: 7.5.4 dev: true @@ -489,7 +492,7 @@ packages: '@changesets/types': 6.0.0 fs-extra: 7.0.1 human-id: 1.0.2 - prettier: 2.8.8 + prettier: 3.1.1 dev: true /@commitlint/cli@18.4.3: @@ -4928,12 +4931,6 @@ packages: svelte: 4.2.8 dev: true - /prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} - hasBin: true - dev: true - /prettier@3.1.1: resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==} engines: {node: '>=14'}