Skip to content

Commit d48fb19

Browse files
💄 style: Update lint
1 parent 47004c5 commit d48fb19

18 files changed

+403
-144
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ insert_final_newline = true
1313
trim_trailing_whitespace = false
1414

1515
[Makefile]
16-
indent_style = tab
16+
indent_style = tab

.eslintignore

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
1-
/lambda/
2-
/scripts
3-
/config
4-
.history
5-
public
6-
dist
1+
# Eslintignore for LobeHub
2+
################################################################
3+
4+
# dependencies
5+
node_modules
6+
7+
# ci
8+
coverage
9+
.coverage
10+
11+
# test
12+
jest*
13+
_test_
14+
__test__
15+
16+
# umi
717
.umi
8-
mock
18+
.umi-production
19+
.umi-test
20+
.dumi/tmp*
21+
!.dumirc.ts
22+
23+
# production
24+
dist
25+
es
26+
lib
27+
logs
28+
29+
# misc
30+
# add other ignore file below

.eslintrc.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
const config = require('@lobehub/lint').eslint;
2-
3-
module.exports = config;
1+
module.exports = require('@lobehub/lint').eslint;
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: '🐛 反馈缺陷 Bug Report'
2+
description: '反馈一个问题缺陷 | Report an bug'
3+
title: '[Bug] '
4+
labels: '🐛 Bug'
5+
body:
6+
- type: dropdown
7+
attributes:
8+
label: '💻 系统环境 | Operating System'
9+
options:
10+
- Windows
11+
- macOS
12+
- Ubuntu
13+
- Other Linux
14+
- Other
15+
validations:
16+
required: true
17+
- type: dropdown
18+
attributes:
19+
label: '🌐 浏览器 | Browser'
20+
options:
21+
- Chrome
22+
- Edge
23+
- Safari
24+
- Firefox
25+
- Other
26+
validations:
27+
required: true
28+
- type: textarea
29+
attributes:
30+
label: '🐛 问题描述 | Bug Description'
31+
description: A clear and concise description of the bug.
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: '🚦 期望结果 | Expected Behavior'
37+
description: A clear and concise description of what you expected to happen.
38+
- type: textarea
39+
attributes:
40+
label: '📷 复现步骤 | Recurrence Steps'
41+
description: A clear and concise description of how to recurrence.
42+
- type: textarea
43+
attributes:
44+
label: '📝 补充信息 | Additional Information'
45+
description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: '🌠 功能需求 Feature Request'
2+
description: '需求或建议 | Suggest an idea'
3+
title: '[Request] '
4+
labels: '🌠 Feature Request'
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: '🥰 需求描述 | Feature Description'
9+
description: Please add a clear and concise description of the problem you are seeking to solve with this feature request.
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: '🧐 解决方案 | Proposed Solution'
15+
description: Describe the solution you'd like in a clear and concise manner.
16+
validations:
17+
required: true
18+
- type: textarea
19+
attributes:
20+
label: '📝 补充信息 | Additional Information'
21+
description: Add any other context about the problem here.

.github/ISSUE_TEMPLATE/3_question.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: '😇 疑问或帮助 Help Wanted'
2+
description: '疑问或需要帮助 | Need help'
3+
title: '[Question] '
4+
labels: '😇 Help Wanted'
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: '🧐 问题描述 | Proposed Solution'
9+
description: A clear and concise description of the proplem.
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: '📝 补充信息 | Additional Information'
15+
description: Add any other context about the problem here.

