mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Switches all samples to use eslint 9 with flat configs. I've tried to migrate existing settings as much as possible. However our eslint configs were also inconsistent so I've tried to align these too
67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
{
|
|
"name": "lsp-web-extension-sample",
|
|
"description": "A language server in a web extension",
|
|
"author": "Microsoft Corporation",
|
|
"license": "MIT",
|
|
"version": "1.0.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Microsoft/vscode-extension-samples"
|
|
},
|
|
"publisher": "vscode-samples",
|
|
"categories": [],
|
|
"keywords": [
|
|
"multi-root ready"
|
|
],
|
|
"engines": {
|
|
"vscode": "^1.85.0"
|
|
},
|
|
"activationEvents": [
|
|
"onLanguage:plaintext"
|
|
],
|
|
"browser": "./client/dist/browserClientMain",
|
|
"contributes": {
|
|
"configuration": [
|
|
{
|
|
"order": 22,
|
|
"id": "lsp-web-extension-sample",
|
|
"title": "lsp-web-extension-sample",
|
|
"properties": {
|
|
"lsp-web-extension-sample.trace.server": {
|
|
"type": "string",
|
|
"scope": "window",
|
|
"enum": [
|
|
"off",
|
|
"messages",
|
|
"verbose"
|
|
],
|
|
"default": "verbose",
|
|
"description": "Traces the communication between VS Code and the lsp-web-extension-sample language server."
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "webpack",
|
|
"watch": "webpack --watch",
|
|
"package": "webpack --mode production --devtool hidden-source-map",
|
|
"lint": "eslint",
|
|
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
|
|
"chrome": "npm run compile && vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ./test-data"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.13.0",
|
|
"@stylistic/eslint-plugin": "^2.9.0",
|
|
"@vscode/test-web": "^0.0.51",
|
|
"eslint": "^9.13.0",
|
|
"path-browserify": "^1.0.1",
|
|
"ts-loader": "^9.5.1",
|
|
"typescript": "^5.6.2",
|
|
"typescript-eslint": "^8.11.0",
|
|
"webpack": "^5.90.1",
|
|
"webpack-cli": "^5.1.4"
|
|
}
|
|
}
|