Skip to content

Commit

Permalink
fix: migrate to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Jan 13, 2025
1 parent 26959c5 commit 3b24946
Show file tree
Hide file tree
Showing 30 changed files with 145 additions and 2,390 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Check
run: |
npm run format
npx lerna run lint --stream --scope @prose-reader/*
npx run lint
# We only build library on this pipe
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check_publish_lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Check
run: |
npm run format
npx lerna run lint --stream --scope @prose-reader/*
npx run lint
# We only build library on this pipe
- name: Build
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Check
- name: Check Typescript
run: |
npm run tsc
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"**/dist": false,
"**/build": true
},
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.biome": "explicit"
},
Expand Down
18 changes: 16 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"files": {
"ignoreUnknown": false,
"ignore": [".nx", "**/.test/**", "**/dist/**"]
"ignore": [".nx", "**/.test/**", "**/dist/**", "CfiHandler.ts"]
},
"formatter": {
"enabled": true,
Expand All @@ -20,7 +20,21 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true
"recommended": true,
"complexity": {
"noForEach": "off"
},
"style": {
"noUnusedTemplateLiteral": "off",
"useImportType": "warn",
"useNumberNamespace": "off"
},
"performance": {
"noAccumulatingSpread": "off"
},
"suspicious": {
"noArrayIndexKey": "off"
}
}
},
"javascript": {
Expand Down
Loading

0 comments on commit 3b24946

Please sign in to comment.