We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d29101e commit 1f3e747Copy full SHA for 1f3e747
index.js
@@ -84,6 +84,11 @@ export default function createConfig({
84
},
85
],
86
})
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/`.
92
pkg.scripts.format = 'prettier --write src/'
93
}
94
0 commit comments