Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07d1f85f
authored
Jun 16, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: add cspell check
1 parent
6c092e28
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
64 additions
and
32 deletions
.vscode/settings.json
apps/web-antd/package.json
cspell.json
internal/lint-configs/eslint-config/package.json
internal/lint-configs/prettier-config/package.json
internal/tailwind-config/package.json
internal/vite-config/package.json
package.json
packages/@core/forward/helpers/src/flatten-object.ts
packages/business/layouts/package.json
pnpm-lock.yaml
.vscode/settings.json
View file @
07d1f85
...
...
@@ -171,20 +171,6 @@
"packages/@vben-core/shared/design-tokens/src/**/*.css"
],
"cSpell.words"
:
[
"vben"
,
"iconify"
,
"pinia"
,
"nprogress"
,
"shadcn"
,
"antd"
,
"qrcode"
,
"vueuse"
,
"brotli"
],
"cSpell.allowCompoundWords"
:
true
,
"cSpell.language"
:
"en,en-US"
,
"i18n-ally.localesPaths"
:
[
"packages/locales/src/langs"
],
"i18n-ally.enabledParsers"
:
[
"json"
,
"ts"
,
"js"
,
"yaml"
],
"i18n-ally.sourceLanguage"
:
"en"
,
...
...
@@ -201,7 +187,7 @@
"README.md"
:
"README*,CHANGELOG*,LICENSE,CNAME"
,
"package.json"
:
"pnpm-lock.yaml,pnpm-workspace.yaml,.gitattributes,.gitignore,.gitpod.yml,.npmrc,.browserslistrc,.node-version,.git*,.tazerc.json"
,
"Dockerfile"
:
"Dockerfile,.docker*,docker-entrypoint.sh,build-local-docker*"
,
"eslint.config.mjs"
:
".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,stylelint.config.*,.lintstagedrc.mjs,.ls-lint*"
,
"eslint.config.mjs"
:
".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,stylelint.config.*,.lintstagedrc.mjs,.ls-lint*
,cspell.json
"
,
"tailwind.config.mjs"
:
"postcss.*"
},
"commentTranslate.hover.enabled"
:
true
,
...
...
apps/web-antd/package.json
View file @
07d1f85
...
...
@@ -26,7 +26,6 @@
"@vben-core/preferences"
:
"workspace:*"
,
"@vben-core/request"
:
"workspace:*"
,
"@vben-core/stores"
:
"workspace:*"
,
"@vben/universal-ui"
:
"workspace:*"
,
"@vben/constants"
:
"workspace:*"
,
"@vben/hooks"
:
"workspace:*"
,
"@vben/icons"
:
"workspace:*"
,
...
...
@@ -34,6 +33,7 @@
"@vben/locales"
:
"workspace:*"
,
"@vben/styles"
:
"workspace:*"
,
"@vben/types"
:
"workspace:*"
,
"@vben/universal-ui"
:
"workspace:*"
,
"@vben/utils"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.11.0"
,
"ant-design-vue"
:
"^4.2.3"
,
...
...
cspell.json
0 → 100644
View file @
07d1f85
{
"version"
:
"0.2"
,
"language"
:
"en,en-US"
,
"allowCompoundWords"
:
true
,
"words"
:
[
"acmr"
,
"antd"
,
"brotli"
,
"defu"
,
"iconify"
,
"intlify"
,
"mkdist"
,
"mockjs"
,
"noopener"
,
"noreferrer"
,
"nprogress"
,
"pinia"
,
"publint"
,
"qrcode"
,
"shadcn"
,
"sonner"
,
"ui-kit"
,
"unplugin"
,
"vben"
,
"vueuse"
,
"yxxx"
,
"nuxt"
,
"lockb"
,
"astro"
,
"uikit"
,
"styl"
,
"nocheck"
,
"prefixs"
,
"vitepress"
,
"ependencies"
],
"ignorePaths"
:
[
"**/node_modules/**"
,
"**/dist/**"
,
"**/iconify/**"
]
}
internal/lint-configs/eslint-config/package.json
View file @
07d1f85
...
...
@@ -32,8 +32,8 @@
"devDependencies"
:
{
"@eslint/js"
:
"^9.5.0"
,
"@types/eslint"
:
"^8.56.10"
,
"@typescript-eslint/eslint-plugin"
:
"^7.13.
0
"
,
"@typescript-eslint/parser"
:
"^7.13.
0
"
,
"@typescript-eslint/eslint-plugin"
:
"^7.13.
1
"
,
"@typescript-eslint/parser"
:
"^7.13.
1
"
,
"eslint"
:
"^8.57.0"
,
"eslint-config-prettier"
:
"^9.1.0"
,
"eslint-plugin-eslint-comments"
:
"^3.2.0"
,
...
...
@@ -49,7 +49,7 @@
"eslint-plugin-unused-imports"
:
"^4.0.0"
,
"eslint-plugin-vitest"
:
"^0.5.4"
,
"eslint-plugin-vue"
:
"^9.26.0"
,
"globals"
:
"^15.
5
.0"
,
"globals"
:
"^15.
6
.0"
,
"jsonc-eslint-parser"
:
"^2.4.0"
,
"vue-eslint-parser"
:
"^9.4.3"
}
...
...
internal/lint-configs/prettier-config/package.json
View file @
07d1f85
...
...
@@ -29,6 +29,6 @@
},
"dependencies"
:
{
"prettier"
:
"^3.3.2"
,
"prettier-plugin-tailwindcss"
:
"^0.6.
4
"
"prettier-plugin-tailwindcss"
:
"^0.6.
5
"
}
}
internal/tailwind-config/package.json
View file @
07d1f85
...
...
@@ -45,7 +45,7 @@
"tailwindcss"
:
"^3.4.3"
},
"dependencies"
:
{
"@iconify/json"
:
"^2.2.2
19
"
,
"@iconify/json"
:
"^2.2.2
20
"
,
"@iconify/tailwind"
:
"^1.1.1"
,
"@tailwindcss/forms"
:
"^0.5.7"
,
"@tailwindcss/nesting"
:
"0.0.0-insiders.565cd3e"
,
...
...
internal/vite-config/package.json
View file @
07d1f85
...
...
@@ -45,7 +45,7 @@
"dotenv"
:
"^16.4.5"
,
"rollup"
:
"^4.18.0"
,
"rollup-plugin-visualizer"
:
"^5.12.0"
,
"sass"
:
"^1.77.
5
"
,
"sass"
:
"^1.77.
6
"
,
"unplugin-turbo-console"
:
"^1.8.6"
,
"vite"
:
"^5.3.1"
,
"vite-plugin-compression"
:
"^0.5.1"
,
...
...
package.json
View file @
07d1f85
...
...
@@ -27,10 +27,11 @@
"build"
:
"cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build"
,
"build:docker"
:
"./build-local-docker-image.sh"
,
"changeset"
:
"pnpm exec changeset"
,
"check"
:
"pnpm run check:dep && pnpm run check:circular && pnpm run check:type"
,
"check"
:
"pnpm run check:dep && pnpm run check:circular && pnpm run check:type
&& pnpm run check:spell
"
,
"check:circular"
:
"vsh check-circular"
,
"check:dep"
:
"vsh check-dep"
,
"check:type"
:
"turbo run typecheck"
,
"check:spell"
:
"cspell
\"
**/*.ts
\"
\"
**/README.md
\"
\"
.changeset/*.md
\"
--no-progress"
,
"clean"
:
"vsh clean"
,
"commit"
:
"czg"
,
"docs:dev"
:
"pnpm -F @vben/website run docs:dev"
,
...
...
@@ -49,7 +50,7 @@
"@changesets/cli"
:
"^2.27.5"
,
"@ls-lint/ls-lint"
:
"^2.2.3"
,
"@types/jsdom"
:
"^21.1.7"
,
"@types/node"
:
"^20.14.
2
"
,
"@types/node"
:
"^20.14.
4
"
,
"@vben/commitlint-config"
:
"workspace:*"
,
"@vben/eslint-config"
:
"workspace:*"
,
"@vben/lint-staged-config"
:
"workspace:*"
,
...
...
@@ -61,6 +62,7 @@
"@vben/vsh"
:
"workspace:*"
,
"@vue/test-utils"
:
"^2.4.6"
,
"cross-env"
:
"^7.0.3"
,
"cspell"
:
"^8.8.4"
,
"husky"
:
"^9.0.11"
,
"is-ci"
:
"^3.0.1"
,
"jsdom"
:
"^24.1.0"
,
...
...
@@ -70,14 +72,14 @@
"typescript"
:
"^5.4.5"
,
"unbuild"
:
"^2.0.0"
,
"vite"
:
"^5.3.1"
,
"vitest"
:
"^2.0.0-beta.
3
"
,
"vitest"
:
"^2.0.0-beta.
10
"
,
"vue-tsc"
:
"^2.0.21"
},
"engines"
:
{
"node"
:
">=
18.7.
0"
,
"pnpm"
:
">=
8.5.0
"
"node"
:
">=
2
0"
,
"pnpm"
:
">=
9
"
},
"packageManager"
:
"pnpm@9.
3
.0"
,
"packageManager"
:
"pnpm@9.
4
.0"
,
"pnpm"
:
{
"overrides"
:
{
"@ctrl/tinycolor"
:
"4.1.0"
,
...
...
@@ -88,6 +90,12 @@
"canvas"
,
"node-gyp"
,
"playwright"
]
],
"updateConfig"
:
{
"ignoreDependencies"
:
[
"eslint"
,
"zx"
]
}
}
}
packages/@core/forward/helpers/src/flatten-object.ts
View file @
07d1f85
...
...
@@ -67,8 +67,8 @@ export { flattenObject };
// [K in keyof T as CurrentDepth['length'] extends Depth
// ? K
// : T[K] extends object
// ? `${CurrentDepth['length'] extends 0 ? Un
c
apitalize<K & string> : Capitalize<K & string>}${keyof FlattenDepth<T[K], Depth, [...CurrentDepth, 1]> extends string ? Capitalize<keyof FlattenDepth<T[K], Depth, [...CurrentDepth, 1]>> : ''}`
// : `${CurrentDepth['length'] extends 0 ? Un
c
apitalize<K & string> : Capitalize<K & string>}`]: CurrentDepth['length'] extends Depth
// ? `${CurrentDepth['length'] extends 0 ? Un
C
apitalize<K & string> : Capitalize<K & string>}${keyof FlattenDepth<T[K], Depth, [...CurrentDepth, 1]> extends string ? Capitalize<keyof FlattenDepth<T[K], Depth, [...CurrentDepth, 1]>> : ''}`
// : `${CurrentDepth['length'] extends 0 ? Un
C
apitalize<K & string> : Capitalize<K & string>}`]: CurrentDepth['length'] extends Depth
// ? T[K]
// : T[K] extends object
// ? FlattenDepth<T[K], Depth, [...CurrentDepth, 1]>[keyof FlattenDepth<
...
...
packages/business/layouts/package.json
View file @
07d1f85
...
...
@@ -46,8 +46,8 @@
"@vben-core/stores"
:
"workspace:*"
,
"@vben-core/tabs-ui"
:
"workspace:*"
,
"@vben-core/toolkit"
:
"workspace:*"
,
"@vben/universal-ui"
:
"workspace:*"
,
"@vben/locales"
:
"workspace:*"
,
"@vben/universal-ui"
:
"workspace:*"
,
"vue"
:
"^3.4.29"
,
"vue-router"
:
"^4.3.3"
},
...
...
pnpm-lock.yaml
View file @
07d1f85
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment