This pull request includes several important changes to enhance TypeScript support, improve ESLint configurations, and update dependencies. The most critical updates involve modifying the ESLint configuration, updating TypeScript-related packages, and refactoring code to use TypeScript's type imports for better type safety.
ESLint Configuration Enhancements:
Updated .eslintrc.js to include TypeScript-specific rules and plugins, and removed the previous AzureTools configuration. (.eslintrc.js)
Modified package.json to update the lint script to support .tsx files and added the --quiet flag. (package.json)
Dependency Updates:
Removed @microsoft/eslint-config-azuretools and added @typescript-eslint/parser, @typescript-eslint/eslint-plugin, and @types/lodash-es. (package.json) [1][2][3]
Updated several dependencies to their latest versions, including @azure/cosmos and @microsoft/vscode-azext-azureutils. (package.json)
Code Refactoring:
Refactored KeyValueStore to handle null values by deleting the key. (src/KeyValueStore.ts)
Added a disconnectNoSqlContainer function to handle disconnection logic for NoSQL containers. (src/docdb/commands/connectNoSqlContainer.ts)
TypeScript Type Imports:
Updated multiple files to use TypeScript's type imports to improve type safety and clarity. (src/docdb/commands/connectNoSqlContainer.ts, src/docdb/tree/DocDBAccountTreeItem.ts, src/docdb/tree/DocDBAccountTreeItemBase.ts, src/docdb/tree/DocDBCollectionTreeItem.ts, src/docdb/tree/DocDBDatabaseTreeItem.ts, src/docdb/tree/DocDBDatabaseTreeItemBase.ts, src/docdb/tree/DocDBDocumentTreeItem.ts, src/docdb/tree/DocDBDocumentsTreeItem.ts, src/docdb/tree/DocDBStoredProcedureTreeItem.ts, src/docdb/tree/DocDBStoredProceduresTreeItem.ts) [1][2][3][4][5][6][7][8][9][10]
This pull request includes several important changes to enhance TypeScript support, improve ESLint configurations, and update dependencies. The most critical updates involve modifying the ESLint configuration, updating TypeScript-related packages, and refactoring code to use TypeScript's
type
imports for better type safety.ESLint Configuration Enhancements:
.eslintrc.js
to include TypeScript-specific rules and plugins, and removed the previous AzureTools configuration. (.eslintrc.js
)package.json
to update thelint
script to support.tsx
files and added the--quiet
flag. (package.json
)Dependency Updates:
@microsoft/eslint-config-azuretools
and added@typescript-eslint/parser
,@typescript-eslint/eslint-plugin
, and@types/lodash-es
. (package.json
) [1] [2] [3]@azure/cosmos
and@microsoft/vscode-azext-azureutils
. (package.json
)Code Refactoring:
KeyValueStore
to handlenull
values by deleting the key. (src/KeyValueStore.ts
)disconnectNoSqlContainer
function to handle disconnection logic for NoSQL containers. (src/docdb/commands/connectNoSqlContainer.ts
)TypeScript Type Imports:
type
imports to improve type safety and clarity. (src/docdb/commands/connectNoSqlContainer.ts
,src/docdb/tree/DocDBAccountTreeItem.ts
,src/docdb/tree/DocDBAccountTreeItemBase.ts
,src/docdb/tree/DocDBCollectionTreeItem.ts
,src/docdb/tree/DocDBDatabaseTreeItem.ts
,src/docdb/tree/DocDBDatabaseTreeItemBase.ts
,src/docdb/tree/DocDBDocumentTreeItem.ts
,src/docdb/tree/DocDBDocumentsTreeItem.ts
,src/docdb/tree/DocDBStoredProcedureTreeItem.ts
,src/docdb/tree/DocDBStoredProceduresTreeItem.ts
) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]