-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a69ddf
commit 3577d62
Showing
4 changed files
with
402 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
npm run format | ||
npm run typecheck | ||
npm run lint | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
// The Typescript compiler can't type-check a single file, it needs to run on | ||
// the whole project. To do that we use a function (instead of a string or | ||
// array) so that no matter what file or how many, we will always run the same | ||
// command. | ||
"*.{ts,tsx}": () => "tsc --noEmit", | ||
"*.{ts,tsx,js,jsx}": ["eslint --fix", "prettier --write"], | ||
"*": "prettier --ignore-unknown --write", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.