Skip to content

Commit 1f3e747

Browse files
committed
chore: add comments to explain the default format script
1 parent d29101e commit 1f3e747

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ export default function createConfig({
8484
},
8585
],
8686
})
87+
88+
// Default to only format the `src/` directory to avoid too much noise, and
89+
// the need for a `.prettierignore` file.
90+
// Users can still append any paths they'd like to format to the command,
91+
// e.g. `npm run format cypress/`.
8792
pkg.scripts.format = 'prettier --write src/'
8893
}
8994

0 commit comments

Comments
 (0)