mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +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
72 lines
1.4 KiB
JSON
72 lines
1.4 KiB
JSON
{
|
|
"name": "calico-colors",
|
|
"description": "Calico Colors - A Webview View API Sample",
|
|
"version": "0.0.1",
|
|
"publisher": "vscode-samples",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Microsoft/vscode-extension-samples"
|
|
},
|
|
"engines": {
|
|
"vscode": "^1.74.0"
|
|
},
|
|
"extensionKind": [
|
|
"ui",
|
|
"workspace"
|
|
],
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [],
|
|
"main": "./out/extension.js",
|
|
"contributes": {
|
|
"views": {
|
|
"explorer": [
|
|
{
|
|
"type": "webview",
|
|
"id": "calicoColors.colorsView",
|
|
"name": "Calico Colors"
|
|
}
|
|
]
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "calicoColors.addColor",
|
|
"category": "Calico Colors",
|
|
"title": "Add Color"
|
|
},
|
|
{
|
|
"command": "calicoColors.clearColors",
|
|
"category": "Calico Colors",
|
|
"title": "Clear Colors",
|
|
"icon": "$(clear-all)"
|
|
}
|
|
],
|
|
"menus": {
|
|
"view/title": [
|
|
{
|
|
"command": "calicoColors.clearColors",
|
|
"group": "navigation",
|
|
"when": "view == calicoColors.colorsView"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"lint": "eslint",
|
|
"watch": "tsc -w -p ./"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.13.0",
|
|
"@stylistic/eslint-plugin": "^2.9.0",
|
|
"@types/vscode": "^1.73.0",
|
|
"eslint": "^9.13.0",
|
|
"typescript": "^5.6.2",
|
|
"typescript-eslint": "^8.11.0"
|
|
}
|
|
}
|