.github/ISSUE_TEMPLATE/other.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: '📝 其他 Other'
3+
about: '其他问题 | Other issues'
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#### 💻 变更类型 | Change Type
2+
3+
<!-- For change type, change [ ] to [x]. -->
4+
5+
- [ ] ✨ feat
6+
- [ ] 🐛 fix
7+
- [ ] 💄 style
8+
- [ ] 🔨 chore
9+
- [ ] 📝 docs
10+
11+
#### 🔀 变更说明 | Description of Change
12+
13+
<!-- Thank you for your Pull Request. Please provide a description above. -->
14+
15+
#### 📝 补充信息 | Additional Information
16+
17+
<!-- Add any other context about the Pull Request here. -->
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Contributor Helper
2+
3+
on:
4+
schedule: [{ cron: '0 18 * * *' }]
5+
workflow_dispatch:
6+
jobs:
7+
contributor:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
12+
- uses: actions-cool/contributor-helper@v1
13+
with:
14+
token: ${{ secrets.GH_TOKEN }}
15+
style: 'simple'
16+
update-files: 'README.md'
17+
update-places: '<!-- CONTRIBUTION GROUP -->/<!-- CONTRIBUTION END -->'
18+
19+
- name: Commit and push if changed
20+
run: |-
21+
git diff
22+
git config --global user.name "lobehubbot"
23+
git config --global user.email "[email protected]"
24+
git pull
25+
git add -A
26+
git commit -m "🤖 docs: Auto update contributors" || exit 0
27+
git push
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Issue Check Inactive
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 */15 * *'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
issue-check-inactive:
12+
permissions:
13+
issues: write # for actions-cool/issues-helper to update issues
14+
pull-requests: write # for actions-cool/issues-helper to update PRs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: check-inactive
18+
uses: actions-cool/issues-helper@v3
19+
with:
20+
actions: 'check-inactive'
21+
inactive-label: 'Inactive'
22+
inactive-day: 30
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Issue Close Require
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
issue-close-require:
12+
permissions:
13+
issues: write # for actions-cool/issues-helper to update issues
14+
pull-requests: write # for actions-cool/issues-helper to update PRs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: need reproduce
18+
uses: actions-cool/issues-helper@v3
19+
with:
20+
actions: 'close-issues'
21+
labels: '✅ Fixed'
22+
inactive-day: 3
23+
body: |
24+
Since the issue was labeled with `✅ Fixed`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
25+
26+
由于该 issue 被标记为已修复,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
27+
- name: need reproduce
28+
uses: actions-cool/issues-helper@v3
29+
with:
30+
actions: 'close-issues'
31+
labels: '🤔 Need Reproduce'
32+
inactive-day: 3
33+
body: |
34+
Since the issue was labeled with `🤔 Need Reproduce`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
35+
36+
由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
37+
- name: need reproduce
38+
uses: actions-cool/issues-helper@v3
39+
with:
40+
actions: 'close-issues'
41+
labels: "🙅🏻‍♀️ WON'T DO"
42+
inactive-day: 3
43+
body: |
44+
Since the issue was labeled with `🙅🏻‍♀️ WON'T DO`, and no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
45+
46+
由于该 issue 被标记为暂不处理,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Issue Remove Inactive
2+
3+
on:
4+
issues:
5+
types: [edited]
6+
issue_comment:
7+
types: [created, edited]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
issue-remove-inactive:
14+
permissions:
15+
issues: write # for actions-cool/issues-helper to update issues
16+
pull-requests: write # for actions-cool/issues-helper to update PRs
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: remove inactive
20+
if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login
21+
uses: actions-cool/issues-helper@v3
22+
with:
23+
actions: 'remove-labels'
24+
issue-number: ${{ github.event.issue.number }}
25+
labels: 'Inactive'

.gitignore

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,49 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1+
# Gitignore for LobeHub
2+
################################################################
23

3-
# dependencies
4-
**/node_modules
5-
# roadhog-api-doc ignore
6-
/src/utils/request-temp.js
7-
_roadhog-api-doc
8-
9-
# production
10-
/dist
11-
/.vscode
12-
13-
# misc
4+
# general
145
.DS_Store
15-
npm-debug.log*
16-
yarn-error.log
17-
18-
/coverage
196
.idea
20-
package-lock.json
21-
*bak
227
.vscode
23-
24-
# visual studio code
258
.history
9+
.temp
10+
.env.local
11+
venv
12+
temp
13+
tmp
14+
15+
# dependencies
16+
node_modules
2617
*.log
27-
functions/*
28-
.temp/**
18+
*.lock
19+
package-lock.json
20+
21+
# ci
22+
coverage
23+
.coverage
24+
.eslintcache
25+
.stylelintcache
26+
27+
# production
28+
dist
29+
es
30+
lib
31+
logs
32+
test-output
2933

3034
# umi
3135
.umi
3236
.umi-production
37+
.umi-test
38+
.dumi/tmp*
3339

34-
# screenshot
35-
screenshot
36-
.firebase
37-
.eslintcache
40+
# husky
41+
.husky/prepare-commit-msg
3842

43+
# misc
44+
# add other ignore file below
3945
build
40-
41-
.env
42-
4346
.vercel
47+
public/dist
48+
docs-dist
4449
.next

0 commit comments

Comments
 (0)