chore: replace `rome` with `biome` since it has been deprecated

This commit is contained in:
GreasySlug 2024-05-22 00:04:58 +09:00
parent a59528ba7c
commit c8863ca77c
7 changed files with 606 additions and 592 deletions

View File

@ -2,5 +2,9 @@
"[python]": { "[python]": {
"editor.defaultFormatter": "ms-python.black-formatter" "editor.defaultFormatter": "ms-python.black-formatter"
}, },
"python.formatting.provider": "none" "python.formatting.provider": "none",
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome"
}
} }

View File

@ -1,3 +1,3 @@
{ {
"recommendations": ["amodio.tsl-problem-matcher", "rome.rome"] "recommendations": ["amodio.tsl-problem-matcher", "biomejs.biome"]
} }

View File

@ -9,4 +9,4 @@ src/**
**/*.ts **/*.ts
.gitignore .gitignore
webpack.config.js webpack.config.js
rome.json biome.json

31
extension/biome.json Normal file
View File

@ -0,0 +1,31 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"lineWidth": 120,
"ignore": ["dist/**", "out/**", ".vscode-test/**", ".vscode/**"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"ignore": ["dist/**", "out/**", ".vscode-test/**", ".vscode/**"]
},
"javascript": {
"formatter": {
"indentStyle": "tab",
"lineWidth": 120
}
},
"json": {
"formatter": {
"indentStyle": "tab",
"lineWidth": 120
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -7,19 +7,14 @@
"engines": { "engines": {
"vscode": "^1.70.0" "vscode": "^1.70.0"
}, },
"categories": [ "categories": ["Programming Languages", "Linters"],
"Programming Languages",
"Linters"
],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/mtshiba/pylyzer.git" "url": "https://github.com/mtshiba/pylyzer.git"
}, },
"icon": "images/pylyzer-logo.png", "icon": "images/pylyzer-logo.png",
"main": "./dist/extension.js", "main": "./dist/extension.js",
"activationEvents": [ "activationEvents": ["onLanguage:python"],
"onLanguage:python"
],
"contributes": { "contributes": {
"commands": [ "commands": [
{ {
@ -31,13 +26,8 @@
"languages": [ "languages": [
{ {
"id": "python", "id": "python",
"aliases": [ "aliases": ["Python", "python"],
"Python", "extensions": [".py"]
"python"
],
"extensions": [
".py"
]
} }
], ],
"configuration": { "configuration": {
@ -74,16 +64,16 @@
"pretest": "npm run compile-tests && npm run compile && npm run lint", "pretest": "npm run compile-tests && npm run compile && npm run lint",
"test": "node ./out/test/runTest.js", "test": "node ./out/test/runTest.js",
"type-check": "tsc --noEmit", "type-check": "tsc --noEmit",
"lint": "rome check .", "lint": "biome lint .",
"format": "rome format .", "format": "biome format .",
"lint:fix": "rome check --apply .", "lint:fix-suggested": "biome check --apply .",
"lint:fix-suggested": "rome check --apply-suggested .", "format:fix": "biome format --write ."
"format:fix": "rome format --write ."
}, },
"dependencies": { "dependencies": {
"vscode-languageclient": "^8.0.2" "vscode-languageclient": "^8.0.2"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^1.7.3",
"@types/glob": "^8.0.0", "@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1", "@types/mocha": "^10.0.1",
"@types/node": "18.x", "@types/node": "18.x",
@ -91,13 +81,12 @@
"@vscode/test-electron": "^2.2.1", "@vscode/test-electron": "^2.2.1",
"glob": "^8.0.3", "glob": "^8.0.3",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"rome": "^10.0.1",
"ts-loader": "^9.4.2", "ts-loader": "^9.4.2",
"typescript": "^4.9.4", "typescript": "^4.9.4",
"webpack": "^5.75.0", "webpack": "^5.75.0",
"webpack-cli": "^5.0.1" "webpack-cli": "^5.0.1"
}, },
"lint-staged": { "lint-staged": {
"*": "rome format --write" "*": "biome format --write"
} }
} }

View File

@ -1,11 +0,0 @@
{
"linter": {
"rules": {
"recommended": true
},
"ignore": ["/dist/", "/out/", "/.vscode-test/"]
},
"formatter": {
"ignore": ["/dist/", "/out/", "/.vscode-test/"]
}
}