mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Pick up latest eslint to avoid a nasty warning about using an unsupported version of TS Also updates the eslint script to be more scoped on which files it checks
66 lines
1.7 KiB
JSON
66 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.43.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 ./client/src ./server/src --ext .ts,.tsx",
|
|
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
|
|
"chrome": "npm run compile && vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ./test-data"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
"@typescript-eslint/parser": "^5.42.0",
|
|
"@vscode/test-web": "^0.0.22",
|
|
"eslint": "^8.26.0",
|
|
"path-browserify": "^1.0.1",
|
|
"ts-loader": "^9.3.0",
|
|
"typescript": "^4.8.4",
|
|
"webpack": "^5.44.0",
|
|
"webpack-cli": "^4.7.2"
|
|
}
|
|
}
|