Skip to content

Commit

Permalink
feat: add meta block to config
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott committed Dec 3, 2023
1 parent 79765cc commit d151a6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-tools-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-prettier': patch
---

Add meta block to plugin. This improves debugging and cachebusting when using the new flat config
2 changes: 2 additions & 0 deletions eslint-plugin-prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const {
showInvisibles,
generateDifferences,
} = require('prettier-linter-helpers');
const { name, version } = require('./package.json');

// ------------------------------------------------------------------------------
// Constants
Expand Down Expand Up @@ -80,6 +81,7 @@ function reportDifference(context, difference) {
* @type {Plugin}
*/
const eslintPluginPrettier = {
meta: { name, version },
configs: {
recommended: {
extends: ['prettier'],
Expand Down

0 comments on commit d151a6a

Please sign in to comment.