mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-07-07 17:45:00 +00:00
chore: replace rome
with biome
since it has been deprecated
This commit is contained in:
parent
a59528ba7c
commit
c8863ca77c
7 changed files with 606 additions and 592 deletions
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
|
@ -2,5 +2,9 @@
|
|||
"[python]": {
|
||||
"editor.defaultFormatter": "ms-python.black-formatter"
|
||||
},
|
||||
"python.formatting.provider": "none"
|
||||
"python.formatting.provider": "none",
|
||||
"[typescript]": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "biomejs.biome"
|
||||
}
|
||||
}
|
2
extension/.vscode/extensions.json
vendored
2
extension/.vscode/extensions.json
vendored
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"recommendations": ["amodio.tsl-problem-matcher", "rome.rome"]
|
||||
"recommendations": ["amodio.tsl-problem-matcher", "biomejs.biome"]
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ src/**
|
|||
**/*.ts
|
||||
.gitignore
|
||||
webpack.config.js
|
||||
rome.json
|
||||
biome.json
|
||||
|
|
31
extension/biome.json
Normal file
31
extension/biome.json
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
955
extension/package-lock.json
generated
955
extension/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,103 +1,92 @@
|
|||
{
|
||||
"name": "pylyzer",
|
||||
"displayName": "pylyzer",
|
||||
"description": "A fast Python static code analyzer & language server for VSCode",
|
||||
"publisher": "pylyzer",
|
||||
"version": "0.1.7",
|
||||
"engines": {
|
||||
"vscode": "^1.70.0"
|
||||
},
|
||||
"categories": [
|
||||
"Programming Languages",
|
||||
"Linters"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mtshiba/pylyzer.git"
|
||||
},
|
||||
"icon": "images/pylyzer-logo.png",
|
||||
"main": "./dist/extension.js",
|
||||
"activationEvents": [
|
||||
"onLanguage:python"
|
||||
],
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"title": "Restart the pylyzer language server",
|
||||
"category": "python",
|
||||
"command": "pylyzer.restartLanguageServer"
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
{
|
||||
"id": "python",
|
||||
"aliases": [
|
||||
"Python",
|
||||
"python"
|
||||
],
|
||||
"extensions": [
|
||||
".py"
|
||||
]
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"title": "pylyzer",
|
||||
"properties": {
|
||||
"pylyzer.diagnostics": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "Enable diagnostics"
|
||||
},
|
||||
"pylyzer.inlayHints": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "Enable inlay hints (this feature is unstable)"
|
||||
},
|
||||
"pylyzer.smartCompletion": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "Enable smart completion (see [ELS features](https://github.com/erg-lang/erg/blob/main/crates/els/doc/features.md))"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"vscode:publish": "vsce publish",
|
||||
"vscode:prepublish": "npm run package",
|
||||
"vscode:package": "vsce package",
|
||||
"compile": "webpack",
|
||||
"watch": "webpack --watch",
|
||||
"package": "webpack --mode production --devtool hidden-source-map",
|
||||
"compile-tests": "tsc -p . --outDir out",
|
||||
"watch-tests": "tsc -p . -w --outDir out",
|
||||
"pretest": "npm run compile-tests && npm run compile && npm run lint",
|
||||
"test": "node ./out/test/runTest.js",
|
||||
"type-check": "tsc --noEmit",
|
||||
"lint": "rome check .",
|
||||
"format": "rome format .",
|
||||
"lint:fix": "rome check --apply .",
|
||||
"lint:fix-suggested": "rome check --apply-suggested .",
|
||||
"format:fix": "rome format --write ."
|
||||
},
|
||||
"dependencies": {
|
||||
"vscode-languageclient": "^8.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/glob": "^8.0.0",
|
||||
"@types/mocha": "^10.0.1",
|
||||
"@types/node": "18.x",
|
||||
"@types/vscode": "^1.70.0",
|
||||
"@vscode/test-electron": "^2.2.1",
|
||||
"glob": "^8.0.3",
|
||||
"mocha": "^10.2.0",
|
||||
"rome": "^10.0.1",
|
||||
"ts-loader": "^9.4.2",
|
||||
"typescript": "^4.9.4",
|
||||
"webpack": "^5.75.0",
|
||||
"webpack-cli": "^5.0.1"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*": "rome format --write"
|
||||
}
|
||||
"name": "pylyzer",
|
||||
"displayName": "pylyzer",
|
||||
"description": "A fast Python static code analyzer & language server for VSCode",
|
||||
"publisher": "pylyzer",
|
||||
"version": "0.1.7",
|
||||
"engines": {
|
||||
"vscode": "^1.70.0"
|
||||
},
|
||||
"categories": ["Programming Languages", "Linters"],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mtshiba/pylyzer.git"
|
||||
},
|
||||
"icon": "images/pylyzer-logo.png",
|
||||
"main": "./dist/extension.js",
|
||||
"activationEvents": ["onLanguage:python"],
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"title": "Restart the pylyzer language server",
|
||||
"category": "python",
|
||||
"command": "pylyzer.restartLanguageServer"
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
{
|
||||
"id": "python",
|
||||
"aliases": ["Python", "python"],
|
||||
"extensions": [".py"]
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"title": "pylyzer",
|
||||
"properties": {
|
||||
"pylyzer.diagnostics": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "Enable diagnostics"
|
||||
},
|
||||
"pylyzer.inlayHints": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "Enable inlay hints (this feature is unstable)"
|
||||
},
|
||||
"pylyzer.smartCompletion": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "Enable smart completion (see [ELS features](https://github.com/erg-lang/erg/blob/main/crates/els/doc/features.md))"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"vscode:publish": "vsce publish",
|
||||
"vscode:prepublish": "npm run package",
|
||||
"vscode:package": "vsce package",
|
||||
"compile": "webpack",
|
||||
"watch": "webpack --watch",
|
||||
"package": "webpack --mode production --devtool hidden-source-map",
|
||||
"compile-tests": "tsc -p . --outDir out",
|
||||
"watch-tests": "tsc -p . -w --outDir out",
|
||||
"pretest": "npm run compile-tests && npm run compile && npm run lint",
|
||||
"test": "node ./out/test/runTest.js",
|
||||
"type-check": "tsc --noEmit",
|
||||
"lint": "biome lint .",
|
||||
"format": "biome format .",
|
||||
"lint:fix-suggested": "biome check --apply .",
|
||||
"format:fix": "biome format --write ."
|
||||
},
|
||||
"dependencies": {
|
||||
"vscode-languageclient": "^8.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^1.7.3",
|
||||
"@types/glob": "^8.0.0",
|
||||
"@types/mocha": "^10.0.1",
|
||||
"@types/node": "18.x",
|
||||
"@types/vscode": "^1.70.0",
|
||||
"@vscode/test-electron": "^2.2.1",
|
||||
"glob": "^8.0.3",
|
||||
"mocha": "^10.2.0",
|
||||
"ts-loader": "^9.4.2",
|
||||
"typescript": "^4.9.4",
|
||||
"webpack": "^5.75.0",
|
||||
"webpack-cli": "^5.0.1"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*": "biome format --write"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"linter": {
|
||||
"rules": {
|
||||
"recommended": true
|
||||
},
|
||||
"ignore": ["/dist/", "/out/", "/.vscode-test/"]
|
||||
},
|
||||
"formatter": {
|
||||
"ignore": ["/dist/", "/out/", "/.vscode-test/"]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue