Skip to content

Commit

Permalink
!229 feat(v3.4.2.2): 版本发布
Browse files Browse the repository at this point in the history
Merge pull request !229 from 码匠君/develop
  • Loading branch information
herodotus-ecosystem authored and gitee-org committed Feb 12, 2025
2 parents 16351fb + 40cc1e8 commit 9606b92
Show file tree
Hide file tree
Showing 150 changed files with 5,194 additions and 3,037 deletions.
13 changes: 5 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
root = true
[*] # 表示所有文件适用
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
charset = utf-8 # 设置文件字符集为 utf-8
indent_style = space # 缩进风格(tab | space)
indent_size = 2 # 缩进大小
end_of_line = lf # 控制换行类型(lf | cr | crlf)
trim_trailing_whitespace = true # 去除行首的任意空白字符
indent_style = space # 缩进风格(tab | space)
insert_final_newline = true # 始终在文件末尾插入一个新行
[*.md] # 表示仅 md 文件适用以下规则
max_line_length = off
trim_trailing_whitespace = false
trim_trailing_whitespace = true # 去除行首的任意空白字符
end_of_line = lf # 控制换行类型(lf | cr | crlf)
max_line_length = 120
17 changes: 0 additions & 17 deletions .eslintignore

This file was deleted.

86 changes: 0 additions & 86 deletions .eslintrc.cjs

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

23 changes: 0 additions & 23 deletions .prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": true,
"singleQuote": true,
"printWidth": 100
}
9 changes: 0 additions & 9 deletions .stylelintignore

This file was deleted.

7 changes: 0 additions & 7 deletions .stylelintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["Vue.volar"]
"recommendations": ["Vue.volar", "dbaeumer.vscode-eslint", "EditorConfig.EditorConfig", "esbenp.prettier-vscode"]
}
13 changes: 12 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib"
"typescript.tsdk": "node_modules\\typescript\\lib",
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"tsconfig.json": "tsconfig.*.json, env.d.ts",
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .stylelint*, stylelint*, .editorconfig"
},
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
79 changes: 79 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import js from '@eslint/js';
import globals from 'globals';
import pluginVue from 'eslint-plugin-vue';
import pluginQuasar from '@quasar/app-vite/eslint';
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';

// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
// import { configureVueProject } from '@vue/eslint-config-typescript'
// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup

export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
},

{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
},

pluginQuasar.configs.recommended(),
js.configs.recommended,

pluginVue.configs['flat/essential'],
vueTsConfigs.recommended,

{
files: ['**/*.ts', '**/*.vue'],
rules: {
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
},
},

{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',

globals: {
...globals.browser,
...globals.node, // SSR, Electron, config files
process: 'readonly', // process.env.*
ga: 'readonly', // Google Analytics
cordova: 'readonly',
Capacitor: 'readonly',
chrome: 'readonly', // BEX related
browser: 'readonly', // BEX related
},
},

// add your custom rules here
rules: {
'prefer-promise-reject-errors': 'off',

// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',

'no-case-declarations': 'off',
// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
// does not work with type definitions
'no-unused-vars': 'off',
'vue/no-mutating-props': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
},
},

skipFormatting,
);
36 changes: 17 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,55 +27,53 @@
]
},
"dependencies": {
"@quasar/extras": "^1.16.16",
"@quasar/extras": "^1.16.17",
"disable-devtool": "^0.3.8",
"lodash-es": "^4.17.21",
"pinia": "^2.3.1",
"pinia": "^3.0.0",
"pinia-plugin-persistedstate": "^4.2.0",
"qs": "^6.14.0",
"quasar": "^2.17.7",
"vue": "^3.5.13",
"vue-i18n": "^11.1.0"
"vue-i18n": "^11.1.1"
},
"devDependencies": {
"@changesets/cli": "^2.27.12",
"@eslint/js": "^9.20.0",
"@quasar/app-vite": "^2.0.8",
"@quasar/vite-plugin": "^1.9.0",
"@tsconfig/node22": "^22.0.0",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.13.1",
"@types/qs": "^6.9.18",
"@typescript-eslint/eslint-plugin": "^8.23.0",
"@typescript-eslint/parser": "^8.23.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/eslint-config-prettier": "^10.2.0",
"@vue/eslint-config-typescript": "^14.4.0",
"@vue/tsconfig": "^0.7.0",
"commitizen": "^4.3.1",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"dotenv": "^16.4.7",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-define-config": "^2.1.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-quasar": "^1.1.0",
"eslint": "^9.20.1",
"eslint-plugin-vue": "^9.32.0",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"postcss": "^8.5.1",
"postcss": "^8.5.2",
"postcss-html": "^1.8.0",
"prettier": "^3.4.2",
"rollup": "4.34.4",
"prettier": "^3.5.0",
"rollup": "4.34.6",
"rollup-plugin-visualizer": "^5.14.0",
"sass": "^1.84.0",
"stylelint": "^16.14.1",
"stylelint-config-recess-order": "^6.0.0",
"stylelint-config-recommended-vue": "^1.6.0",
"stylelint-config-standard-scss": "^14.0.0",
"terser": "^5.38.0",
"sass-embedded": "^1.83.4",
"terser": "^5.38.2",
"typescript": "^5.7.3",
"unocss": "^65.4.3",
"unplugin-auto-import": "^19.0.0",
"unplugin-icons": "^22.0.0",
"unplugin-vue-components": "^28.0.0",
"vconsole": "^3.15.1",
"vite": "^6.1.0",
"vite-plugin-checker": "^0.8.0",
"vite-plugin-compression2": "^1.3.3",
"vite-plugin-dts": "4.5.0",
"vite-plugin-html": "^3.2.2",
Expand Down
7 changes: 4 additions & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"dev": "cross-env vite --force --host --mode development",
"prod": "cross-env vite build --mode production",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
"lint": "eslint . --fix",
"format": "prettier --write src/"
},
"dependencies": {
"@herodotus/apis": "workspace:^",
Expand All @@ -21,7 +22,7 @@
"@herodotus/oss-apis": "workspace:^",
"@highlightjs/vue-plugin": "^2.1.0",
"@mdi/js": "^7.4.47",
"@quasar/extras": "^1.16.16",
"@quasar/extras": "^1.16.17",
"@stomp/stompjs": "^7.0.0",
"@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4",
Expand All @@ -35,7 +36,7 @@
"vkbeautify": "^0.99.3",
"vue": "^3.5.13",
"vue-cookies": "^1.8.6",
"vue-i18n": "^11.1.0",
"vue-i18n": "^11.1.1",
"vue-router": "^4.5.0",
"vue-simple-uploader": "^1.0.3",
"xlsx": "^0.18.5"
Expand Down
Loading

0 comments on commit 9606b92

Please sign in to comment.