Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add cspell to project #161

Merged
merged 4 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ jobs:
run: npm ci
- name: Lint
run: npm run lint && npm run typecheck
- name: Spelling
run: npm run lint:spelling
4 changes: 4 additions & 0 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"*.{js,ts,vue}":
- cspell lint --no-must-find-files --files
- eslint --max-warnings=0
"*.ts":
- tsc-files --noEmit
"*.md":
- cspell lint --no-must-find-files --files

12 changes: 12 additions & 0 deletions cspell-config/cspell-misc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sepolia
IERC
dockerized
zkcli
ethereum
viem
nuxt
wagmi
vyper
keccak
Devs
dapp
26 changes: 26 additions & 0 deletions cspell-config/cspell-zksync.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// zkSync-related words
boojum
!MatterLabs
Matter Labs
!Hyperchain
zeek
Zeeks
zkcast
ZKEVM
zkevm
zkforge
zkout
zksolc
ZK Chain
!ZKChain
!zkStack
-zkstack-
ZK Stack
zksync
zksync-cli
zkvyper
!zkSync
!Zksync
!ZkSync
ZKsync
ZKP
59 changes: 59 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"language": "en",
"ignorePaths": [
"*.config.*",
"node_modules/**",
".*/**",
"dist/**",
"cspell-config/**",
"package.json",
"bin/**",
"coverage/**",
"cspell.json"
],
"caseSensitive": true,
"dictionaries": [
"bash",
"cpp",
"cryptocurrencies",
"docker",
"css",
"csharp",
"en_GB",
"en_US",
"filetypes",
"fullstack",
"git",
"golang",
"go",
"html",
"java",
"latext",
"misc",
"node",
"npm",
"npm",
"nuxt",
"python",
"rust",
"softwareTerms",
"swift",
"typescript",
"dict-zksync",
"dict-misc"
],
"dictionaryDefinitions": [
{
"name": "dict-zksync",
"addWords": true,
"path": "./cspell-config/cspell-zksync.txt"
},
{
"name": "dict-misc",
"addWords": true,
"path": "./cspell-config/cspell-misc.txt"
}
],
"allowCompoundWords": true,
"flagWords": ["hte", "hve", "teh", "cna"]
}
Loading
Loading