Skip to content

Commit

Permalink
fix(eslint warn): fix some warn
Browse files Browse the repository at this point in the history
  • Loading branch information
张益铭 committed Mar 31, 2021
1 parent f5a2af3 commit b44c13b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ module.exports = {
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
};
2 changes: 1 addition & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ yarn serve

[Vben Admin](https://github.com/anncwb/vue-vben-admin)

## 注意是想
## 注意事项

- 无法在 mock.ts 文件中使用 node 模块,否则生产环境将失败
- 模拟数据如果用于生产环境,仅适用于某些测试环境。 不要在正式环境中打开它,以避免不必要的错误。 同时,在生产环境中,它可能会影响正常的 Ajax 请求,例如文件上传/下载失败等。
Expand Down
8 changes: 4 additions & 4 deletions examples/js-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"dependencies": {
"axios": "^0.21.1",
"mockjs": "^1.1.0",
"vue": "^3.0.9"
"vue": "^3.0.10"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.2.0",
"@vue/compiler-sfc": "^3.0.9",
"@vitejs/plugin-vue": "^1.2.1",
"@vue/compiler-sfc": "^3.0.10",
"cross-env": "^7.0.3",
"vite": "^2.1.4"
"vite": "^2.1.5"
}
}
8 changes: 4 additions & 4 deletions examples/ts-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"dependencies": {
"axios": "^0.21.1",
"mockjs": "^1.1.0",
"vue": "^3.0.9"
"vue": "^3.0.10"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.2.0",
"@vue/compiler-sfc": "^3.0.9",
"@vitejs/plugin-vue": "^1.2.1",
"@vue/compiler-sfc": "^3.0.10",
"cross-env": "^7.0.3",
"typescript": "^4.2.3",
"vite": "^2.1.4"
"vite": "^2.1.5"
}
}
2 changes: 1 addition & 1 deletion examples/ts-example/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { UserConfigExport, ConfigEnv } from 'vite';
import vue from '@vitejs/plugin-vue';

export default ({ command }: ConfigEnv): UserConfigExport => {
let prodMock = true;
const prodMock = true;
return {
plugins: [
vue(),
Expand Down

0 comments on commit b44c13b

Please sign in to comment.