Skip to content

Commit 31b6ac1

Browse files
committed
add lockfile to lint staged
1 parent 4039438 commit 31b6ac1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lint-staged.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const config: Configuration = {
55
'*.{js,ts,tsx,yml,yaml,md,json}': (stagedFiles) => `prettier --write ${stagedFiles.join(' ')}`,
66
'*.toml': (stagedFiles) => `taplo format ${stagedFiles.join(' ')}`,
77
'*.rs': () => ['cargo fmt --all', 'cargo clippy --all-targets --all-features'],
8+
'*.package.json': () => ['yarn install --mode=update-lockfile'],
89
}
910

1011
export default config

0 commit comments

Comments
 (0)