Skip to content

Latest commit

 

History

History
393 lines (284 loc) · 41.3 KB

CHANGELOG.md

File metadata and controls

393 lines (284 loc) · 41.3 KB

Changelog

5.2.1

Patch Changes

5.2.0

Minor Changes

5.1.3

Patch Changes

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' }] },
      },
    ]

5.1.1

Patch Changes

5.1.0

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.

5.0.1

Patch Changes

5.0.0

Major Changes

Minor Changes

Patch Changes

4.2.2

Patch Changes

4.2.1

Patch Changes

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

4.2.0

Minor Changes

v4.1.0 (2022-06-27)

  • feat: skip processing code blocks on specific languages like stylelint-prettier (#415) (52eec48)
  • build(deps): Bump minimist from 1.2.5 to 1.2.6 (#464) (42bfe88)
  • build(deps-dev): Bump graphql from 15.5.1 to 15.7.2 (#442) (0158640)
  • build(deps-dev): Bump @graphql-eslint/eslint-plugin from 2.3.0 to 2.4.0 (#444) (4bcaca2)
  • chore(CI): add tests for ESLint 8 (#428) (f3713be)
  • README.md: HTTP => HTTPS (#443) (44e1478)

v4.0.0 (2021-08-30)

This breaking change drops support for old versions of ESLint, Prettier and Node. You must use at least ESLint v7.28.0, Prettier v2.0.0 and Node v12.0.0. Aside from that, usage of this plugin remains identical.

  • v4 - Drop support for eslint 5/6, prettier 1, node 6/8 (#429) (acb56f3)

v3.4.1 (2021-08-20)

  • build(deps): Bump glob-parent from 5.0.0 to 5.1.2 (#420) (b6d075c)
  • build(deps): Bump path-parse from 1.0.6 to 1.0.7 (#425) (24f957e)
  • feat: support @graphql-eslint/eslint-plugin out of box (#413) (ec6fbb1)
  • chore: add tests for Node 16 (#410) (76bd45e)

v3.4.0 (2021-04-15)

v3.3.1 (2021-01-04)

  • fix: add eslint-config-prettier as an optional peer dependency (#374) (d59df27)
  • build(deps-dev): bump eslint from 7.16.0 to 7.17.0 (b87985d)
  • build(deps-dev): bump eslint from 7.15.0 to 7.16.0 (11e427e)

v3.3.0 (2020-12-13)

  • Minor: Perf improvement: Do not clear the config cache on each run (#368) (1b90ea7)
  • Add peerDependenciesMeta block (#367) (86608d5)
  • build(deps-dev): bump eslint from 7.14.0 to 7.15.0 (885f484)
  • build(deps-dev): bump eslint from 7.3.1 to 7.14.0 (cebc80b)

v3.2.0 (2020-12-03)

  • Skip CI for eslint 6 + node 8 (#364) (f8f08e4)
  • Turn off problematic rules in recommended config (prepare for next eslint-config-prettier version) (#360) (a1e5591)
  • Create dependabot.yml (f58b6c7)
  • docs(README): fix prettier getFileInfo link (#335) (5a690f1)
  • build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.2 to 2.3.0 (8614c45)
  • build(deps-dev): bump eslint from 7.3.0 to 7.3.1 (12d9ed8)
  • build(deps-dev): bump eslint from 7.2.0 to 7.3.0 (5a6f42e)
  • chore: update CI badge in readme (5012b66)
  • Use Github Actions for CI (#305) (41eb64f)

v3.1.4 (2020-06-14)

  • Avoid clearing Prettier cache when not using prettierrc (#303) (3c8e2d9)
  • build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.1 to 2.2.2 (93f7c8b)
  • build(deps-dev): bump eslint from 7.1.0 to 7.2.0 (650ac7a)
  • build(deps-dev): bump eslint-plugin-self from 1.2.0 to 1.2.1 (6449ec1)
  • build(deps-dev): bump eslint from 7.0.0 to 7.1.0 (fd30022)
  • Chore: Add CI tests for ESLint 7 (#291) (cc2979b)
  • build(deps-dev): bump eslint-config-prettier from 6.10.1 to 6.11.0 (35a7ee6)

v3.1.3 (2020-04-13)

  • Fix: Set meta.type to "layout" (#283) (97152e2)
  • build(deps-dev): bump eslint-config-prettier from 6.10.0 to 6.10.1 (185b106)
  • build(deps): [security] bump acorn from 6.1.0 to 6.4.1 (bba5881)
  • build(deps-dev): bump eslint-config-prettier from 6.9.0 to 6.10.0 (9a47a6f)
  • build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.0 to 2.2.1 (aad671d)
  • build(deps-dev): bump eslint-plugin-eslint-plugin from 2.1.0 to 2.2.0 (e2458c2)
  • build(deps-dev): bump eslint-config-prettier from 6.8.0 to 6.9.0 (05ef06f)
  • build(deps-dev): bump eslint-config-prettier from 6.7.0 to 6.8.0 (ab80b3c)
  • build(deps-dev): bump eslint from 6.7.2 to 6.8.0 (dea1b30)

v3.1.2 (2019-12-15)

  • Resolve config when getting list of inferred parsers (1ad45be)
  • Fix tests now they to stop them inheriting from base prettierrc file (14840fa)
  • Move prettier config into dedicated file, so vscode plugins pick it up (c49334a)
  • build(deps-dev): bump eslint from 6.7.1 to 6.7.2 (15e6cf9)
  • build(deps-dev): bump eslint from 6.6.0 to 6.7.1 (e8ad019)
  • build(deps-dev): bump eslint-config-prettier from 6.6.0 to 6.7.0 (44f4bfe)
  • build(deps-dev): bump eslint-config-prettier from 6.5.0 to 6.6.0 (46580c5)
  • build(deps-dev): bump prettier from 1.18.2 to 1.19.1 (10b4676)
  • build(deps-dev): bump eslint from 6.5.1 to 6.6.0 (53eaeae)
  • build(deps-dev): bump eslint-config-prettier from 6.4.0 to 6.5.0 (ad3321c)
  • build(deps-dev): bump mocha from 6.2.1 to 6.2.2 (b7280b6)
  • build(deps-dev): bump eslint-config-prettier from 6.3.0 to 6.4.0 (4c1d69a)
  • build(deps-dev): bump eslint from 6.5.0 to 6.5.1 (c109a7a)
  • build(deps-dev): bump mocha from 6.2.0 to 6.2.1 (3134bea)
  • build(deps-dev): bump eslint from 6.4.0 to 6.5.0 (7c290d7)

v3.1.1 (2019-09-18)

  • build(deps-dev): bump eslint from 6.3.0 to 6.4.0 (8a793eb)
  • build(deps-dev): bump eslint-config-prettier from 6.2.0 to 6.3.0 (88c3f6c)
  • build(deps-dev): bump eslint-config-prettier from 6.0.0 to 6.2.0 (5f9fbc1)
  • build(deps-dev): bump eslint from 6.2.2 to 6.3.0 (746b66d)
  • build(deps-dev): bump eslint from 6.1.0 to 6.2.2 (97eedb4)
  • build(deps-dev): bump eslint from 6.0.1 to 6.1.0 (afef9d1)
  • build(deps-dev): bump mocha from 6.1.4 to 6.2.0 (0360a84)
  • build(deps): [security] bump lodash from 4.17.11 to 4.17.14 (9eceb68)
  • Fix: When forcing the JS parser, use the modern name (#212) (1385310)
  • Add eslint 6 to test matrix (#210) (bca77e6)
  • build(deps-dev): bump eslint-config-prettier from 5.0.0 to 6.0.0 (4c069bd)
  • build(deps-dev): bump eslint-config-prettier from 4.3.0 to 5.0.0 (60bb22f)
  • build(deps-dev): bump prettier from 1.18.0 to 1.18.2 (a183560)
  • build(deps-dev): bump prettier from 1.17.1 to 1.18.0 (0cad479)
  • build(deps-dev): bump eslint-config-prettier from 4.2.0 to 4.3.0 (6f3c76f)
  • build(deps-dev): bump prettier from 1.17.0 to 1.17.1 (03aecfd)

v3.1.0 (2019-05-11)

  • New: Allow options to be passed to prettier.getFileInfo (#187) (21fa69a)
  • build(deps-dev): bump eslint-plugin-eslint-plugin from 2.0.1 to 2.1.0 (bb597e1)
  • build(deps-dev): bump eslint-config-prettier from 4.1.0 to 4.2.0 (0bb7c1d)
  • build(deps-dev): bump vue-eslint-parser from 6.0.3 to 6.0.4 (2f77df4)
  • build(deps-dev): bump mocha from 6.1.3 to 6.1.4 (222b87a)
  • build(deps-dev): bump prettier from 1.16.4 to 1.17.0 (58d8ff8)
  • build(deps-dev): bump mocha from 6.1.2 to 6.1.3 (e94e56c)
  • build(deps-dev): bump mocha from 6.1.1 to 6.1.2 (c02244b)
  • build(deps-dev): bump mocha from 6.0.2 to 6.1.1 (a9a2e4e)
  • build(deps-dev): bump eslint from 5.15.3 to 5.16.0 (073c14c)
  • build(deps-dev): bump eslint from 5.15.2 to 5.15.3 (bda931f)
  • build(deps-dev): bump eslint from 5.15.1 to 5.15.2 (19f53d6)
  • build(deps-dev): bump eslint from 5.15.0 to 5.15.1 (34b39de)
  • build(deps-dev): bump eslint from 5.14.1 to 5.15.0 (13bcc66)
  • build(deps-dev): bump eslint-plugin-self from 1.1.0 to 1.2.0 (5b4adb8)
  • build(deps-dev): bump vue-eslint-parser from 6.0.2 to 6.0.3 (e676cd1)
  • build(deps-dev): bump eslint-config-prettier from 4.0.0 to 4.1.0 (b8a9215)
  • build(deps-dev): bump mocha from 6.0.1 to 6.0.2 (cde36e4)
  • build(deps-dev): bump mocha from 6.0.0 to 6.0.1 (eb39699)
  • build(deps-dev): bump mocha from 5.2.0 to 6.0.0 (5d75421)
  • build(deps-dev): bump eslint from 5.14.0 to 5.14.1 (829156e)
  • build(deps-dev): bump eslint from 5.13.0 to 5.14.0 (b76d0b4)
  • build(deps-dev): bump vue-eslint-parser from 6.0.0 to 6.0.2 (15439e8)
  • build(deps-dev): bump vue-eslint-parser from 5.0.0 to 6.0.0 (0ea70e5)
  • build(deps-dev): bump eslint from 5.12.1 to 5.13.0 (5f18729)
  • build(deps-dev): bump prettier from 1.16.3 to 1.16.4 (ef637fe)
  • build(deps-dev): bump prettier from 1.16.1 to 1.16.3 (58ab20c)
  • build(deps-dev): bump eslint-config-prettier from 3.6.0 to 4.0.0 (14393bd)
  • build(deps-dev): bump prettier from 1.16.0 to 1.16.1 (00198b9)
  • build(deps-dev): bump prettier from 1.15.3 to 1.16.0 (7890a87)
  • build(deps-dev): bump eslint from 5.12.0 to 5.12.1 (92a8984)
  • build(deps-dev): bump eslint-config-prettier from 3.5.0 to 3.6.0 (5292d12)
  • build(deps-dev): bump eslint-config-prettier from 3.4.0 to 3.5.0 (44a2558)
  • build(deps-dev): bump eslint-config-prettier from 3.3.0 to 3.4.0 (425cfce)
  • build(deps-dev): bump eslint from 5.11.1 to 5.12.0 (3e9aa39)
  • build(deps-dev): bump eslint-plugin-node from 8.0.0 to 8.0.1 (e913afd)
  • build(deps-dev): bump vue-eslint-parser from 4.0.3 to 5.0.0 (ecfd5ba)

v3.0.1 (2018-12-28)

  • Catch and format SyntaxErrors as eslint violations (#141) (4a0e57d)
  • build(deps-dev): bump eslint from 5.11.0 to 5.11.1 (d34daed)
  • build(deps-dev): bump eslint from 5.10.0 to 5.11.0 (7f4f45d)
  • build(deps-dev): bump eslint-plugin-eslint-plugin from 2.0.0 to 2.0.1 (5be3bcf)
  • build(deps-dev): bump eslint from 5.9.0 to 5.10.0 (11e7c44)
  • build(deps-dev): bump eslint-plugin-eslint-plugin from 1.4.1 to 2.0.0 (9e5bf14)
  • build(deps-dev): bump vue-eslint-parser from 4.0.2 to 4.0.3 (234583a)
  • build(deps-dev): bump vue-eslint-parser from 3.3.0 to 4.0.2 (8675d57)
  • Upgrade: Bump vue-eslint-parser from 3.2.2 to 3.3.0 (2379e93)
  • Upgrade: Bump eslint-config-prettier from 3.1.0 to 3.3.0 (3ea0021)
  • Upgrade: Bump eslint from 5.8.0 to 5.9.0 (c774fb8)
  • build(deps-dev): bump eslint-plugin-node from 7.0.1 to 8.0.0 (#121) (2a4fba0)
  • build(deps-dev): bump eslint-plugin-eslint-plugin from 1.4.0 to 1.4.1 (#120) (29caa29)
  • build(deps-dev): bump eslint from 5.6.0 to 5.8.0 (#119) (2836350)

v3.0.0 (2018-10-01)

  • Chore: Add eslint peer-dependency (d55d79c)
  • Breaking: Extract showInvisibles and generateDifferences (bf7c40c)
  • Breaking: Defining prettier options must use an object (478c7e5)
  • Breaking: Drop support for ESLint v3 and v4 (2326231)
  • Chore: Update dependencies (1ec94c8)
  • Chore: remove two unused dependencies (bfe459c)
  • Chore: Rename test files to keep them sequential (d38ea52)
  • Breaking: Remove pragma support (3af422c)
  • Breaking: Update minimum required pretter version to 1.13.0 (29c0506)
  • Breaking: Drop support for node v4, v7 and v9 (be460bd)
  • Chore: Add vscode config to autoformat on save (9fac6b4)
  • Chore: Improve travis matrix (46d2444)
  • Chore: Add format script to run prettier (d46aa6d)

v2.7.0 (2018-09-26)

  • Update: Support prettierignore and custom processors (#111) (38537ba)
  • Build: switch to release script package (047dc8f)

v2.6.2 (2018-07-06)

  • Fix: Add representation for \r to showInvisibles (#100) (731bbb5)
  • Docs: Add clarification about Flow/React support to readme (#96) (977aa77)

v2.6.1 (2018-06-23)

v2.6.0 (2018-02-02)

  • Update: Add option to skip loading prettierrc (#83) (9e0fb48)
  • Build: add Node 8 and 9 to Travis (e5b5fa7)
  • Chore: add test for vue parsing (1ab43fd)

v2.5.0 (2018-01-16)

  • Fix: pass filepath to prettier (#76) (0b6ab55)
  • Update: Add URL to rule documentation to the metadata (#75) (804ead7)

v2.4.0 (2017-12-17)

  • New: Add 'recommended' configuration (#73) (e529b60)
  • Docs: Create ISSUE_TEMPLATE.md (4335b08)

v2.3.1 (2017-09-18)

  • Fix: Guard against older prettier installation (#56) (8a115f9)

v2.3.0 (2017-09-18)

  • Update: Support .prettierrc config files (fixes #46) (#55) (bc89153)
  • Docs: .eslintrc.json > .eslintrc (#52) (95f0808)
  • Upgrade: jest-docblock to ^21.0.0 (#50) (c777111)
  • Chore: upgrade prettier to ^1.6.1 (#49) (56deffa)
  • Chore: use eslint-plugin-self for linting (#47) (5ea0526)

v2.2.0 (2017-08-16)

v2.1.2 (2017-06-14)

v2.1.1 (2017-05-19)

v2.1.0 (2017-05-16)

  • Merge with eslint-plugin-prettify (#21) (6de494f)
  • Docs: update repo links to new URL (#18) (6b69492)
  • Chore: Upgrade development dependencies (#16) (12984ea)
  • Docs: fix outdated info about prettier's semicolon support (da6aad1)
  • Docs: update prettier options in example (#14) (0ae173f)
  • Docs: Change the order of dependencies install (#13) (cbf803c)
  • Docs: Add CONTRIBUTING.md (fixes #9) (40fe55b)

v2.0.1 (2017-02-26)

  • Docs: add travis badge to README.md (1daa495)
  • Upgrade: prettier to 0.18.0 (1700e41)
  • Chore: use eslint-config-prettier (c979b84)
  • Fix: avoid relying on an internal eslint function (5296930)
  • Docs: mention eslint-config-prettier in README.md (3fd855d)
  • Chore: pin the version of prettier used to lint this module (refs #1) (db85633)

v2.0.0 (2017-01-28)

  • Docs: create changelog (d388095)
  • Docs: add 2.0.0 migration guide (db508d7)
  • Breaking: Make prettier a peerDependency (#1) (d8a8992)
  • Docs: add repo url to package.json (2474bc9)
  • Docs: suggest prettier-eslint if eslint rules disagree with prettier (3414437)