Skip to content

Commit

Permalink
chore(infra): add cspell
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Jun 24, 2024
1 parent 553bef9 commit 79839d6
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 1 deletion.
30 changes: 30 additions & 0 deletions cspell.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const { banWords } = require('cspell-ban-words');

module.exports = {
version: '0.2',
language: 'en',
files: ['**/*.{ts,tsx,js,jsx,md,mdx}'],
enableFiletypes: ['mdx'],
ignoreRegExpList: [
// ignore markdown anchors such as [modifyRsbuildConfig](#modifyrsbuildconfig)
'#.*?\\)',
],
ignorePaths: [
'dist',
'dist-*',
'compiled',
'coverage',
'doc_build',
'node_modules',
'pnpm-lock.yaml',
],
flagWords: banWords,
dictionaries: ['dictionary'],
dictionaryDefinitions: [
{
name: 'dictionary',
path: './scripts/dictionary.txt',
addWords: true,
},
],
};
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"name": "rslib-monorepo",
"private": true,
"workspaces": {
"packages": [
"packages/*",
"packages/compat/*",
"scripts/*"
]
},
"scripts": {
"build": "cross-env NX_DAEMON=false nx run-many -t build --parallel=10",
"check-dependency-version": "check-dependency-version-consistency .",
"lint": "biome check . --diagnostic-level=warn",
"check-spell": "npx cspell",
"lint": "biome check . --diagnostic-level=warn && pnpm run check-spell",
"prebundle": "nx run-many -t prebundle",
"prepare": "pnpm run build && simple-git-hooks",
"sort-package-json": "npx sort-package-json \"packages/*/package.json\"",
Expand All @@ -28,6 +36,7 @@
"@modern-js/module-tools": "^2.48.6",
"check-dependency-version-consistency": "^4.1.0",
"cross-env": "^7.0.3",
"cspell-ban-words": "^0.0.3",
"nano-staged": "^0.8.0",
"nx": "^19.3.0",
"prettier": "^3.2.4",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

119 changes: 119 additions & 0 deletions scripts/dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Custom Dictionary Words
antd
apng
applescript
atrules
biomejs
brotli
browserslistrc
bundleless
caniuse
chunkhash
Chunktmp
classname
codegen
codesandbox
compat
consolas
contentful
corejs
corepack
craco
crossorigin
datauri
deepmerge
docgen
envinfo
estree
facti
filenaming
flac
flexbox
flexbugs
fnames
frontends
fullhash
gzipped
icss
idents
iife
imagex
jfif
jiti
jscpuprofile
jsesc
koppers
lightningcss
liyincode
longpaths
manypkg
mattcompiles
menlo
microfrontend
microfrontends
modularly
napi
nolyfill
ntqry
onclosetag
onopentag
ontext
osascript
outro
pageerror
pathinfo
pcss
perfetto
picocolors
pjpeg
pluggable
pmmmwh
postcssrc
preact
prebundle
preflights
prefresh
preprocessors
pxtorem
rebranded
rolldown
rsbuild
rsdoctor
rsfamily
rslib
rslog
rspack
rspress
selfsign
selfsigned
sirv
sokra
speedscope
srcset
stacktracey
styl
stylex
subdir
subpage
subresource
subresources
svgr
swcrc
systemjs
tailwindcss
taze
templating
transpiling
treeshaking
tsbuildinfo
tsdoc
unocss
unpatch
unplugin
unshift
upath
vitest
vnode
watchpack
webm
webp

0 comments on commit 79839d6

Please sign in to comment.