Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
psealock committed Feb 28, 2021
1 parent a30add9 commit 1682331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/hook-reference/data.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"description": "List of homepage stats enabled by default",
"sourceFile": "https://github.com/woocommerce/woocommerce-admin/blob/c46435daf50b86b48d806cdadc9139dc05e3b64a/client/homescreen/stats-overview/defaults.js#L5-L16",
"sourceFile": "https://github.com/woocommerce/woocommerce-admin/blob/a30add9de6f21f26d7c61aa24ddcd9439e53f99f/client/homescreen/stats-overview/defaults.js#L5-L16",
"name": "woocommerce_admin_homepage_default_stats",
"example": "addFilter( 'woocommerce_admin_homepage_default_stats', 'plugin-domain', ( defaultStats ) => defaultStats.filter( ( stat ) => stat !== 'jetpack/stats/views' ) );"
}
Expand Down
2 changes: 1 addition & 1 deletion bin/hook-reference/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function getFilePaths( dir ) {
const writeJSONFile = async ( data ) => {
const fileName = 'bin/hook-reference/data.json';
const stringifiedData = JSON.stringify( data, null, 4 );
await writeFile( fileName, stringifiedData + '\r\n' );
await writeFile( fileName, stringifiedData + '\n' );
};

getFilePaths( 'client' )
Expand Down

0 comments on commit 1682331

Please sign in to comment.