Skip to content

Commit

Permalink
Merge pull request #172 from kitsuyui/migrate-to-biome
Browse files Browse the repository at this point in the history
Migrate to biome
  • Loading branch information
kitsuyui authored Jan 30, 2024
2 parents d3d2c6e + 331473a commit 6cfbf3a
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 65 deletions.
48 changes: 0 additions & 48 deletions .eslintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
- name: Lint
run: |
pnpm lint
pnpm lint:type
pnpm lint:format
- name: Build
run: pnpm build
Expand Down
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

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

This file was deleted.

48 changes: 48 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.1/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"lineWidth": 80
},
"javascript": {
"formatter": {
"enabled": true,
"indentWidth": 2,
"indentStyle": "space",
"quoteStyle": "single",
"semicolons": "asNeeded",
"jsxQuoteStyle": "double",
"trailingComma": "es5",
"lineWidth": 80
}
},
"json": {
"formatter": {
"enabled": true,
"indentWidth": 2,
"indentStyle": "space",
"lineWidth": 80
}
},
"files": {
"ignore": [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/coverage/**",
"**/*.md",
"**/*.yml",
"pnpm-lock.yaml"
]
}
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
"dev:lib": "tsup src/index.ts --dts --format cjs,esm --minify --clean --sourcemap --watch --onSuccess 'node dist/index.js'",
"dev:bin": "tsup src/main.ts --dts --format cjs,esm --minify --clean --sourcemap --watch --onSuccess 'node dist/main.js'",
"test": "jest --coverage",
"lint": "eslint --ext .ts src",
"lint:type": "tsc --noEmit --project .",
"lint:format": "prettier --check .",
"format": "prettier --write .",
"lint": "biome lint .",
"format": "biome lint --apply .",
"typedoc": "typedoc"
},
"bin": {
Expand All @@ -42,6 +40,7 @@
"package.json"
],
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@jest/globals": "^29.7.0",
"@swc/core": "^1.3.95",
"@swc/jest": "^0.2.29",
Expand Down
91 changes: 91 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6cfbf3a

Please sign in to comment.