Meta: Add codespell enforcement to pre-commit rules

This commit is contained in:
Brian Gianforcaro
2022-09-09 15:11:49 -07:00
parent 1cd30df4e6
commit 74f593d1bb
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
# See: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
skip = ./node_modules,./build,yarn.lock
contex=6
+9
View File
@@ -1,7 +1,16 @@
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.2.1
hooks:
- id: codespell
name: Checking for spelling issues
- repo: local
hooks:
- id: lint
name: Running yarn lint to ensure changes will pass linting on CI
entry: yarn lint
language: system
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]