Skip to content

Commit 5270877

Browse files
authoredDec 3, 2023
feat: add meta block to config (#614)
1 parent 79765cc commit 5270877

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎.changeset/five-tools-matter.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-prettier': patch
3+
---
4+
5+
Add meta block to plugin. This improves debugging and cachebusting when using the new flat config

‎eslint-plugin-prettier.js

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const {
2323
showInvisibles,
2424
generateDifferences,
2525
} = require('prettier-linter-helpers');
26+
const { name, version } = require('./package.json');
2627

2728
// ------------------------------------------------------------------------------
2829
// Constants
@@ -80,6 +81,7 @@ function reportDifference(context, difference) {
8081
* @type {Plugin}
8182
*/
8283
const eslintPluginPrettier = {
84+
meta: { name, version },
8385
configs: {
8486
recommended: {
8587
extends: ['prettier'],

0 commit comments

Comments
 (0)
Please sign in to comment.