feat(spell): applied spell check it works by hook if you install packages, complete partly #4

This commit is contained in:
Konrad Geletey 2023-04-11 20:04:43 +03:00
parent 5738df5060
commit e1d85bc651
Signed by: kglt
GPG key ID: 386DEE24B60BD996
6 changed files with 1189 additions and 0 deletions

21
.cspell.json Normal file
View file

@ -0,0 +1,21 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"dictionaries": ["latex", "ru-ru", "en-gb", "custom"],
"import": [
"@cspell/dict-ru_ru/cspell-ext.json",
"@cspell/dict-en-gb/cspell-ext.json",
"@cspell/dict-latex/cspell-ext.json",
"@cspell/dict-fullstack/cspell-ext.json",
"@cspell/dict-markdown/cspell-ext.json",
"@cspell/dict-software-terms/cspell-ext.json"
],
"dictionaryDefinitions": [
{
"name": "custom",
"path": "src/dictionary.txt",
"addWords": true
}
],
"ignorePaths": ["LICENSE.md", "AUTHORS.md", "CODE_OF_CONDUCT.md"]
}

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
# node_moodules folder from styles and math rendering
node_modules/

5
lefthook.yml Normal file
View file

@ -0,0 +1,5 @@
pre-push:
commands:
spell-check:
glob: '*.md'
run: pnpm run spell

16
package.json5 Normal file
View file

@ -0,0 +1,16 @@
{
private: true,
scripts: {
spell: 'cspell lint -c .cspell.json "**/*.md"',
},
devDependencies: {
'@cspell/dict-en-gb': '^4.1.12',
'@cspell/dict-fullstack': '^3.1.5',
'@cspell/dict-latex': '^4.0.0',
'@cspell/dict-markdown': '^2.0.1',
'@cspell/dict-ru_ru': '^2.0.5',
'@cspell/dict-software-terms': '^3.1.6',
'@evilmartians/lefthook': '^1.3.9',
cspell: '^6.30.2',
},
}

1094
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

51
src/dictionary.txt Normal file
View file

@ -0,0 +1,51 @@
jryans
homeserver
Telodendria
Nheko
Flathub
fdroid
archlinux
PKGBUILD
lgaggini
юниксоидов
вендорам
fwupd
LVFS
Aleksey
Samoilov
Zkfnb
Nyme
ipfs
ipdr
Filecoin
торрент+
+ов
Dima
Polenov
AOSP
Pacman
Habr
Джет
Инфосистемы
Famedly
rodolphen
Dqvq
Eotbi
evgenyponomarev
Multitiered
powergate
textileio
kubo
iroh
btrfs
archinstall
rodolpheh
nvim
pinset
fooock
ping
openrc
raspberrypi
Леченко
Таненбаум