Skip to content

Commit

Permalink
refactor: migrate to Biome from Prettier and ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Oct 25, 2024
1 parent 4d3fe4f commit 4bd9aa4
Show file tree
Hide file tree
Showing 25 changed files with 1,122 additions and 2,557 deletions.
92 changes: 46 additions & 46 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"projectName": "PackSquash-action",
"projectOwner": "ComunidadAylas",
"repoType": "github",
"repoHost": "https://github.com",
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"commitConvention": "none",
"contributors": [
{
"login": "sya-ri",
"name": "sya-ri",
"avatar_url": "https://avatars.githubusercontent.com/u/34268371?v=4",
"profile": "https://github.com/sya-ri",
"contributions": ["bug", "code", "content", "data", "doc", "example", "ideas", "infra", "question", "research"]
},
{
"login": "AlexTMjugador",
"name": "Alejandro González",
"avatar_url": "https://avatars.githubusercontent.com/u/7822554?v=4",
"profile": "https://github.com/AlexTMjugador",
"contributions": ["code", "content", "doc", "ideas", "infra", "maintenance", "question", "research", "review"]
},
{
"login": "xMikux",
"name": "Miku",
"avatar_url": "https://avatars.githubusercontent.com/u/26039249?v=4",
"profile": "https://github.com/xMikux",
"contributions": ["bug", "ideas"]
},
{
"login": "osfanbuff63",
"name": "osfanbuff63",
"avatar_url": "https://avatars.githubusercontent.com/u/91388253?v=4",
"profile": "https://osfanbuff63.github.io/",
"contributions": ["ideas", "example"]
},
{
"login": "alumina6767",
"name": "alumina6767",
"avatar_url": "https://avatars.githubusercontent.com/u/85728971?v=4",
"profile": "https://alumina6767.net/",
"contributions": ["blog", "ideas"]
}
],
"contributorsPerLine": 7
"projectName": "PackSquash-action",
"projectOwner": "ComunidadAylas",
"repoType": "github",
"repoHost": "https://github.com",
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"commitConvention": "none",
"contributors": [
{
"login": "sya-ri",
"name": "sya-ri",
"avatar_url": "https://avatars.githubusercontent.com/u/34268371?v=4",
"profile": "https://github.com/sya-ri",
"contributions": ["bug", "code", "content", "data", "doc", "example", "ideas", "infra", "question", "research"]
},
{
"login": "AlexTMjugador",
"name": "Alejandro González",
"avatar_url": "https://avatars.githubusercontent.com/u/7822554?v=4",
"profile": "https://github.com/AlexTMjugador",
"contributions": ["code", "content", "doc", "ideas", "infra", "maintenance", "question", "research", "review"]
},
{
"login": "xMikux",
"name": "Miku",
"avatar_url": "https://avatars.githubusercontent.com/u/26039249?v=4",
"profile": "https://github.com/xMikux",
"contributions": ["bug", "ideas"]
},
{
"login": "osfanbuff63",
"name": "osfanbuff63",
"avatar_url": "https://avatars.githubusercontent.com/u/91388253?v=4",
"profile": "https://osfanbuff63.github.io/",
"contributions": ["ideas", "example"]
},
{
"login": "alumina6767",
"name": "alumina6767",
"avatar_url": "https://avatars.githubusercontent.com/u/85728971?v=4",
"profile": "https://alumina6767.net/",
"contributions": ["blog", "ideas"]
}
],
"contributorsPerLine": 7
}
4 changes: 2 additions & 2 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
- name: Install npm development dependencies
run: npm ci
- name: Check format
run: npm run format-check
- name: Run ESLint
run: npm run format
- name: Run linter
run: npm run lint
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

18 changes: 0 additions & 18 deletions .prettierrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Versioning](https://semver.org/spec/v2.0.0.html).
better maintained.
- This should fix a spurious TOML parse error for TOML files with comments and
CRLF line endings.
- Migrated formatting and linting development tools from Prettier and ESLint to
[Biome](https://biomejs.dev/), which is significantly faster and simpler to
use and set up.

### Fixed

Expand Down
27 changes: 27 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": { "ignoreUnknown": false, "ignore": [] },
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"lineWidth": 120,
"ignore": ["dist"]
},
"organizeImports": { "enabled": true, "ignore": ["dist"] },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": { "noParameterAssign": "off" },
"suspicious": { "noAssignInExpressions": "off" }
},
"ignore": ["dist"]
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded"
}
}
}
2 changes: 1 addition & 1 deletion dist/cleanup_working_directory/index.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/main/index.js

Large diffs are not rendered by default.

35 changes: 0 additions & 35 deletions eslint.config.mjs

This file was deleted.

Loading

0 comments on commit 4bd9aa4

Please sign in to comment.