-
-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed ESLint bugs that required ts-specific rules for js functions an…
…d added prettier formatting (re-open #3184) (#3229) * Fixed ESLint bugs that required ts-specific rules for js functions * Removed eslint-ignore comments and added override rule specifically for the target file * Changed the file to typescript file and added return types to avoid linting errors * adding npx to run the tsx command * coderabbit suggestions and ignore codeconv for this file since it is not applicable * removed the ignore statement * Resolved merge conflicts in package.json
- Loading branch information
Showing
4 changed files
with
31 additions
and
25 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
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,5 +1,5 @@ | ||
{ | ||
"**/*.{ts,tsx,yml}": "eslint --fix", | ||
"**/*.{ts,tsx,json,scss,css,yml}": "prettier --write", | ||
"**/*.{ts,tsx}": "node scripts/githooks/check-localstorage-usage.js" | ||
"**/*.{ts,tsx}": "npx tsx scripts/githooks/check-localstorage-usage.ts" | ||
} |
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
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