diff --git a/.vscode/extensions.json b/.vscode/extensions.json index c3153a4a..996634d1 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,4 +1,4 @@ { - "recommendations": ["rome.rome"], - "unwantedRecommendations": [] - } \ No newline at end of file + "recommendations": ["biomejs.biome"], + "unwantedRecommendations": [] +} diff --git a/biome.json b/biome.json new file mode 100644 index 00000000..8654632a --- /dev/null +++ b/biome.json @@ -0,0 +1,40 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.0.0/schema.json", + "files": { + "ignore": [ + "**/node_modules", + ".next", + "public", + "dist", + "**/*.json", + "*.yaml", + ".vscode" + ] + }, + "organizeImports": { + "enabled": true + }, + "formatter": { + "enabled": true, + "formatWithErrors": false, + "indentStyle": "space", + "indentWidth": 2, + "lineWidth": 80 + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "correctness": { + "noUnusedVariables": "error" + } + } + }, + "javascript": { + "formatter": { + "quoteStyle": "single", + "trailingComma": "all", + "semicolons": "always" + } + } +} diff --git a/package.json b/package.json index e05e6724..986bb716 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "author": "Parity Technologies ", "license": "Apache 2.0", "scripts": { - "format": "rome format . --write", - "lint": "rome check ./*", + "format": "biome format . --write", + "lint": "biome check ./*", "lint:fix": "pnpm lint --apply-unsafe", "basic-contract-caller": "pnpm --filter basic-contract-caller dev", "contract-terminate": "pnpm --filter contract-terminate dev", @@ -28,11 +28,11 @@ "useink": "^1.13.0" }, "devDependencies": { - "tailwindcss": "^3.3.2", - "classnames": "^2.3.2", + "@biomejs/biome": "^1.3.3", "autoprefixer": "^10.4.14", + "classnames": "^2.3.2", "postcss": "^8.4.24", - "rome": "12.1.3" + "tailwindcss": "^3.3.2" }, "packageManager": "pnpm@8.4.0" } diff --git a/rome.json b/rome.json deleted file mode 100644 index 811fc28a..00000000 --- a/rome.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "$schema": "https://docs.rome.tools/schemas/12.1.3/schema.json", - "files": { - "ignore": [ - "**/node_modules", ".next", "public", "dist", "**/*.json", "*.yaml", ".vscode" - ] - }, - "organizeImports": { - "enabled": true - }, - "formatter": { - "enabled": true, - "formatWithErrors": false, - "indentStyle": "space", - "indentSize": 2, - "lineWidth": 80 - }, - "linter": { - "enabled": true, - "rules": { - "recommended": true, - "correctness": { - "noUnusedVariables": "error" - } - } - }, - "javascript": { - "formatter": { - "quoteStyle": "single", - "trailingComma": "all", - "semicolons": "always" - } - } -}