Skip to content

Commit

Permalink
Add Code Spell Checker (#33)
Browse files Browse the repository at this point in the history
- also fix pre-commit
  • Loading branch information
irahopkinson committed Feb 16, 2023
1 parent 93948bc commit ad51145
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Thanks to axmrnv for helping to fix the lint-staged output https://github.com/typicode/husky/issues/968#issuecomment-1176848345
exec >/dev/tty 2>&1
echo "Running Lint check..."

# Can enable quiet mode to show nothing unless it has an error
npx lint-staged # -q
# -q enables quiet mode to show nothing unless it has an error
npx lint-staged -q
echo "Lint check finished"
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "dzannotti.vscode-babel-coloring", "EditorConfig.EditorConfig", "ms-vscode-remote.vscode-remote-extensionpack"]
"recommendations": ["dbaeumer.vscode-eslint", "dzannotti.vscode-babel-coloring", "EditorConfig.EditorConfig", "ms-vscode-remote.vscode-remote-extensionpack", "streetsidesoftware.code-spell-checker"]
}
16 changes: 14 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
".prettierrc": "jsonc",
".eslintignore": "ignore"
},

"eslint.validate": [
"javascript",
"javascriptreact",
Expand All @@ -26,5 +26,17 @@
"test/**/__snapshots__": true,
"package-lock.json": true,
"*.{css,sass,scss}.d.ts": true
}
},

"cSpell.words": [
"asyncs",
"endregion",
"papi",
"paranext",
"unregisters",
"unsub",
"unsubs",
"unsubscriber",
"unsubscribers"
],
}

0 comments on commit ad51145

Please sign in to comment.