Skip to content

Commit 3d7e8e1

Browse files
committed
chore: switch to biome
1 parent 5e89bc4 commit 3d7e8e1

File tree

8 files changed

+159
-1850
lines changed

8 files changed

+159
-1850
lines changed

.eslintignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 116 deletions
This file was deleted.

.github/workflows/lint-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66

77
jobs:
8-
eslint:
8+
lint:
99
name: Run lint check
1010
runs-on: ubuntu-latest
1111

.prettierrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

biome.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"files": {
3+
"ignore": ["src/polyfills/**"]
4+
},
5+
"linter": {
6+
"rules": {
7+
"complexity": {
8+
"noBannedTypes": "off",
9+
"noForEach": "off"
10+
},
11+
"performance": {
12+
"noAccumulatingSpread": "off"
13+
},
14+
"suspicious": {
15+
"noExplicitAny": "off",
16+
"noArrayIndexKey": "off"
17+
},
18+
"style": {
19+
"noNonNullAssertion": "off",
20+
"noParameterAssign": "off",
21+
"useImportType": "off",
22+
"useNodejsImportProtocol": "off"
23+
}
24+
}
25+
},
26+
"javascript": {
27+
"formatter": {
28+
"bracketSameLine": true,
29+
"quoteStyle": "single"
30+
}
31+
},
32+
"organizeImports": {
33+
"enabled": false
34+
}
35+
}

nano-staged.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module.exports = {
2-
'src/**/*.{ts,tsx}': ['prettier --write', 'eslint --ext .ts,.tsx'],
3-
'*.{yml,md}': ['prettier --write'],
2+
"src/**/*.{ts,tsx}": ["biome check"],
43
};

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
"e2e:test:ios-release": "detox test --configuration ios.release",
1818
"e2e:test:android-debug": "DEV=true detox test --configuration android.debug",
1919
"e2e:test:android-release": "detox test --configuration android.release",
20-
"lint:check": "eslint . --ext .js,.jsx,.ts,.tsx",
21-
"lint:fix": "eslint . --fix --ext .js,.jsx,.ts,.tsx",
20+
"format:check": "biome format ./src/**/*.{js,jsx,ts,tsx}",
21+
"format:fix": "biome format --write ./src/**/*.{js,jsx,ts,tsx}",
22+
"lint:check": "biome lint ./src/**/*.{js,jsx,ts,tsx}",
23+
"lint:fix": "biome lint --write ./src/**/*.{js,jsx,ts,tsx}",
2224
"tsc:check": "tsc -p tsconfig.json --noEmit",
2325
"clean": "yarn clean:rn && yarn clean:ios && yarn clean:android && yarn start --reset-cache",
2426
"clean:rn": "watchman watch-del-all && npx del-cli node_modules && yarn && npx del-cli /tmp/metro-*",
@@ -129,12 +131,12 @@
129131
"@babel/plugin-proposal-async-generator-functions": "^7.20.7",
130132
"@babel/preset-env": "^7.24.4",
131133
"@babel/runtime": "^7.24.4",
134+
"@biomejs/biome": "^1.9.4",
132135
"@commitlint/cli": "^19.2.2",
133136
"@commitlint/config-conventional": "^19.2.2",
134137
"@ptsecurity/commitlint-config": "^2.0.0",
135138
"@radar/lnrpc": "^0.11.1-beta.1",
136139
"@react-native/babel-preset": "^0.75.2",
137-
"@react-native/eslint-config": "^0.75.2",
138140
"@react-native/metro-config": "^0.75.2",
139141
"@react-native/typescript-config": "^0.75.2",
140142
"@types/b4a": "^1.6.4",
@@ -152,15 +154,12 @@
152154
"bitcoin-json-rpc": "^1.3.3",
153155
"detox": "20.23.1",
154156
"electrum-client": "BlueWallet/rn-electrum-client#47acb51149e97fab249c3f8a314f708dbee4fb6e",
155-
"eslint": "^8.57.0",
156-
"eslint-plugin-ft-flow": "^3.0.7",
157157
"husky": "^9.1.5",
158158
"jest": "^29.7.0",
159159
"lnurl": "0.26.2",
160160
"nano-staged": "^0.8.0",
161161
"node-fetch": "^2.6.7",
162162
"patch-package": "^8.0.0",
163-
"prettier": "^2.8.8",
164163
"react-native-bundle-visualizer": "^3.1.3",
165164
"react-native-skia-stub": "0.0.1",
166165
"react-native-svg-transformer": "^1.3.0",

0 commit comments

Comments
 (0)