* Add sort pre-commit hook

* Sort package.json and package.nls.json

* Indent using 4 spaces for consistency

* Format package-lock.json
This commit is contained in:
Alex Weininger 2021-10-04 10:57:23 -07:00 коммит произвёл GitHub
Родитель 7f40a54f95
Коммит 4d0b81c987
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 20851 добавлений и 18829 удалений

4
.husky/pre-commit Executable file
Просмотреть файл

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx vscode-sort-package-json

39117
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,282 +1,285 @@
{ {
"name": "azure-account", "name": "azure-account",
"displayName": "Azure Account", "displayName": "Azure Account",
"description": "A common Sign-In and Subscription management extension for VS Code.", "description": "A common Sign-In and Subscription management extension for VS Code.",
"license": "SEE LICENSE IN LICENSE.md", "license": "SEE LICENSE IN LICENSE.md",
"icon": "images/Market_AzureAccount_128x.png", "icon": "images/Market_AzureAccount_128x.png",
"repository": { "repository": {
"url": "https://github.com/microsoft/vscode-azure-account.git" "url": "https://github.com/microsoft/vscode-azure-account.git"
},
"homepage": "https://github.com/Microsoft/vscode-azure-account/blob/master/README.md",
"galleryBanner": {
"color": "#0072c6",
"theme": "dark"
},
"enableProposedApi": true,
"version": "0.9.10-alpha",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"publisher": "ms-vscode",
"engines": {
"vscode": "^1.53.0"
},
"categories": [
"Azure"
],
"keywords": [
"azure"
],
"activationEvents": [
"onCommand:azure-account.login",
"onCommand:azure-account.loginWithDeviceCode",
"onCommand:azure-account.logout",
"onCommand:azure-account.loginToCloud",
"onCommand:azure-account.selectSubscriptions",
"onCommand:azure-account.createAccount",
"onCommand:azure-account.openCloudConsoleLinux",
"onCommand:azure-account.openCloudConsoleWindows",
"onCommand:azure-account.uploadFileCloudConsole"
],
"main": "./main",
"contributes": {
"commands": [
{
"command": "azure-account.login",
"title": "%azure-account.commands.login%",
"category": "%azure-account.commands.azure%"
},
{
"command": "azure-account.loginWithDeviceCode",
"title": "%azure-account.commands.loginWithDeviceCode%",
"category": "%azure-account.commands.azure%"
},
{
"command": "azure-account.logout",
"title": "%azure-account.commands.logout%",
"category": "%azure-account.commands.azure%"
},
{
"command": "azure-account.loginToCloud",
"title": "%azure-account.commands.loginToCloud%",
"category": "%azure-account.commands.azure%"
},
{
"command": "azure-account.selectSubscriptions",
"title": "%azure-account.commands.selectSubscriptions%",
"category": "%azure-account.commands.azure%"
},
{
"command": "azure-account.createAccount",
"title": "%azure-account.commands.createAccount%",
"category": "%azure-account.commands.azure%"
},
{
"command": "azure-account.openCloudConsoleLinux",
"title": "%azure-account.commands.openCloudConsoleLinux%",
"category": "%azure-account.commands.azure%"
},
{
"command": "azure-account.openCloudConsoleWindows",
"title": "%azure-account.commands.openCloudConsoleWindows%",
"category": "%azure-account.commands.azure%"
},
{
"command": "azure-account.uploadFileCloudConsole",
"title": "%azure-account.commands.uploadFileCloudConsole%",
"category": "%azure-account.commands.azure%"
}
],
"menus": {
"explorer/context": [
{
"command": "azure-account.uploadFileCloudConsole",
"when": "resourceScheme == file && !explorerResourceIsFolder && openCloudConsoleCount && openCloudConsoleCount != 0",
"group": "999_cloudConsole"
}
],
"editor/title/context": [
{
"command": "azure-account.uploadFileCloudConsole",
"when": "resourceScheme == file && openCloudConsoleCount && openCloudConsoleCount != 0",
"group": "999_cloudConsole"
}
]
}, },
"configuration": { "homepage": "https://github.com/Microsoft/vscode-azure-account/blob/master/README.md",
"type": "object", "galleryBanner": {
"title": "Azure configuration", "color": "#0072c6",
"properties": { "theme": "dark"
"azure.resourceFilter": { },
"type": "array", "enableProposedApi": true,
"default": null, "version": "0.9.10-alpha",
"description": "The resource filter, each element is a tenant id and a subscription id separated by a slash." "aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
}, "publisher": "ms-vscode",
"azure.showSignedInEmail": { "engines": {
"type": "boolean", "vscode": "^1.53.0"
"default": true, },
"description": "Whether to show the email address (e.g., in the status bar) of the signed in account." "categories": [
}, "Azure"
"azure.tenant": { ],
"type": "string", "keywords": [
"default": "", "azure"
"description": "A specific tenant to sign in to. The default is to sign in to the common tenant and use all known tenants." ],
}, "activationEvents": [
"azure.cloud": { "onCommand:azure-account.createAccount",
"type": "string", "onCommand:azure-account.login",
"enum": [ "onCommand:azure-account.loginToCloud",
"AzureCloud", "onCommand:azure-account.loginWithDeviceCode",
"AzureChinaCloud", "onCommand:azure-account.logout",
"AzureGermanCloud", "onCommand:azure-account.openCloudConsoleLinux",
"AzureUSGovernment", "onCommand:azure-account.openCloudConsoleWindows",
"AzureCustomCloud" "onCommand:azure-account.selectSubscriptions",
], "onCommand:azure-account.uploadFileCloudConsole"
"enumDescriptions": [ ],
"Azure", "main": "./main",
"Azure China", "contributes": {
"Azure Germany", "commands": [
"Azure US Government", {
"Azure Custom Cloud" "command": "azure-account.createAccount",
], "title": "%azure-account.commands.createAccount%",
"default": "Azure", "category": "%azure-account.commands.azure%"
"description": "The current Azure Cloud to connect to."
},
"azure.customCloud.resourceManagerEndpointUrl": {
"type": "string",
"description": "The management endpoint for your Azure Custom Cloud environment.",
"scope": "application"
},
"azure.ppe": {
"type": "object",
"properties": {
"portalUrl": {
"type": "string"
}, },
"publishingProfileUrl": { {
"type": "string" "command": "azure-account.login",
"title": "%azure-account.commands.login%",
"category": "%azure-account.commands.azure%"
}, },
"managementEndpointUrl": { {
"type": "string" "command": "azure-account.loginToCloud",
"title": "%azure-account.commands.loginToCloud%",
"category": "%azure-account.commands.azure%"
}, },
"resourceManagerEndpointUrl": { {
"type": "string" "command": "azure-account.loginWithDeviceCode",
"title": "%azure-account.commands.loginWithDeviceCode%",
"category": "%azure-account.commands.azure%"
}, },
"sqlManagementEndpointUrl": { {
"type": "string" "command": "azure-account.logout",
"title": "%azure-account.commands.logout%",
"category": "%azure-account.commands.azure%"
}, },
"sqlServerHostnameSuffix": { {
"type": "string" "command": "azure-account.openCloudConsoleLinux",
"title": "%azure-account.commands.openCloudConsoleLinux%",
"category": "%azure-account.commands.azure%"
}, },
"galleryEndpointUrl": { {
"type": "string" "command": "azure-account.openCloudConsoleWindows",
"title": "%azure-account.commands.openCloudConsoleWindows%",
"category": "%azure-account.commands.azure%"
}, },
"activeDirectoryEndpointUrl": { {
"type": "string" "command": "azure-account.selectSubscriptions",
"title": "%azure-account.commands.selectSubscriptions%",
"category": "%azure-account.commands.azure%"
}, },
"activeDirectoryResourceId": { {
"type": "string" "command": "azure-account.uploadFileCloudConsole",
}, "title": "%azure-account.commands.uploadFileCloudConsole%",
"activeDirectoryGraphResourceId": { "category": "%azure-account.commands.azure%"
"type": "string"
},
"batchResourceId": {
"type": "string"
},
"activeDirectoryGraphApiVersion": {
"type": "string"
},
"storageEndpointSuffix": {
"type": "string"
},
"keyVaultDnsSuffix": {
"type": "string"
},
"azureDataLakeStoreFileSystemEndpointSuffix": {
"type": "string"
},
"azureDataLakeAnalyticsCatalogAndJobEndpointSuffix": {
"type": "string"
},
"validateAuthority": {
"type": "boolean"
} }
}, ],
"default": null, "menus": {
"description": "Development setting: The PPE environment for testing.", "explorer/context": [
"scope": "application" {
"command": "azure-account.uploadFileCloudConsole",
"when": "resourceScheme == file && !explorerResourceIsFolder && openCloudConsoleCount && openCloudConsoleCount != 0",
"group": "999_cloudConsole"
}
],
"editor/title/context": [
{
"command": "azure-account.uploadFileCloudConsole",
"when": "resourceScheme == file && openCloudConsoleCount && openCloudConsoleCount != 0",
"group": "999_cloudConsole"
}
]
}, },
"azure.authenticationLibrary": { "configuration": {
"type": "string", "type": "object",
"enum": [ "title": "Azure configuration",
"ADAL", "properties": {
"MSAL" "azure.resourceFilter": {
], "type": "array",
"enumDescriptions": [ "default": null,
"Azure Active Directory Authentication Library", "description": "The resource filter, each element is a tenant id and a subscription id separated by a slash."
"Microsoft Authentication Library (Preview)" },
], "azure.showSignedInEmail": {
"description": "The authentication library to use. Note: You must sign out and reload the window after modifying this setting for it to take effect." "type": "boolean",
"default": true,
"description": "Whether to show the email address (e.g., in the status bar) of the signed in account."
},
"azure.tenant": {
"type": "string",
"default": "",
"description": "A specific tenant to sign in to. The default is to sign in to the common tenant and use all known tenants."
},
"azure.cloud": {
"type": "string",
"enum": [
"AzureCloud",
"AzureChinaCloud",
"AzureGermanCloud",
"AzureUSGovernment",
"AzureCustomCloud"
],
"enumDescriptions": [
"Azure",
"Azure China",
"Azure Germany",
"Azure US Government",
"Azure Custom Cloud"
],
"default": "Azure",
"description": "The current Azure Cloud to connect to."
},
"azure.customCloud.resourceManagerEndpointUrl": {
"type": "string",
"description": "The management endpoint for your Azure Custom Cloud environment.",
"scope": "application"
},
"azure.ppe": {
"type": "object",
"properties": {
"portalUrl": {
"type": "string"
},
"publishingProfileUrl": {
"type": "string"
},
"managementEndpointUrl": {
"type": "string"
},
"resourceManagerEndpointUrl": {
"type": "string"
},
"sqlManagementEndpointUrl": {
"type": "string"
},
"sqlServerHostnameSuffix": {
"type": "string"
},
"galleryEndpointUrl": {
"type": "string"
},
"activeDirectoryEndpointUrl": {
"type": "string"
},
"activeDirectoryResourceId": {
"type": "string"
},
"activeDirectoryGraphResourceId": {
"type": "string"
},
"batchResourceId": {
"type": "string"
},
"activeDirectoryGraphApiVersion": {
"type": "string"
},
"storageEndpointSuffix": {
"type": "string"
},
"keyVaultDnsSuffix": {
"type": "string"
},
"azureDataLakeStoreFileSystemEndpointSuffix": {
"type": "string"
},
"azureDataLakeAnalyticsCatalogAndJobEndpointSuffix": {
"type": "string"
},
"validateAuthority": {
"type": "boolean"
}
},
"default": null,
"description": "Development setting: The PPE environment for testing.",
"scope": "application"
},
"azure.authenticationLibrary": {
"type": "string",
"enum": [
"ADAL",
"MSAL"
],
"enumDescriptions": [
"Azure Active Directory Authentication Library",
"Microsoft Authentication Library (Preview)"
],
"description": "The authentication library to use. Note: You must sign out and reload the window after modifying this setting for it to take effect."
}
}
} }
} },
"scripts": {
"vscode:prepublish": "rimraf dist && webpack --mode production",
"build": "tsc",
"cleanReadme": "gulp cleanReadme",
"compile": "rimraf dist && webpack --mode none",
"watch": "rimraf dist && webpack --mode none --watch",
"lint": "eslint --ext .ts .",
"lint-fix": "eslint --ext .ts . --fix",
"package": "vsce package --githubBranch main",
"which": "which tsc",
"prepare": "husky install"
},
"devDependencies": {
"@microsoft/eslint-config-azuretools": "^0.1.0",
"@types/form-data": "2.2.1",
"@types/fs-extra": "^9.0.11",
"@types/http-proxy-agent": "2.0.1",
"@types/node": "^12.0.0",
"@types/node-fetch": "^2.5.10",
"@types/request": "2.48.1",
"@types/request-promise": "4.1.42",
"@types/semver": "5.5.0",
"@types/uuid": "^8.3.0",
"@types/vscode": "^1.53.0",
"@types/ws": "6.0.1",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"eslint": "^7.19.0",
"eslint-plugin-import": "^2.22.1",
"fs-extra": "^9.1.0",
"gulp": "^4.0.2",
"husky": "^7.0.2",
"rimraf": "2.6.2",
"terser-webpack-plugin": "^5.1.1",
"ts-loader": "5.3.0",
"ts-node": "^10.0.0",
"typescript": "^4.0.2",
"vsce": "^1.91.0",
"vscode-azureextensiondev": "^0.10.2",
"webpack": "^5.24.1",
"webpack-cli": "^4.5.0"
},
"dependencies": {
"@azure/arm-appservice": "^6.0.0",
"@azure/arm-resources": "^3.0.0",
"@azure/arm-subscriptions": "^2.0.0",
"@azure/core-auth": "^1.3.2",
"@azure/ms-rest-azure-env": "^2.0.0",
"@azure/ms-rest-nodeauth": "^3.0.10",
"@azure/msal-node": "^1.3.0",
"adal-node": "0.1.28",
"form-data": "2.3.3",
"http-proxy-agent": "2.1.0",
"https-proxy-agent": "2.2.3",
"ms-rest-azure": "2.5.9",
"node-fetch": "^2.6.1",
"request": "2.88.0",
"request-promise": "4.2.2",
"semver": "5.6.0",
"uuid": "^8.3.2",
"vscode-azureextensionui": "^0.48.0",
"vscode-extension-telemetry": "0.1.5",
"vscode-nls": "4.0.0",
"ws": "7.4.6"
} }
},
"scripts": {
"vscode:prepublish": "rimraf dist && webpack --mode production",
"build": "tsc",
"cleanReadme": "gulp cleanReadme",
"compile": "rimraf dist && webpack --mode none",
"watch": "rimraf dist && webpack --mode none --watch",
"lint": "eslint --ext .ts .",
"lint-fix": "eslint --ext .ts . --fix",
"package": "vsce package --githubBranch main",
"which": "which tsc"
},
"devDependencies": {
"@microsoft/eslint-config-azuretools": "^0.1.0",
"@types/form-data": "2.2.1",
"@types/fs-extra": "^9.0.11",
"@types/http-proxy-agent": "2.0.1",
"@types/node": "^12.0.0",
"@types/node-fetch": "^2.5.10",
"@types/request": "2.48.1",
"@types/request-promise": "4.1.42",
"@types/semver": "5.5.0",
"@types/uuid": "^8.3.0",
"@types/vscode": "^1.53.0",
"@types/ws": "6.0.1",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"eslint": "^7.19.0",
"eslint-plugin-import": "^2.22.1",
"fs-extra": "^9.1.0",
"gulp": "^4.0.2",
"rimraf": "2.6.2",
"terser-webpack-plugin": "^5.1.1",
"ts-loader": "5.3.0",
"ts-node": "^10.0.0",
"typescript": "^4.0.2",
"vsce": "^1.91.0",
"webpack": "^5.24.1",
"webpack-cli": "^4.5.0"
},
"dependencies": {
"@azure/arm-appservice": "^6.0.0",
"@azure/arm-resources": "^3.0.0",
"@azure/arm-subscriptions": "^2.0.0",
"@azure/core-auth": "^1.3.2",
"@azure/ms-rest-azure-env": "^2.0.0",
"@azure/ms-rest-nodeauth": "^3.0.10",
"@azure/msal-node": "^1.3.0",
"adal-node": "0.1.28",
"form-data": "2.3.3",
"http-proxy-agent": "2.1.0",
"https-proxy-agent": "2.2.3",
"ms-rest-azure": "2.5.9",
"node-fetch": "^2.6.1",
"request": "2.88.0",
"request-promise": "4.2.2",
"semver": "5.6.0",
"uuid": "^8.3.2",
"vscode-azureextensionui": "^0.48.0",
"vscode-extension-telemetry": "0.1.5",
"vscode-nls": "4.0.0",
"ws": "7.4.6"
}
} }

