Skip to content

Commit

Permalink
Bug Fix: Use eslint-config-prettier in the recommended ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Feb 4, 2020
1 parent 9e34a3f commit 0a96d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/configs/recommended.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
extends: [
require.resolve( './recommended-with-formatting.js' ),
'prettier/react',
'eslint-config-prettier',
],
};

3 comments on commit 0a96d2c

@epiqueras
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this done? We need prettier/react here.

@gziolo
Copy link
Member Author

@gziolo gziolo commented on 0a96d2c Feb 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still remains the same in master. This change is added only to avoid breaking changes for those who use @wordpress/scripts v6.x and @wordpress/eslint-plugin v4.x.

@epiqueras
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it!

Please sign in to comment.