Skip to content

Commit

Permalink
Replacing "rome" by "biome";
Browse files Browse the repository at this point in the history
Fixing biome errors: noUselessElse, noThisInStatic and others;
Adding a package to detect circular dependencies "dpdm", since biome nor rome did this detection;
[WIP] Fix Circular Dependencies - Probably will do this in another task;
  • Loading branch information
Luiz Gustavo Abou Hatem De Liz committed Jan 4, 2024
1 parent 1904a0a commit 294a5e4
Show file tree
Hide file tree
Showing 47 changed files with 854 additions and 619 deletions.
36 changes: 18 additions & 18 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceFolder}/node_modules/jest/bin/jest.js",
"--runInBand",
"--testPathPattern",
"${file}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
"version": "0.2.0",
"configurations": [
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceFolder}/node_modules/jest/bin/jest.js",
"--runInBand",
"--testPathPattern",
"${file}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
10 changes: 9 additions & 1 deletion rome.json → biome.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
"files": {
"ignore": ["./node_modules", "dist", "pnpm-lock.yaml", "./local"]
},
"organizeImports": {
"ignore": ["."]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentSize": 4,
"indentWidth": 4,
"lineWidth": 80
},
"linter": {
Expand All @@ -15,6 +19,10 @@
"correctness": {
"noUnusedVariables": "error"
},
"complexity": {
"noForEach": "off",
"noStaticOnlyClass": "off"
},
"performance": {
"noDelete": "off"
},
Expand Down
2 changes: 1 addition & 1 deletion debug/multicall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ProviderSwapOptions,
VAULT,
} from '../src';
// rome-ignore lint/correctness/noUnusedVariables: <this is a test file>
// biome-ignore lint/correctness/noUnusedVariables: <this is a test file>
import { mainnet, polygonZkEvm } from 'viem/chains';

const chain = polygonZkEvm;
Expand Down
2 changes: 1 addition & 1 deletion examples/initPool.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { parseEther, parseUnits } from 'viem';
import { AddLiquidityKind, ChainId, PoolType } from '../src';
import { InitPoolDataProvider } from '../src/data/providers/initPoolDataProvider';
import { InitPool } from '../src/entities/initPool';
import { InitPoolInput } from '../src/entities/initPool/types';
import { InitPoolDataProvider } from '../src/data/providers/initPoolDataProvider';
import {
forkSetup,
sendTransactionGetBalances,
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"scripts": {
"build": "tsup",
"format": "rome format .",
"lint": "rome check .",
"format": "biome format --write .",
"lint": "dpdm -T ./src && biome check .",
"test": "vitest dev",
"test:ci": "vitest run",
"changeset": "changeset",
Expand All @@ -35,14 +35,15 @@
"viem": "^1.9.3"
},
"devDependencies": {
"@biomejs/biome": "^1.4.1",
"@changesets/cli": "^2.26.1",
"@types/async-retry": "^1.4.4",
"@types/lodash": "^4.14.202",
"@types/node": "^18.11.18",
"@viem/anvil": "^0.0.6",
"dotenv": "^16.0.3",
"dpdm": "^3.14.0",
"pino-pretty": "^10.0.0",
"rome": "12.1.3",
"ts-node": "^10.9.1",
"tsup": "^6.6.0",
"typescript": "^5.0.4",
Expand Down
Loading

0 comments on commit 294a5e4

Please sign in to comment.