Просмотреть файл

@ -1,12 +1,12 @@
{ {
"azure-account.commands.azure": "Azure", "azure-account.commands.azure": "Azure",
"azure-account.commands.login": "Sign In", "azure-account.commands.createAccount": "Create an Account",
"azure-account.commands.loginWithDeviceCode": "Sign In with Device Code", "azure-account.commands.login": "Sign In",
"azure-account.commands.logout": "Sign Out", "azure-account.commands.loginToCloud": "Sign In to Azure Cloud",
"azure-account.commands.loginToCloud": "Sign In to Azure Cloud", "azure-account.commands.loginWithDeviceCode": "Sign In with Device Code",
"azure-account.commands.selectSubscriptions": "Select Subscriptions", "azure-account.commands.logout": "Sign Out",
"azure-account.commands.createAccount": "Create an Account", "azure-account.commands.openCloudConsoleLinux": "Open Bash in Cloud Shell",
"azure-account.commands.openCloudConsoleLinux": "Open Bash in Cloud Shell", "azure-account.commands.openCloudConsoleWindows": "Open PowerShell in Cloud Shell",
"azure-account.commands.openCloudConsoleWindows": "Open PowerShell in Cloud Shell", "azure-account.commands.selectSubscriptions": "Select Subscriptions",
"azure-account.commands.uploadFileCloudConsole": "Upload to Cloud Shell" "azure-account.commands.uploadFileCloudConsole": "Upload to Cloud Shell"
} }