chore: add plugin name to flat recommended config (#703) · prettier/eslint-plugin-prettier@9c6141f (original) (raw)

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1 +---
2 +"eslint-plugin-prettier": patch
3 +---
4 +
5 +Add name field to recommended flat config
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
1 1 const eslintConfigPrettier = require('eslint-config-prettier');
2 2 const eslintPluginPrettier = require('./eslint-plugin-prettier');
3 3
4 -// Merge the contents of eslint-config-prettier into every
4 +// Merge the contents of eslint-config-prettier into config
5 5 module.exports = {
6 6 ...eslintConfigPrettier,
7 +name: 'eslint-plugin-prettier/recommended',
7 8 plugins: {
8 9 ...eslintConfigPrettier.plugins,
9 10 prettier: eslintPluginPrettier,