mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-07 23:31:08 +08:00
feat: cspell sort
This commit is contained in:
13
.vscode/settings.json
vendored
13
.vscode/settings.json
vendored
@@ -226,16 +226,5 @@
|
||||
"commentTranslate.multiLineMerge": true,
|
||||
"vue.server.hybridMode": true,
|
||||
"typescript.tsdk": "node_modules/typescript/lib",
|
||||
"oxc.enable": false,
|
||||
"cSpell.words": [
|
||||
"archiver",
|
||||
"axios",
|
||||
"dotenv",
|
||||
"isequal",
|
||||
"jspm",
|
||||
"napi",
|
||||
"nolebase",
|
||||
"rollup",
|
||||
"vitest"
|
||||
]
|
||||
"oxc.enable": false
|
||||
}
|
||||
|
||||
21
cspell.json
21
cspell.json
@@ -7,11 +7,14 @@
|
||||
"acmr",
|
||||
"antd",
|
||||
"antdv",
|
||||
"archiver",
|
||||
"astro",
|
||||
"axios",
|
||||
"brotli",
|
||||
"clsx",
|
||||
"defu",
|
||||
"demi",
|
||||
"dotenv",
|
||||
"echarts",
|
||||
"ependencies",
|
||||
"esno",
|
||||
@@ -20,6 +23,8 @@
|
||||
"iconify",
|
||||
"iconoir",
|
||||
"intlify",
|
||||
"isequal",
|
||||
"jspm",
|
||||
"lockb",
|
||||
"lucide",
|
||||
"minh",
|
||||
@@ -27,7 +32,9 @@
|
||||
"mkdist",
|
||||
"mockjs",
|
||||
"naiveui",
|
||||
"napi",
|
||||
"nocheck",
|
||||
"nolebase",
|
||||
"noopener",
|
||||
"noreferrer",
|
||||
"nprogress",
|
||||
@@ -37,6 +44,7 @@
|
||||
"publint",
|
||||
"qrcode",
|
||||
"reka",
|
||||
"rollup",
|
||||
"shadcn",
|
||||
"sonner",
|
||||
"sortablejs",
|
||||
@@ -52,19 +60,20 @@
|
||||
"vite",
|
||||
"vitejs",
|
||||
"vitepress",
|
||||
"vitest",
|
||||
"vnode",
|
||||
"vueuse",
|
||||
"yxxx"
|
||||
],
|
||||
"ignorePaths": [
|
||||
"**/node_modules/**",
|
||||
"**/dist/**",
|
||||
"**/*-dist/**",
|
||||
"**/icons/**",
|
||||
"pnpm-lock.yaml",
|
||||
"**/*.log",
|
||||
"**/*.test.ts",
|
||||
"**/*.spec.ts",
|
||||
"**/__tests__/**"
|
||||
"**/*.test.ts",
|
||||
"**/__tests__/**",
|
||||
"**/dist/**",
|
||||
"**/icons/**",
|
||||
"**/node_modules/**",
|
||||
"pnpm-lock.yaml"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ export async function jsonc(): Promise<Linter.Config[]> {
|
||||
},
|
||||
sortTsconfig(),
|
||||
sortPackageJson(),
|
||||
sortCspellJson(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -130,6 +131,21 @@ function sortPackageJson(): Linter.Config {
|
||||
};
|
||||
}
|
||||
|
||||
function sortCspellJson(): Linter.Config {
|
||||
return {
|
||||
files: ['**/cspell.json', '**/.cspell.json'],
|
||||
rules: {
|
||||
'jsonc/sort-array-values': [
|
||||
'error',
|
||||
{
|
||||
order: { type: 'asc' },
|
||||
pathPattern: '^words$|^ignorePaths$',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
function sortTsconfig(): Linter.Config {
|
||||
return {
|
||||
files: [
|
||||
|
||||
Reference in New Issue
Block a user