-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spell check to precommit hook (#186)
* cspell, husky, lint-staged * version
- Loading branch information
Showing
8 changed files
with
1,902 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npm exec --no -- lint-staged --no-stash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const path = require('path') | ||
|
||
module.exports = { | ||
'*.md': [ | ||
(filenames) => { | ||
if (filenames.length === 0) { | ||
return []; | ||
} | ||
|
||
const fileNames = filenames.join(' '); | ||
console.log('Spell-checking files:', filenames); | ||
return [`cspell ${fileNames} -c cspell.json`]; | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"version": "0.2", | ||
"language": "en", | ||
"showSuggestions": true, | ||
"unique": true, | ||
"silent": true, | ||
"ignorePaths": [ | ||
"**/docs/places/*", | ||
"**/docs/regions/*" | ||
], | ||
"ignoreWords": [ | ||
"androidx", | ||
"appboy", | ||
"autocompletes", | ||
"autocompleting", | ||
"backgrounded", | ||
"blocklisted", | ||
"brandify", | ||
"cartfile", | ||
"ccpa", | ||
"cocoapods", | ||
"codepath", | ||
"customerid", | ||
"dma", | ||
"dmas", | ||
"drawables", | ||
"eddystone", | ||
"endpointid", | ||
"geocode", | ||
"geocoder", | ||
"geocodes", | ||
"geofence", | ||
"geofences", | ||
"geofencing", | ||
"getcapacitor", | ||
"ibeacon", | ||
"idfv", | ||
"ismanualfire", | ||
"isochrone", | ||
"linestring", | ||
"leanplum", | ||
"lytics", | ||
"llpy", | ||
"mapbox", | ||
"maplibre", | ||
"mcdonalds", | ||
"mparticle", | ||
"mpid", | ||
"multipolygon", | ||
"nonatomic", | ||
"nonnull", | ||
"objc", | ||
"onesignal", | ||
"podfile", | ||
"polyline", | ||
"polylines", | ||
"pubspec", | ||
"quickstart", | ||
"quickstarts", | ||
"radarlabs", | ||
"sfmc", | ||
"signup", | ||
"sportsbook", | ||
"timewanted", | ||
"upsert", | ||
"upserted", | ||
"upserts", | ||
"wakeups", | ||
"webm", | ||
"xcframework", | ||
"xcodeworkspace", | ||
"xcproject", | ||
"xcworkspace", | ||
"yourapp", | ||
"lookback", | ||
"jailbroken" | ||
], | ||
"ignoreRegExpList": [ | ||
"/^\\s*```[\\s\\S]*?^\\s*```/gm", | ||
"/.*enc:.*/", | ||
"/.*enc6:.*/" | ||
] | ||
} |
Oops, something went wrong.