Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
11 changes: 11 additions & 0 deletions lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// lint-staged configuration.
//
// - ESLint --fix runs on staged JS/TS files (this project's linter/formatter; there is no Prettier).
// - Type-checking runs `tsc --noEmit` across the whole project, NOT on individual staged files:
// passing filenames to tsc makes it ignore tsconfig.json (path aliases like `@/*`, jsx, strict
// options), which would fail on almost every commit. The function form below returns a single
// project-wide command and ignores the staged filenames lint-staged would otherwise append.
export default {
"*.{js,jsx,ts,tsx}": "eslint --fix",
"*.{ts,tsx}": () => "tsc --noEmit",
};
Loading
Loading