Skip to content

Commit e59d0a4

Browse files
authored
feat(lint): eslint to biome (#635)
* drop eslint * remove eslintrc * drop prettier dep * drop vscode extensions * feat: add biome * feat: ci * feat: last biome * fix: missing extensions * more linting * feat(lint): more linting + tabs in vscode config
1 parent 9ddb820 commit e59d0a4

24 files changed

+12786
-12723
lines changed

.cspell.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"version": "0.2",
3-
"language": "en",
4-
"words": [
5-
"degit",
6-
"esbuild",
7-
"gjuchault",
8-
"octocat",
9-
"outdir",
10-
"rmrf",
11-
"ryansonshine",
12-
"socio",
13-
"tsdoc"
14-
],
15-
"flagWords": [],
16-
"ignorePaths": [
17-
"package.json",
18-
"package-lock.json",
19-
"yarn.lock",
20-
"tsconfig.json",
21-
"node_modules/**"
22-
]
2+
"version": "0.2",
3+
"language": "en",
4+
"words": [
5+
"degit",
6+
"esbuild",
7+
"gjuchault",
8+
"octocat",
9+
"outdir",
10+
"rmrf",
11+
"ryansonshine",
12+
"socio",
13+
"tsdoc"
14+
],
15+
"flagWords": [],
16+
"ignorePaths": [
17+
"package.json",
18+
"package-lock.json",
19+
"yarn.lock",
20+
"tsconfig.json",
21+
"node_modules/**"
22+
]
2323
}

.czrc

-3
This file was deleted.

.eslintrc.json

-39
This file was deleted.

.github/workflows/typescript-library-starter.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: npm ci
1919

2020
lint:
21-
name: ⬣ ESLint
21+
name: 🔬 Lint & Format
2222
runs-on: ubuntu-latest
2323
needs: [dependencies]
2424
steps:
@@ -28,7 +28,7 @@ jobs:
2828
node-version-file: package.json
2929
cache: "npm"
3030
- run: npm ci
31-
- name: ⬣ ESLint
31+
- name: 🔬 Lint & Format
3232
run: npm run lint:check
3333

3434
audit:
@@ -44,20 +44,6 @@ jobs:
4444
- name: 🛡️ Audit
4545
run: npm audit --audit-level=high
4646

47-
format:
48-
name: 🔬 Format
49-
runs-on: ubuntu-latest
50-
needs: [dependencies]
51-
steps:
52-
- uses: actions/checkout@v4
53-
- uses: actions/setup-node@v4
54-
with:
55-
node-version-file: package.json
56-
cache: "npm"
57-
- run: npm ci
58-
- name: 🔬 Format
59-
run: npm run format:check
60-
6147
spell:
6248
name: 🈸 Spellcheck
6349
runs-on: ubuntu-latest
@@ -116,7 +102,7 @@ jobs:
116102

117103
build-and-release:
118104
name: 🚀 Build & release
119-
needs: [lint, audit, format, spell, type, test, test-setup]
105+
needs: [lint, audit, spell, type, test, test-setup]
120106
runs-on: ubuntu-latest
121107
steps:
122108
- uses: actions/checkout@v4

.releaserc.json

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
2-
"branches": [
3-
"+([0-9])?(.{+([0-9]),x}).x",
4-
"main",
5-
"master",
6-
"next",
7-
"next-major",
8-
{
9-
"name": "beta",
10-
"prerelease": true
11-
},
12-
{
13-
"name": "alpha",
14-
"prerelease": true
15-
}
16-
],
17-
"repositoryUrl": "https://github.com/gjuchault/typescript-library-starter.git",
18-
"plugins": [
19-
"@semantic-release/commit-analyzer",
20-
"@semantic-release/release-notes-generator",
21-
"@semantic-release/changelog",
22-
"@semantic-release/npm",
23-
[
24-
"@semantic-release/github",
25-
{
26-
"successComment": false,
27-
"failTitle": false
28-
}
29-
]
30-
]
2+
"branches": [
3+
"+([0-9])?(.{+([0-9]),x}).x",
4+
"main",
5+
"master",
6+
"next",
7+
"next-major",
8+
{
9+
"name": "beta",
10+
"prerelease": true
11+
},
12+
{
13+
"name": "alpha",
14+
"prerelease": true
15+
}
16+
],
17+
"repositoryUrl": "https://github.com/gjuchault/typescript-library-starter.git",
18+
"plugins": [
19+
"@semantic-release/commit-analyzer",
20+
"@semantic-release/release-notes-generator",
21+
"@semantic-release/changelog",
22+
"@semantic-release/npm",
23+
[
24+
"@semantic-release/github",
25+
{
26+
"successComment": false,
27+
"failTitle": false
28+
}
29+
]
30+
]
3131
}

