chore: add vale and cspell

This commit is contained in:
Stefan Imhoff
2023-02-12 12:23:45 +01:00
parent 9bd0f772b0
commit 4219ebfaf2
7 changed files with 41 additions and 0 deletions

9
.cspell.json Normal file
View File

@@ -0,0 +1,9 @@
{
"version": "0.2",
"dictionaryDefinitions": [
{ "addWords": true, "path": ".cspell/dictionary.txt", "name": "dictionary" }
],
"language": "en",
"dictionaries": ["dictionary"],
"ignorePaths": ["dist"]
}

7
.cspell/dictionary.txt Normal file
View File

@@ -0,0 +1,7 @@
astro
bezier
bitstream
lucida
menlo
minmax
rgba

3
.gitignore vendored
View File

@@ -7,6 +7,9 @@ dist/
# dependencies
node_modules/
# Vale
.vale/write-good/
# logs
npm-debug.log*
yarn-debug.log*

18
.vale.ini Normal file
View File

@@ -0,0 +1,18 @@
StylesPath = .vale
MinAlertLevel = suggestion
Vocab = Base
Packages = write-good
[*.{md,mdx,txt,html,astro,svelte,json}]
BasedOnStyles = Vale, write-good
# Turn off rules
Vale.Terms = NO
Vale.Spelling = NO
write-good.E-Prime = NO
[formats]
astro = html
svelte = html

View File

View File

View File

@@ -8,6 +8,8 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"vale": "vale sync",
"cspell": "cspell --words-only --unique 'src' | sort --ignore-case >> .cspell/dictionary.txt",
"prepare": "husky install"
},
"dependencies": {
@@ -31,5 +33,7 @@
"prettier-plugin-tailwindcss": "^0.2.2",
"rollup": "^3.15.0",
"typescript": "^4.9.5",
"vale": "^0.1.0",
"vite": "^4.1.1"
}
}