Skip to content

Commit

Permalink
Fix WP prettier issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Oct 31, 2021
1 parent bb1b121 commit 9a762af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"files": [
"Gruntfile.js"
],
"extends": "plugin:@wordpress/eslint-plugin/recommended"
"extends": "plugin:@wordpress/eslint-plugin/recommended-with-formatting"
}
]
}
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-env node */

module.exports = function ( grunt ) {
module.exports = function( grunt ) {
// Load all Grunt plugins.
require( 'load-grunt-tasks' )( grunt );

// TODO: Move to own Grunt plugin.
grunt.registerTask( 'readmeMdToTxt', 'Log some stuff.', function () {
grunt.registerTask( 'readmeMdToTxt', 'Log some stuff.', function() {
const formatReadme = ( content ) => {
const replaceRules = {
'#': '=== $1 ===',
Expand All @@ -14,7 +14,7 @@ module.exports = function ( grunt ) {
};

// Replace Markdown headings with WP.org style headings
Object.keys( replaceRules ).forEach( function ( pattern ) {
Object.keys( replaceRules ).forEach( function( pattern ) {
const patternRegExp = [ '^', pattern, '\\s(.+)$' ].join( '' );

content = content.replace(
Expand Down

0 comments on commit 9a762af

Please sign in to comment.