-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 更新代码 * 更新 * 'demo' * d * 'd' * 'update' * 'd' * '11' * '11' * 'data' * 'd' * 11 * 11 22 33 44 * 111 222 333 444 555 666 * 1 * 1 * 1 * '11' * '1' * 'd' * Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * '.' Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * 完成 Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * 更新依赖版本 Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * update Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * v2.10.0 - 🔥 新增 [showLoading](https://mineh5ui.biaov.cn/v2/showLoading) 加载提示组件 - 🔥 新增 `git push` 时执行单元测试 - 🔥 新增依赖 @eslint/js, globals, typescript-eslint - ⚙️ 更新依赖版本 - ⚙️ 更新文档 - ⚙️ 更新 vite-plugin-dts 由 `3.x` 升级到 `4.x` - ⚙️ 更新 @types/node 由 `20.x` 升级到 `22.x` - ⚙️ 更新 eslint 由 `8.x` 升级到 `9.x` - ⚙️ 更新 `eslint9.x` 的新配置 - ⚙️ 移除依赖 @typescript-eslint/parser, @typescript-eslint/eslint-plugin, eslint-config-airbnb-base, eslint-config-prettier, eslint-plugin-import - 🐞 修复代码格式错误 - 🐞 修复 button 文档链接问题 Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> * - 修复类型缺陷 Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]> Co-authored-by: biaov2018 <[email protected]> --------- Co-authored-by: biaov <[email protected]> Co-authored-by: biaov2017 <[email protected]>
- Loading branch information
1 parent
610e59c
commit f5d841b
Showing
112 changed files
with
2,028 additions
and
1,953 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/node_modules | ||
.DS_Store | ||
/dist | ||
format.* | ||
/format.* | ||
pnpm-lock.yaml | ||
.log | ||
.bak |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# npm run test:unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
echo "" >>"$1" | ||
echo "Co-authored-by: biaov <[email protected]>" >>"$1" | ||
echo "Co-authored-by: biaov2017 <[email protected]>" >>"$1" | ||
echo "Co-authored-by: biaov2018 <[email protected]>" >>"$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
/* 推荐扩展 */ | ||
"recommendations": ["Vue.volar", "esbenp.prettier-vscode"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{ | ||
/* 保存时自动格式化 */ | ||
"editor.formatOnSave": true, | ||
"editor.unicodeHighlight.nonBasicASCII": false | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.unicodeHighlight.nonBasicASCII": false, | ||
"prettier.tabWidth": 2, | ||
"prettier.useTabs": false, | ||
"prettier.semi": false, | ||
"prettier.singleQuote": true, | ||
"prettier.arrowParens": "avoid", | ||
"prettier.trailingComma": "none", | ||
"files.eol": "\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
reject: ['eslint'] | ||
reject: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
import globals from 'globals' | ||
import pluginJs from '@eslint/js' | ||
import tseslint from 'typescript-eslint' | ||
import pluginVue from 'eslint-plugin-vue' | ||
import prettier from 'eslint-plugin-prettier' | ||
|
||
const developmentOff = process.env.NODE_ENV === 'development' ? 'off' : 'error' | ||
|
||
export default [ | ||
{ | ||
files: ['**/*.{js,ts,vue}'], | ||
plugins: { | ||
prettier | ||
} | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
NodeListOf: 'readonly', | ||
EventListenerOrEventListenerObject: 'readonly', | ||
NodeJS: 'readonly', | ||
defineSlots: 'readonly', | ||
defineOptions: 'readonly', | ||
describe: 'readonly', | ||
test: 'readonly', | ||
expect: 'readonly' | ||
}, | ||
parserOptions: { | ||
parser: tseslint.parser | ||
} | ||
} | ||
}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...pluginVue.configs['flat/essential'], | ||
{ | ||
rules: { | ||
/** | ||
* 禁止未使用的变量 | ||
*/ | ||
'no-unused-vars': developmentOff, | ||
|
||
/** | ||
* 禁止 console | ||
*/ | ||
'no-console': developmentOff, | ||
|
||
/** | ||
* 禁止未使用的表达式 | ||
*/ | ||
'no-unused-expressions': [ | ||
'error', | ||
{ | ||
/** | ||
* 允许短路逻辑 | ||
*/ | ||
allowShortCircuit: true, | ||
|
||
/** | ||
* 允许三目运算 | ||
*/ | ||
allowTernary: true | ||
} | ||
], | ||
|
||
/** | ||
* 如果只有一个值,要用 default 导出 | ||
*/ | ||
'import/prefer-default-export': 'off', | ||
|
||
/** | ||
* import 识别路径,因为 alias 设置 | ||
*/ | ||
'import/no-unresolved': 'off', | ||
|
||
/** | ||
* 扩展简写 | ||
*/ | ||
'import/extensions': 'off', | ||
|
||
/** | ||
* 函数参数修改 | ||
*/ | ||
'no-param-reassign': 'off', | ||
|
||
/** | ||
* 一元操作符 | ||
*/ | ||
'no-plusplus': 'off', | ||
|
||
/** | ||
* 禁用嵌套的三元表达式 | ||
*/ | ||
'no-nested-ternary': 'off', | ||
|
||
/** | ||
* 禁用按位运算符 | ||
*/ | ||
'no-bitwise': 'off', | ||
|
||
/** | ||
* 禁止连续赋值 | ||
*/ | ||
'no-multi-assign': 'off', | ||
|
||
/** | ||
* 禁止默认导出 | ||
*/ | ||
'no-restricted-exports': 'off', | ||
|
||
/** | ||
* 禁止多个单词名称 | ||
*/ | ||
'vue/multi-word-component-names': 'off', | ||
|
||
/** | ||
* 禁止包 dependencies | ||
*/ | ||
'import/no-extraneous-dependencies': 'off', | ||
|
||
/** | ||
* 属性名 | ||
*/ | ||
'vue/valid-attribute-name': 'off', | ||
/** | ||
* 短路逻辑运算 | ||
*/ | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
/** | ||
* 允许不是具体的函数内容 | ||
*/ | ||
'@typescript-eslint/no-unsafe-function-type': 'off', | ||
/** | ||
* 不允许命名空间 | ||
*/ | ||
'@typescript-eslint/no-namespace': 'off', | ||
/** | ||
* 不能为空对象 | ||
*/ | ||
'@typescript-eslint/no-empty-object-type': 'off', | ||
/** | ||
* 强类型 | ||
*/ | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/components/*.vue'], | ||
rules: { | ||
'vue/multi-word-component-names': 'error' | ||
} | ||
}, | ||
{ | ||
files: ['./mobile/**/*.ts', './tests/**/*.ts'], | ||
rules: { | ||
'no-console': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/types.ts', '**/*.d.ts'], | ||
rules: { | ||
'no-unused-vars': 'off', | ||
'no-shadow': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['mobile/**/*.ts', 'mobile/**/*.vue', 'tests/**/*.ts'], | ||
rules: { | ||
'no-console': 'off' | ||
} | ||
}, | ||
{ | ||
ignores: ['node_modules', 'dist', '**/fonts/**'] | ||
} | ||
] |
Oops, something went wrong.