Skip to content

Commit

Permalink
feat: create new cspell hook
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarJaroudi committed Sep 23, 2024
1 parent 6e945a7 commit f76576e
Show file tree
Hide file tree
Showing 6 changed files with 1,412 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ Pipfile.lock
tests/__pycache__/
testing/__pycache__/
pre_commit_hooks/__pycache__/

node_modules
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@turo:registry=https://turo.jfrog.io/turo/api/npm/npm/
//turo.jfrog.io/turo/api/npm/npm/:_auth="${NPM_AUTH_TOKEN}"
//turo.jfrog.io/turo/api/npm/npm/:always-auth=true
14 changes: 14 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,17 @@
language: script
entry: hooks/yalc/yalc-check.sh
files: package\.json
######################
# Cspell hook
- id: cspell
name: cspell
description: "Errors if there are spelling mistakes"
entry: cspell-cli
language: node
types: [text]
args:
- --no-must-find-files
- --no-progress
- --no-summary
- --gitignore
- --files # this needs to be the last argument so that the paths are passed correctly.
3 changes: 3 additions & 0 deletions hooks/cspell/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

import "cspell/bin";
Loading

0 comments on commit f76576e

Please sign in to comment.