forked from umicro/uView2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
252 changed files
with
12,337 additions
and
12,397 deletions.
There are no files selected for viewing
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,3 +1,4 @@ | ||
unpackage | ||
node_modules | ||
uview-ui | ||
unpackage | ||
node_modules | ||
coverage | ||
static/common/* |
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,26 @@ | ||
module.exports = { | ||
extends: ['eslint-config-egg', 'airbnb'], | ||
rules: { | ||
// 关闭严格模式的提示 | ||
strict: 0, | ||
// 强制4个空格缩进 | ||
indent: ['error', 4], | ||
// 不允许出现分号 | ||
semi: ['error', 'never'], | ||
// 是否检查连续等号赋值 | ||
'no-multi-assign': 0, | ||
// 要求 require() 出现在顶层模块作用域中,禁止它 | ||
'global-require': 0, | ||
// 允许console,覆盖来自airbnb的规则 | ||
'no-console': 'off', | ||
'no-underscore-dangle': 'off', | ||
'prefer-rest-params': 'off', | ||
// 禁用对象最后一个属性的逗号 | ||
'comma-dangle': ['error', 'never'], | ||
// 可以使用未定义的变量,因为会全局引用uni对象 | ||
'no-undef': 'off', | ||
// 允许lf和crlf文件行尾 | ||
'linebreak-style': 'off', | ||
'jsdoc/check-tag-names': 'off' | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"recommendations": [ | ||
"grasspy.autopunc" | ||
] | ||
} |
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,10 @@ | ||
{ | ||
// 是否在保存文件时自动修复,与运行命令行的--fix意思相同 | ||
"eslint.codeActionsOnSave.mode": "all", | ||
// 是否对本项目启用eslint | ||
"eslint.enable": false, | ||
// 统一所有文件均为lf | ||
// "files.eol": "\n", | ||
// 展示总的todo数量 | ||
"todo-tree.tree.showCountsInTree": true | ||
} |
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,3 +1,3 @@ | ||
const http = uni.$u.http | ||
const { http } = uni.$u | ||
// 获取菜单 | ||
export const fetchMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config) |
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,3 +1,3 @@ | ||
module.exports = { | ||
baseUrl: 'https://api.youzixy.com' | ||
} | ||
baseUrl: 'https://api.youzixy.com' | ||
} |
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,7 +1,7 @@ | ||
export default { | ||
data(){ | ||
return { | ||
} | ||
} | ||
} | ||
data() { | ||
return { | ||
|
||
} | ||
} | ||
} |
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,12 @@ | ||
{ | ||
"scripts": { | ||
"test": "eslint . --fix" | ||
}, | ||
"dependencies": { | ||
"eslint-config-airbnb": "^19.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.2.0", | ||
"eslint-config-egg": "^9.0.0" | ||
} | ||
} |
Oops, something went wrong.