Skip to content

Releases: prettier/eslint-plugin-prettier

v5.2.1

17 Jul 11:31
51324d9
Compare
Choose a tag to compare

Patch Changes

v5.1.3

10 Jan 03:34
248cd17
Compare
Choose a tag to compare

Patch Changes

Full Changelog: v5.1.2...v5.1.3

v5.1.2

24 Dec 05:28
v5.1.2
d102278
Compare
Choose a tag to compare

5.1.2

Patch Changes

  • #623 8210e44 Thanks @BPScott! - Add exports mapping to package.json, to allow import eslintPluginRecommended from 'eslint-plugin-prettier/recommended' to work as expected.

    Strictly speaking this is a breaking change as it removes the ability for people to import from "eslint-plugin-prettier/eslint-plugin-prettier.js" and "eslint-plugin-prettier/recommended.js" but the former was never recommended in the first place and the latter has only been available for a few days.

  • #621 2b09e7f Thanks @JounQin! - feat: support parsing markdown via eslint-mdx natively

    What means the following is unnecessary anymore when using with eslint-mdx/eslint-plugin-mdx!

    [
      {
        files: ["**/*.md"],
        rules: { "prettier/prettier": ["error", { parser: "markdown" }] },
      },
      {
        files: ["**/*.mdx"],
        rules: { "prettier/prettier": ["error", { parser: "mdx" }] },
      },
    ]

Full Changelog: v5.1.1...v5.1.2

v5.1.1

21 Dec 16:42
v5.1.1
5a51733
Compare
Choose a tag to compare

5.1.1

Patch Changes

v.5.1.0

19 Dec 22:47
183f45c
Compare
Choose a tag to compare

Minor Changes

  • #616 3856413 Thanks @BPScott! - Add recommended config for the flat config format.

    If you are using flat config, import the recommended config from eslint-plugin-prettier/recommended. Like the legacy format recommended config, this automatically includes the contents of eslint-config-prettier.

    // eslint.config.js
    const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
    
    module.exports = [
      // Any other config imports go at the top
      eslintPluginPrettierRecommended,
    ];

Patch Changes

  • #614 5270877 Thanks @BPScott! - Add meta block to plugin. This improves debugging and cachebusting when using the new flat config

  • #603 a63a570 Thanks @filiptammergard! - fix: specify eslint-config-prettier as peer dependency

    It's already added to peerDependenciesMeta as optional, which means it should also be specified in peerDependencies.

New Contributors

Full Changelog: v5.0.1...v5.1.0

v5.0.1

11 Oct 02:36
aa81435
Compare
Choose a tag to compare

What's Changed

  • fix: parserPath type might be undefined on Eslint Flat Config by @krist7599555 in #588

New Contributors

Full Changelog: v5.0.0...v5.0.1

v5.0.0

11 Jul 07:51
v5.0.0
b2b93c3
Compare
Choose a tag to compare

What's Changed

  • feat!: bump eslint, node and prettier versions, add types support by @JounQin in #508
  • fix: add missing dependency synckit by @fisker in #548
  • fix: compatibility with prettier@3 without plugins by @auvred in #564

New Contributors

Full Changelog: v4.2.1...v5.0.0

v5.0.0-alpha.0

03 Sep 01:24
ba490d7
Compare
Choose a tag to compare
v5.0.0-alpha.0 Pre-release
Pre-release
  • drop Node v12 - #488
  • drop ESLint v7 - #488
  • improve jsdoc inside, generate .d.ts typings - #509
  • docs: improve why usePrettierrc option is needed
  • upgrade to prettier v3

v4.2.1

30 Jun 03:34
v4.2.1
19efb8a
Compare
Choose a tag to compare

4.2.1

Patch Changes

  • #485 5736ed5 Thanks @JounQin! - chore: reuse prettierRcOptions instead of resolveConfig again

v4.2.0

30 Jun 02:15
v4.2.0
1430fd1
Compare
Choose a tag to compare

4.2.0

Minor Changes