Skip to content

Commit

Permalink
Move spellcheck action to precommit (#5991)
Browse files Browse the repository at this point in the history
## Summary

Spellcheck configuration is far from acceptable and reports numerous
false positives. Since it looks like task that's a bit time consuming, I
decided to move this action to precommit hook and only trigger it on
changed files. We might restore it in the future if we consider it
necessary.

## Test plan

🚀
  • Loading branch information
tjzel authored May 9, 2024
1 parent 78dcf0d commit 0c962f9
Show file tree
Hide file tree
Showing 3 changed files with 859 additions and 45 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/spellcheck.yml

This file was deleted.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"babel-plugin-module-resolver": "^5.0.0",
"clang-format": "^1.6.0",
"code-tag": "^1.1.0",
"cspell": "^8.8.0",
"eslint": "^8.0.0-0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^17.1.0",
Expand Down Expand Up @@ -154,6 +155,9 @@
"typescript": "^4.1.3"
},
"lint-staged": {
"*.(js|jsx|ts|tsx|h|cpp|m|mm|java|kt|swift|md|mdx)": [
"yarn cspell"
],
"*.(js|ts|tsx)": [
"yarn eslint",
"yarn eslint --quiet --ext '.js,.ts,.tsx' src/",
Expand Down
Loading

0 comments on commit 0c962f9

Please sign in to comment.