Skip to content

Commit

Permalink
refactor: ♻️ Update repo to use biome (#844)
Browse files Browse the repository at this point in the history
Co-authored-by: Mario Sánchez García <[email protected]>
Co-authored-by: girazoki <[email protected]>
  • Loading branch information
3 people authored Feb 11, 2025
1 parent f495557 commit b282f04
Show file tree
Hide file tree
Showing 284 changed files with 19,589 additions and 12,271 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ jobs:
cache: "pnpm"
- name: "Formatting check"
run: |
cd test
pnpm install
pnpm run fmt
Expand All @@ -220,7 +219,6 @@ jobs:
cache: "pnpm"
- name: "Linting check"
run: |
cd test
pnpm install
pnpm run lint
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@

# Temporary files
**/tmp
raw.json
raw.json

# IDE files
**/.zed/
**/.vscode/
**/.idea/
.cursor
26 changes: 0 additions & 26 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

63 changes: 63 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false,
},
"files": {
"ignoreUnknown": false,
"ignore": [
"**/html/**",
"**/build/**",
"**/target/**",
"**/scripts/tmp/**",
"**/node_modules/**",
"**/.yarn/**",
"test/tsconfig.json",
"tmp",
"**/contracts/out",
"**/tmp/",
"**/html/"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 120,
"indentWidth": 4,
},
"organizeImports": {
"enabled": true,
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noAsyncPromiseExecutor": "off",
"noExplicitAny": "off",
"noShadowRestrictedNames": "off",
},
"complexity": {
"noForEach": "off",
},
},
"ignore": [],
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "es5",
},
},
"json": {
"formatter": {
"enabled": false,
},
"linter": {
"enabled": false,
},
},
}
66 changes: 35 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,55 @@
"scripts": {
"clean-all": "rm -rf node_modules && pnpm -r clean",
"build": "pnpm -r build",
"fmt": "pnpm -r fmt",
"fmt:fix": "pnpm -r fmt:fix",
"lint": "pnpm -r lint",
"lint:fix": "pnpm -r lint:fix",
"postinstall": "pnpm build"
},
"dependencies": {
"@polkadot/api": "15.4.1",
"@polkadot/api-augment": "15.4.1",
"@polkadot/api-base": "15.4.1",
"@polkadot/api-derive": "15.4.1",
"@polkadot/rpc-augment": "15.4.1",
"@polkadot/rpc-core": "15.4.1",
"@polkadot/rpc-provider": "15.4.1",
"@polkadot/typegen": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-augment": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/types-create": "15.4.1",
"@polkadot/types-known": "15.4.1",
"@polkadot/types-support": "15.4.1",
"@polkadot/api": "15.5.1",
"@polkadot/api-base": "15.5.1",
"@polkadot/api-derive": "15.5.1",
"@polkadot/keyring": "13.3.1",
"@polkadot/rpc-augment": "15.5.1",
"@polkadot/rpc-core": "15.5.1",
"@polkadot/rpc-provider": "15.5.1",
"@polkadot/typegen": "15.5.1",
"@polkadot/types": "15.5.1",
"@polkadot/types-augment": "15.5.1",
"@polkadot/types-codec": "15.5.1",
"@polkadot/types-create": "15.5.1",
"@polkadot/types-known": "15.5.1",
"@polkadot/types-support": "15.5.1",
"@polkadot/util": "13.3.1",
"@polkadot/util-crypto": "13.3.1"

},
"devDependencies": {
"@types/node": "22.10.5"
"@biomejs/biome": "1.9.4",
"@types/node": "22.12.0",
"tsx": "4.19.2",
"typescript": "5.5.4"
},
"pnpm": {
"overrides": {
"@polkadot/api": "15.4.1",
"@polkadot/api-augment": "15.4.1",
"@polkadot/api-base": "15.4.1",
"@polkadot/api-derive": "15.4.1",
"@polkadot/rpc-augment": "15.4.1",
"@polkadot/rpc-core": "15.4.1",
"@polkadot/rpc-provider": "15.4.1",
"@polkadot/typegen": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-augment": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/types-create": "15.4.1",
"@polkadot/types-known": "15.4.1",
"@polkadot/types-support": "15.4.1",
"@polkadot/api": "15.5.1",
"@polkadot/api-base": "15.5.1",
"@polkadot/api-derive": "15.5.1",
"@polkadot/rpc-augment": "15.5.1",
"@polkadot/rpc-core": "15.5.1",
"@polkadot/rpc-provider": "15.5.1",
"@polkadot/typegen": "15.5.1",
"@polkadot/types": "15.5.1",
"@polkadot/types-augment": "15.5.1",
"@polkadot/types-codec": "15.5.1",
"@polkadot/types-create": "15.5.1",
"@polkadot/types-known": "15.5.1",
"@polkadot/types-support": "15.5.1",
"@polkadot/keyring": "13.3.1",
"@polkadot/util": "13.3.1",
"@polkadot/util-crypto": "13.3.1",
"inquirer": "9.2.16"
"typescript": "5.5.4"
}
},
"keywords": [],
Expand Down
Loading

0 comments on commit b282f04

Please sign in to comment.