Skip to content

Commit

Permalink
Switch back to dirct usage of prettier in lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Mar 26, 2024
1 parent 574d702 commit 7b5f6ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/**
* Format files before committing
*/
export default {
// @see https://github.com/swup/cli/blob/master/src/commands/package/format.ts
'**/*.{js,ts,mjs,cjs,md}': ['swup package:format']
'**/*.{js,ts,mjs,cjs,md}': ['prettier --write']
};

0 comments on commit 7b5f6ef

Please sign in to comment.