.vscode/extensions.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"recommendations": [
3-
"dbaeumer.vscode-eslint",
4-
"esbenp.prettier-vscode",
5-
"eamodio.gitlens",
6-
"streetsidesoftware.code-spell-checker"
7-
]
2+
"recommendations": [
3+
"biomejs.biome",
4+
"eamodio.gitlens",
5+
"streetsidesoftware.code-spell-checker"
6+
]
87
}

.vscode/launch.json

+18-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
2-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3-
"version": "0.2.0",
4-
"configurations": [
5-
{
6-
"type": "node",
7-
"request": "launch",
8-
"name": "Debug Current Test File",
9-
"autoAttachChildProcesses": true,
10-
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
11-
"program": "${relativeFile}",
12-
"runtimeArgs": [
13-
"--import=@nitrogql/esbuild-register",
14-
"--inspect",
15-
"--test"
16-
],
17-
"smartStep": true,
18-
"console": "integratedTerminal"
19-
}
20-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Debug Current Test File",
8+
"autoAttachChildProcesses": true,
9+
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
10+
"program": "${relativeFile}",
11+
"runtimeArgs": [
12+
"--import=@nitrogql/esbuild-register",
13+
"--inspect",
14+
"--test"
15+
],
16+
"smartStep": true,
17+
"console": "integratedTerminal"
18+
}
19+
]
2120
}

.vscode/settings.json

+30-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
11
{
2-
// only use words from .cspell.json
3-
"cSpell.userWords": [],
4-
"cSpell.enabled": true,
5-
"editor.formatOnSave": true,
6-
"typescript.tsdk": "node_modules/typescript/lib",
7-
"typescript.enablePromptUseWorkspaceTsdk": true,
8-
"files.associations": { "*.json": "jsonc" }
2+
"cSpell.userWords": [],
3+
"cSpell.enabled": true,
4+
"editor.formatOnSave": true,
5+
"typescript.tsdk": "node_modules/typescript/lib",
6+
"typescript.enablePromptUseWorkspaceTsdk": true,
7+
"files.associations": { "*.json": "jsonc" },
8+
"editor.indentSize": 2,
9+
"editor.insertSpaces": false,
10+
"editor.detectIndentation": false,
11+
"[javascript]": {
12+
"editor.defaultFormatter": "biomejs.biome"
13+
},
14+
"[javascriptreact]": {
15+
"editor.defaultFormatter": "biomejs.biome"
16+
},
17+
"[typescript]": {
18+
"editor.defaultFormatter": "biomejs.biome"
19+
},
20+
"[typescriptreact]": {
21+
"editor.defaultFormatter": "biomejs.biome"
22+
},
23+
"[json]": {
24+
"editor.defaultFormatter": "biomejs.biome"
25+
},
26+
"[jsonc]": {
27+
"editor.defaultFormatter": "biomejs.biome"
28+
},
29+
"[jsonl]": {
30+
"editor.defaultFormatter": "biomejs.biome"
31+
}
932
}

.vscode/tasks.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"label": "Run Current Test File",
6-
"type": "shell",
7-
"command": "node",
8-
"args": [
9-
"--import=@nitrogql/esbuild-register",
10-
"--test",
11-
"${relativeFile}"
12-
],
13-
"presentation": {
14-
"clear": true,
15-
"showReuseMessage": false,
16-
"echo": false
17-
},
18-
"group": {
19-
"kind": "test",
20-
"isDefault": true
21-
}
22-
}
23-
]
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Run Current Test File",
6+
"type": "shell",
7+
"command": "node",
8+
"args": [
9+
"--import=@nitrogql/esbuild-register",
10+
"--test",
11+
"${relativeFile}"
12+
],
13+
"presentation": {
14+
"clear": true,
15+
"showReuseMessage": false,
16+
"echo": false
17+
},
18+
"group": {
19+
"kind": "test",
20+
"isDefault": true
21+
}
22+
}
23+
]
2424
}

CODE_OF_CONDUCT.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

0 commit comments

Comments
 (0)