diff --git a/.cspell.json b/.cspell.json new file mode 100644 index 0000000..a37d474 --- /dev/null +++ b/.cspell.json @@ -0,0 +1,9 @@ +{ + "version": "0.2", + "dictionaryDefinitions": [ + { "addWords": true, "path": ".cspell/dictionary.txt", "name": "dictionary" } + ], + "language": "en", + "dictionaries": ["dictionary"], + "ignorePaths": ["dist"] +} diff --git a/.cspell/dictionary.txt b/.cspell/dictionary.txt new file mode 100644 index 0000000..0d69f7a --- /dev/null +++ b/.cspell/dictionary.txt @@ -0,0 +1,7 @@ +astro +bezier +bitstream +lucida +menlo +minmax +rgba diff --git a/.gitignore b/.gitignore index 6d4c0aa..791318a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,9 @@ dist/ # dependencies node_modules/ +# Vale +.vale/write-good/ + # logs npm-debug.log* yarn-debug.log* diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 0000000..e463156 --- /dev/null +++ b/.vale.ini @@ -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 diff --git a/.vale/Vocab/Base/accept.txt b/.vale/Vocab/Base/accept.txt new file mode 100644 index 0000000..e69de29 diff --git a/.vale/Vocab/Base/reject.txt b/.vale/Vocab/Base/reject.txt new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 37ea1a8..a591eac 100644 --- a/package.json +++ b/package.json @@ -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" } }