Skip to content

Commit bbe8f3d

Browse files
committed
chore: add eslint and prettier
1 parent 866d366 commit bbe8f3d

31 files changed

+4540
-440
lines changed

.github/labels.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,87 @@
11
- name: feature
22
description: Includes new features
3-
color: 'ffff00'
3+
color: ffff00
44
- name: bug
55
description: Includes new features
6-
color: 'ee0701'
6+
color: ee0701
77
- name: improvement
88
description: Includes backwards-compatible fixes
9-
color: '1d76db'
9+
color: 1d76db
1010
- name: breaking
1111
description: Includes backwards-incompatible fixes
12-
color: 'b60205'
12+
color: b60205
1313
- name: refactoring
1414
description: A code change that neither fixes a bug nor adds a feature
15-
color: 'fbca04'
15+
color: fbca04
1616
- name: security
1717
description: Security fixes
18-
color: 'b60205'
18+
color: b60205
1919
- name: documentation
2020
description: Includes documetation fixes
2121
color: '5319e7'
2222
- name: example
2323
description: Includes example and demo code fixes
24-
color: 'db0875'
24+
color: db0875
2525
- name: deprecated
2626
description: Includes deprecate fixes
27-
color: 'f7ffa8'
27+
color: f7ffa8
2828
- name: performance
2929
description: Includes performance fixes
30-
color: 'cc317c'
30+
color: cc317c
3131
- name: i18n
3232
description: Includes internationalization fixes
33-
color: 'ffd412'
33+
color: ffd412
3434
- name: a11y
3535
description: Inlucdes accessibility fixes
36-
color: '0000ff'
36+
color: 0000ff
3737
- name: dependency
3838
description: Includes dependency fixes
39-
color: 'ffbce7'
39+
color: ffbce7
4040
- name: todo
4141
description: todo tasks
42-
color: 'c2e0c6'
42+
color: c2e0c6
4343
- name: duplicate
4444
description: This issue or Pull Request already exists
45-
color: 'ededed'
45+
color: ededed
4646
- name: help wanted
4747
description: Extra attention is needed
48-
color: 'e99695'
48+
color: e99695
4949
- name: good first issue
5050
description: Good for newcomers
51-
color: '7057ff'
51+
color: 7057ff
5252
- name: 'status: abandoned'
5353
description: The issue or Pull Request is wontfix
5454
color: '000000'
5555
- name: 'status: blocked'
5656
description: Progress on the issue is Blocked
57-
color: 'ee0701'
57+
color: ee0701
5858
- name: 'status: in progress'
5959
description: Work in Progress
60-
color: 'cccccc'
60+
color: cccccc
6161
- name: 'status: proposal'
6262
description: Request for comments
63-
color: 'd4c5f9'
63+
color: d4c5f9
6464
- name: 'status: pull request welcome'
6565
description: Welcome to Pull Request
6666
color: '2E7733'
6767
- name: 'status: review needed'
6868
description: Request for review
69-
color: 'fbca04'
69+
color: fbca04
7070
- name: 'status: need more repro codes or info'
7171
description: Lacks enough info to make progress
72-
color: 'F9C90A'
73-
- name: '🧹 p1-chore'
72+
color: F9C90A
73+
- name: 🧹 p1-chore
7474
description: 'Priority 1: no change in change code behavior'
7575
color: '#FDDFD7'
76-
- name: '🍰 p2-nice-to-have'
76+
- name: 🍰 p2-nice-to-have
7777
description: "Priority 2: nothing is broken but it's worth addressing"
7878
color: '#0e8a16'
79-
- name: '🔨 p3-minor-bug'
79+
- name: 🔨 p3-minor-bug
8080
description: 'Priority 3: a bug in an edge case that only affects very specific usage'
8181
color: '#fbca04'
82-
- name: '❗ p4-important'
82+
- name: ❗ p4-important
8383
description: 'Priority 4: bugs that violate documented behavior, or significantly impact perf'
8484
color: '#d93f0b'
85-
- name: '🔥 p5-urgent'
85+
- name: 🔥 p5-urgent
8686
description: 'Priority 5: build-breaking bugs that affect most users and should be fixed ASAP'
8787
color: '#ee0701'

.github/workflows/github-label-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
paths:
88
- .github/labels.yml
99
- .github/workflows/github-label-sync.yml
10-
workflow_dispatch:
10+
workflow_dispatch: # eslint-disable-line yml/no-empty-mapping-value -- NOTE(kazupon): mamulally dispatch workflow
1111

1212
jobs:
1313
sync:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
id: split
4141
with:
4242
msg: ${{ github.ref }}
43-
separator: '/'
43+
separator: /
4444

4545
- name: Create Github Release
4646
run: gh release create ${{ steps.split.outputs._2 }} --generate-notes

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ node_modules
33
coverage
44
.DS_Store
55
.idea
6+
.eslintcache
67

78
*.log
89
*.swp
910
*.tgz
1011
*.zip
1112
*~
12-
.env
13+
.env

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

.vscode/settings.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
{
2-
"deno.enable": false,
3-
"deno.lint": true,
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
43
"editor.formatOnSave": true,
5-
"editor.defaultFormatter": "denoland.vscode-deno"
4+
"editor.formatOnPaste": true,
5+
"editor.formatOnType": true,
6+
"editor.codeActionsOnSave": {
7+
"source.organizeImports": "always",
8+
"source.fixAll.eslint": "explicit"
9+
},
10+
"eslint.useFlatConfig": true,
11+
"eslint.validate": ["javascript", "typescript"],
12+
"files.associations": {
13+
"*.json": "jsonc"
14+
},
15+
"typescript.referencesCodeLens.enabled": true,
16+
"typescript.tsdk": "node_modules/typescript/lib",
17+
"deno.enable": false,
18+
"typescript.experimental.useTsgo": false
619
}

0 commit comments

Comments
 (0)