feat: check for typos
This commit is contained in:
parent
e39c52216a
commit
50ba85401d
2 changed files with 10 additions and 2 deletions
|
@ -20,9 +20,16 @@ repos:
|
||||||
stages: [commit]
|
stages: [commit]
|
||||||
|
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: Check css, scss, js and ts formatting
|
name: Check css, scss, js, ts and yaml formatting
|
||||||
entry: prettier
|
entry: prettier
|
||||||
language: system
|
language: system
|
||||||
files: .*\.(css|scss|js|ts)$
|
files: .*\.(css|scss|js|ts|yaml)$
|
||||||
args: [-c]
|
args: [-c]
|
||||||
stages: [commit]
|
stages: [commit]
|
||||||
|
|
||||||
|
- id: typos
|
||||||
|
name: Check for typos
|
||||||
|
entry: typos
|
||||||
|
language: system
|
||||||
|
files: .*
|
||||||
|
stages: [commit]
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
pre-commit
|
pre-commit
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
|
typos
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
${pkgs.pre-commit}/bin/pre-commit install -f
|
${pkgs.pre-commit}/bin/pre-commit install -f
|
||||||
|
|
Loading…
Add table
Reference in a new issue