mirror of
https://github.com/LadybirdBrowser/discord-bot.git
synced 2026-04-05 13:43:30 +00:00
Meta: Add codespell enforcement to pre-commit rules
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# See: https://github.com/codespell-project/codespell#using-a-config-file
|
||||
[codespell]
|
||||
skip = ./node_modules,./build,yarn.lock
|
||||
contex=6
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user