github prettier/eslint-plugin-prettier v5.1.0
v.5.1.0

latest releases: v5.2.1, v5.1.3, v5.1.2...
10 months ago

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

Don't miss a new eslint-plugin-prettier release

NewReleases is sending notifications on new releases.