Skip to content

Commit

Permalink
fix(lintstaged): prevent submission of untracked files
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Feb 16, 2025
1 parent bd86f8c commit 4a2c5e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default {
() => 'cargo fmt --manifest-path ./backend/Cargo.toml --all',
// () => 'cargo test --manifest-path=./backend/Cargo.toml',
// () => "cargo fmt --manifest-path=./backend/Cargo.toml --all",
() => 'git add -u',
// do not submit untracked files
// () => 'git add -u',
],
'*.{html,sass,scss,less}': ['prettier --write', 'stylelint --fix'],
'package.json': ['prettier --write'],
Expand Down

0 comments on commit 4a2c5e5

Please sign in to comment.