Parcourir la source

Updates dependencies (typescript-eslint) & lints

main
Eric Amodio il y a 1 an
Parent
révision
d204db0e60
52 fichiers modifiés avec 227 ajouts et 238 suppressions
  1. +11
    -18
      .eslintrc.base.json
  2. +4
    -4
      package.json
  3. +1
    -1
      src/ai/anthropicProvider.ts
  4. +1
    -1
      src/ai/openaiProvider.ts
  5. +1
    -1
      src/annotations/fileAnnotationController.ts
  6. +7
    -6
      src/annotations/gutterBlameAnnotationProvider.ts
  7. +1
    -1
      src/commands/diffLineWithPrevious.ts
  8. +1
    -1
      src/commands/diffWithNext.ts
  9. +1
    -1
      src/commands/diffWithPrevious.ts
  10. +1
    -1
      src/commands/git/merge.ts
  11. +2
    -1
      src/commands/git/rebase.ts
  12. +1
    -1
      src/commands/git/reset.ts
  13. +1
    -1
      src/commands/git/revert.ts
  14. +1
    -1
      src/commands/toggleCodeLens.ts
  15. +1
    -3
      src/constants.ts
  16. +5
    -7
      src/env/node/git/localGitProvider.ts
  17. +1
    -1
      src/env/node/git/vslsGitProvider.ts
  18. +1
    -5
      src/extension.ts
  19. +14
    -12
      src/git/formatters/formatter.ts
  20. +1
    -1
      src/git/gitProvider.ts
  21. +1
    -1
      src/git/parsers/diffParser.ts
  22. +1
    -1
      src/git/parsers/logParser.ts
  23. +4
    -3
      src/pathMapping/models.ts
  24. +1
    -1
      src/plus/github/github.ts
  25. +1
    -1
      src/plus/github/githubGitProvider.ts
  26. +1
    -1
      src/plus/gitlab/gitlab.ts
  27. +9
    -7
      src/plus/webviews/graph/protocol.ts
  28. +6
    -16
      src/plus/workspaces/models.ts
  29. +1
    -1
      src/plus/workspaces/workspacesApi.ts
  30. +1
    -1
      src/plus/workspaces/workspacesService.ts
  31. +1
    -1
      src/statusbar/statusBarController.ts
  32. +1
    -3
      src/system/command.ts
  33. +3
    -3
      src/system/configuration.ts
  34. +5
    -3
      src/system/event.ts
  35. +1
    -3
      src/system/keyboard.ts
  36. +5
    -6
      src/system/object.ts
  37. +1
    -1
      src/system/promise.ts
  38. +2
    -2
      src/system/searchTree.ts
  39. +1
    -3
      src/system/string.ts
  40. +1
    -1
      src/trackers/documentTracker.ts
  41. +1
    -1
      src/trackers/gitLineTracker.ts
  42. +2
    -2
      src/uris/deepLinks/deepLink.ts
  43. +1
    -1
      src/views/nodes/searchResultsNode.ts
  44. +1
    -1
      src/views/nodes/viewNode.ts
  45. +2
    -2
      src/views/viewCommands.ts
  46. +3
    -3
      src/webviews/apps/plus/graph/GraphWrapper.tsx
  47. +2
    -2
      src/webviews/apps/plus/graph/graph.tsx
  48. +6
    -6
      src/webviews/apps/plus/timeline/chart.ts
  49. +1
    -1
      src/webviews/apps/shared/components/helpers/slots.ts
  50. +1
    -3
      src/webviews/apps/shared/events.ts
  51. +2
    -2
      src/webviews/rebase/rebaseEditor.ts
  52. +101
    -87
      yarn.lock

+ 11
- 18
.eslintrc.base.json Voir le fichier

@ -4,8 +4,8 @@
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier"
@ -212,6 +212,7 @@
}
}
],
"@typescript-eslint/class-literal-property-style": "off",
"@typescript-eslint/consistent-type-assertions": [
"error",
{
@ -219,10 +220,9 @@
"objectLiteralTypeAssertions": "allow-as-parameter"
}
],
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/consistent-type-imports": ["error", { "disallowTypeAnnotations": false }],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-module-boundary-types": "off", // TODO@eamodio revisit
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/naming-convention": [
"error",
{
@ -269,29 +269,23 @@
}
}
],
"@typescript-eslint/no-dynamic-delete": "error",
"@typescript-eslint/no-confusing-void-expression": [
"error",
{ "ignoreArrowShorthand": true, "ignoreVoidOperator": true }
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-inferrable-types": ["warn", { "ignoreParameters": true, "ignoreProperties": true }],
"@typescript-eslint/no-invalid-void-type": "off", // Seems to error on `void` return types
"@typescript-eslint/no-meaningless-void-operator": "error",
"@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }],
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
"@typescript-eslint/no-throw-literal": "error",
// "@typescript-eslint/no-unnecessary-condition": ["error", { "allowConstantLoopConditions": true }],
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/no-unused-expressions": ["warn", { "allowShortCircuit": true }],
"@typescript-eslint/no-unused-vars": [
"warn",
@ -302,9 +296,8 @@
"varsIgnorePattern": "^_$"
}
],
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": false }],
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/non-nullable-type-assertion-style": "error",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-includes": "warn",
"@typescript-eslint/prefer-literal-enum-member": ["warn", { "allowBitwiseExpressions": true }],

+ 4
- 4
package.json Voir le fichier

@ -14561,7 +14561,7 @@
"graph:unlink": "yarn unlink @gitkraken/gitkraken-components && yarn install --force",
"icons:apply": "node ./scripts/applyIconsContribution.js",
"icons:svgo": "svgo -q -f ./images/icons/ --config svgo.config.js",
"lint": "eslint \"src/**/*.ts?(x)\" --fix",
"lint": "eslint \"src/**/*.ts?(x)\"",
"lint:webviews": "eslint \"src/webviews/apps/**/*.ts?(x)\" --fix",
"package": "vsce package --yarn",
"package-pre": "yarn run patch-pre && yarn run package --pre-release",
@ -14605,7 +14605,7 @@
"node-fetch": "2.6.9",
"os-browserify": "0.3.0",
"path-browserify": "1.0.1",
"react": "16.8.4",
"react": "18.3.0-canary-7ac5e9a60-20230508",
"react-dom": "16.8.4",
"sortablejs": "1.15.0"
},
@ -14616,8 +14616,8 @@
"@types/react-dom": "17.0.17",
"@types/sortablejs": "1.15.1",
"@types/vscode": "1.78.1",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"@typescript-eslint/eslint-plugin": "6.0.0",
"@typescript-eslint/parser": "6.0.0",
"@vscode/test-electron": "2.3.3",
"@vscode/test-web": "0.0.44",
"@vscode/vsce": "2.19.0",

+ 1
- 1
src/ai/anthropicProvider.ts Voir le fichier

@ -212,7 +212,7 @@ interface AnthropicCompletionRequest {
temperature?: number;
top_k?: number;
top_p?: number;
tags?: { [key: string]: string };
tags?: Record<string, string>;
}
interface AnthropicCompletionResponse {

+ 1
- 1
src/ai/openaiProvider.ts Voir le fichier

@ -241,7 +241,7 @@ interface OpenAIChatCompletionRequest {
max_tokens?: number;
presence_penalty?: number;
frequency_penalty?: number;
logit_bias?: { [token: string]: number };
logit_bias?: Record<string, number>;
user?: string;
}

+ 1
- 1
src/annotations/fileAnnotationController.ts Voir le fichier

@ -272,7 +272,7 @@ export class FileAnnotationController implements Disposable {
}
getProvider(editor: TextEditor | undefined): AnnotationProviderBase | undefined {
if (editor == null || editor.document == null) return undefined;
if (editor?.document == null) return undefined;
return this._annotationProviders.get(getEditorCorrelationKey(editor));
}

+ 7
- 6
src/annotations/gutterBlameAnnotationProvider.ts Voir le fichier

@ -54,12 +54,13 @@ export class GutterBlameAnnotationProvider extends BlameAnnotationProviderBase {
const cfg = configuration.get('blame');
// Precalculate the formatting options so we don't need to do it on each iteration
const tokenOptions = getTokensFromTemplate(cfg.format).reduce<{
[token: string]: TokenOptions | undefined;
}>((map, token) => {
map[token.key] = token.options;
return map;
}, Object.create(null));
const tokenOptions = getTokensFromTemplate(cfg.format).reduce<Record<string, TokenOptions | undefined>>(
(map, token) => {
map[token.key] = token.options;
return map;
},
Object.create(null),
);
let getBranchAndTagTips;
if (CommitFormatter.has(cfg.format, 'tips')) {

+ 1
- 1
src/commands/diffLineWithPrevious.ts Voir le fichier

@ -50,7 +50,7 @@ export class DiffLineWithPreviousCommand extends ActiveEditorCommand {
gitUri.sha,
);
if (diffUris == null || diffUris.previous == null) {
if (diffUris?.previous == null) {
void showCommitHasNoPreviousCommitWarningMessage();
return;

+ 1
- 1
src/commands/diffWithNext.ts Voir le fichier

@ -52,7 +52,7 @@ export class DiffWithNextCommand extends ActiveEditorCommand {
args.inDiffLeftEditor ? 1 : 0,
);
if (diffUris == null || diffUris.next == null) return;
if (diffUris?.next == null) return;
void (await executeCommand<DiffWithCommandArgs>(Commands.DiffWith, {
repoPath: diffUris.current.repoPath,

+ 1
- 1
src/commands/diffWithPrevious.ts Voir le fichier

@ -88,7 +88,7 @@ export class DiffWithPreviousCommand extends ActiveEditorCommand {
args.inDiffRightEditor ? 1 : 0,
);
if (diffUris == null || diffUris.previous == null) {
if (diffUris?.previous == null) {
if (diffUris == null) {
void showCommitHasNoPreviousCommitWarningMessage();

+ 1
- 1
src/commands/git/merge.ts Voir le fichier

@ -85,7 +85,7 @@ export class MergeGitCommand extends QuickCommand {
}
execute(state: MergeStepState) {
return state.repo.merge(...state.flags, state.reference.ref);
state.repo.merge(...state.flags, state.reference.ref);
}
protected async *steps(state: PartialStepState<State>): StepGenerator {

+ 2
- 1
src/commands/git/rebase.ts Voir le fichier

@ -94,7 +94,8 @@ export class RebaseGitCommand extends QuickCommand {
const editor = getEditorCommand();
configs = ['-c', `"sequence.editor=${editor}"`];
}
return state.repo.rebase(configs, ...state.flags, state.reference.ref);
state.repo.rebase(configs, ...state.flags, state.reference.ref);
}
protected async *steps(state: PartialStepState<State>): StepGenerator {

+ 1
- 1
src/commands/git/reset.ts Voir le fichier

@ -77,7 +77,7 @@ export class ResetGitCommand extends QuickCommand {
}
execute(state: ResetStepState) {
return state.repo.reset(...state.flags, state.reference.ref);
state.repo.reset(...state.flags, state.reference.ref);
}
protected async *steps(state: PartialStepState<State>): StepGenerator {

+ 1
- 1
src/commands/git/revert.ts Voir le fichier

@ -79,7 +79,7 @@ export class RevertGitCommand extends QuickCommand {
}
execute(state: RevertStepState<State<GitRevisionReference[]>>) {
return state.repo.revert(...state.flags, ...state.references.map(c => c.ref).reverse());
state.repo.revert(...state.flags, ...state.references.map(c => c.ref).reverse());
}
protected async *steps(state: PartialStepState<State>): StepGenerator {

+ 1
- 1
src/commands/toggleCodeLens.ts Voir le fichier

@ -10,6 +10,6 @@ export class ToggleCodeLensCommand extends Command {
}
execute() {
return this.container.codeLens.toggleCodeLens();
this.container.codeLens.toggleCodeLens();
}
}

+ 1
- 3
src/constants.ts Voir le fichier

@ -808,9 +808,7 @@ export interface StoredBranchComparison {
type: Exclude<ViewShowBranchComparison, false> | undefined;
}
export interface StoredBranchComparisons {
[id: string]: string | StoredBranchComparison;
}
export type StoredBranchComparisons = Record<string, string | StoredBranchComparison>;
export interface StoredDeepLinkContext {
url?: string | undefined;

+ 5
- 7
src/env/node/git/localGitProvider.ts Voir le fichier

@ -207,7 +207,7 @@ interface RepositoryInfo {
export class LocalGitProvider implements GitProvider, Disposable {
readonly descriptor: GitProviderDescriptor = { id: GitProviderId.Git, name: 'Git', virtual: false };
readonly supportedSchemes: Set<string> = new Set([
readonly supportedSchemes = new Set<string>([
Schemes.File,
Schemes.Git,
Schemes.GitLens,
@ -4094,10 +4094,9 @@ export class LocalGitProvider implements GitProvider, Disposable {
const data = await this.git.status__file(root, relativePath, porcelainVersion, {
similarityThreshold: configuration.get('advanced.similarityThreshold'),
});
const status = GitStatusParser.parse(data, root, porcelainVersion);
if (status == null || !status.files.length) return undefined;
return status.files[0];
const status = GitStatusParser.parse(data, root, porcelainVersion);
return status?.files?.[0];
}
@log()
@ -4109,10 +4108,9 @@ export class LocalGitProvider implements GitProvider, Disposable {
const data = await this.git.status__file(root, relativePath, porcelainVersion, {
similarityThreshold: configuration.get('advanced.similarityThreshold'),
});
const status = GitStatusParser.parse(data, root, porcelainVersion);
if (status == null || !status.files.length) return [];
return status.files;
const status = GitStatusParser.parse(data, root, porcelainVersion);
return status?.files ?? [];
}
@log()

+ 1
- 1
src/env/node/git/vslsGitProvider.ts Voir le fichier

@ -62,7 +62,7 @@ export class VslsGitProvider extends LocalGitProvider {
name: 'Live Share',
virtual: false,
};
override readonly supportedSchemes: Set<string> = new Set([Schemes.Vsls, Schemes.VslsScc]);
override readonly supportedSchemes = new Set<string>([Schemes.Vsls, Schemes.VslsScc]);
override async discoverRepositories(uri: Uri): Promise<Repository[]> {
if (!this.supportedSchemes.has(uri.scheme)) return [];

+ 1
- 5
src/extension.ts Voir le fichier

@ -241,11 +241,7 @@ export function deactivate() {
// }
function setKeysForSync(context: ExtensionContext, ...keys: (SyncedStorageKeys | string)[]) {
return context.globalState?.setKeysForSync([
...keys,
SyncedStorageKeys.Version,
SyncedStorageKeys.HomeViewWelcomeVisible,
]);
context.globalState?.setKeysForSync([...keys, SyncedStorageKeys.Version, SyncedStorageKeys.HomeViewWelcomeVisible]);
}
function registerBuiltInActionRunners(container: Container): void {

+ 14
- 12
src/git/formatters/formatter.ts Voir le fichier

@ -123,12 +123,13 @@ export abstract class Formatter
}
if (options.tokenOptions == null) {
const tokenOptions = getTokensFromTemplate(template).reduce<{
[token: string]: TokenOptions | undefined;
}>((map, token) => {
map[token.key] = token.options;
return map;
}, Object.create(null));
const tokenOptions = getTokensFromTemplate(template).reduce<Record<string, TokenOptions | undefined>>(
(map, token) => {
map[token.key] = token.options;
return map;
},
Object.create(null),
);
options.tokenOptions = tokenOptions;
}
@ -166,12 +167,13 @@ export abstract class Formatter
}
if (options.tokenOptions == null) {
const tokenOptions = getTokensFromTemplate(template).reduce<{
[token: string]: TokenOptions | undefined;
}>((map, token) => {
map[token.key] = token.options;
return map;
}, Object.create(null));
const tokenOptions = getTokensFromTemplate(template).reduce<Record<string, TokenOptions | undefined>>(
(map, token) => {
map[token.key] = token.options;
return map;
},
Object.create(null),
);
options.tokenOptions = tokenOptions;
}

+ 1
- 1
src/git/gitProvider.ts Voir le fichier

@ -28,7 +28,7 @@ import type { GitSearch, SearchQuery } from './search';
export type GitCaches = 'branches' | 'contributors' | 'providers' | 'remotes' | 'stashes' | 'status' | 'tags';
export type GitRepositoryCaches = Extract<GitCaches, 'branches' | 'remotes'>;
export const gitRepositoryCacheKeys: Set<GitRepositoryCaches> = new Set(['branches', 'remotes']);
export const gitRepositoryCacheKeys = new Set<GitRepositoryCaches>(['branches', 'remotes']);
export interface GitDir {
readonly uri: Uri;

+ 1
- 1
src/git/parsers/diffParser.ts Voir le fichier

@ -162,7 +162,7 @@ export class GitDiffParser {
files.push({
status: status as GitFileStatus,
path: fields[++i],
originalPath: status[0] === 'R' || status[0] === 'C' ? fields[++i] : undefined,
originalPath: status.startsWith('R') || status.startsWith('C') ? fields[++i] : undefined,
repoPath: repoPath,
});
}

+ 1
- 1
src/git/parsers/logParser.ts Voir le fichier

@ -319,7 +319,7 @@ export function createLogParserWithFiles>(
field = fields.next();
file.path = field.value;
if (file.status[0] === 'R' || file.status[0] === 'C') {
if (file.status.startsWith('R') || file.status.startsWith('C')) {
field = fields.next();
file.originalPath = field.value;
}

+ 4
- 3
src/pathMapping/models.ts Voir le fichier

@ -1,6 +1,7 @@
export type LocalRepoDataMap = {
[key: string /* key can be remote url, provider/owner/name, or first commit SHA*/]: RepoLocalData;
};
export type LocalRepoDataMap = Record<
string /* key can be remote url, provider/owner/name, or first commit SHA*/,
RepoLocalData
>;
export interface RepoLocalData {
paths: string[];

+ 1
- 1
src/plus/github/github.ts Voir le fichier

@ -2175,7 +2175,7 @@ export class GitHubApi implements Disposable {
provider: RichRemoteProvider | undefined,
token: string,
query: string,
variables: { [key: string]: any },
variables: Record<string, any>,
scope: LogScope | undefined,
): Promise<T | undefined> {
try {

+ 1
- 1
src/plus/github/githubGitProvider.ts Voir le fichier

@ -119,7 +119,7 @@ interface RepositoryInfo {
export class GitHubGitProvider implements GitProvider, Disposable {
descriptor = { id: GitProviderId.GitHub, name: 'GitHub', virtual: true };
readonly supportedSchemes: Set<string> = new Set([Schemes.Virtual, Schemes.GitHub, Schemes.PRs]);
readonly supportedSchemes = new Set<string>([Schemes.Virtual, Schemes.GitHub, Schemes.PRs]);
private _onDidChange = new EventEmitter<void>();
get onDidChange(): Event<void> {

+ 1
- 1
src/plus/gitlab/gitlab.ts Voir le fichier

@ -689,7 +689,7 @@ $search: String!
token: string,
baseUrl: string | undefined,
query: string,
variables: { [key: string]: any },
variables: Record<string, any>,
scope: LogScope | undefined,
): Promise<T | undefined> {
let rsp: Response;

+ 9
- 7
src/plus/webviews/graph/protocol.ts Voir le fichier

@ -192,7 +192,7 @@ export interface GraphColumnConfig {
order?: number;
}
export type GraphColumnsConfig = { [name: string]: GraphColumnConfig };
export type GraphColumnsConfig = Record<string, GraphColumnConfig>;
export type GraphExcludeRefs = ExcludeRefsById;
export type GraphExcludedRef = GraphRefOptData;
@ -205,9 +205,11 @@ export type GraphRowStats = RowStats;
export type InternalNotificationType = 'didChangeTheme';
export interface UpdateStateCallback {
(state: State, type?: IpcNotificationType<any> | InternalNotificationType, themingChanged?: boolean): void;
}
export type UpdateStateCallback = (
state: State,
type?: IpcNotificationType<any> | InternalNotificationType,
themingChanged?: boolean,
) => void;
// Commands
@ -381,8 +383,8 @@ export const DidChangeRefsVisibilityNotificationType = new IpcNotificationType
export interface DidChangeRowsParams {
rows: GraphRow[];
avatars: { [email: string]: string };
downstreams: { [upstreamName: string]: string[] };
avatars: Record<string, string>;
downstreams: Record<string, string[]>;
paging?: GraphPaging;
refsMetadata?: GraphRefsMetadata | null;
rowsStats?: Record<string, GraphRowStats>;
@ -420,7 +422,7 @@ export interface DidEnsureRowParams {
export const DidEnsureRowNotificationType = new IpcNotificationType<DidEnsureRowParams>('graph/rows/didEnsure');
export interface GraphSearchResults {
ids?: { [id: string]: GitSearchResultData };
ids?: Record<string, GitSearchResultData>;
count: number;
paging?: { hasMore: boolean };
}

+ 6
- 16
src/plus/workspaces/models.ts Voir le fichier

@ -15,7 +15,7 @@ export enum WorkspaceSyncSetting {
export type CodeWorkspaceFileContents = {
folders: { path: string }[];
settings: { [key: string]: any };
settings: Record<string, any>;
};
export type WorkspaceRepositoriesByName = Map<string, RepositoryMatch>;
@ -484,9 +484,7 @@ export type AddRepositoriesToWorkspaceResponse = {
data: {
add_repositories_to_project: {
id: string;
provider_data: {
[repoKey: string]: CloudWorkspaceRepositoryData;
};
provider_data: Record<string, CloudWorkspaceRepositoryData>;
} | null;
};
errors?: { code: number; message: string }[];
@ -576,9 +574,7 @@ export interface LocalWorkspaceFileData {
workspaces: LocalWorkspaceData;
}
export type LocalWorkspaceData = {
[localWorkspaceId: string]: LocalWorkspaceDescriptor;
};
export type LocalWorkspaceData = Record<string, LocalWorkspaceDescriptor>;
export interface LocalWorkspaceDescriptor {
localId: string;
@ -603,19 +599,13 @@ export interface CloudWorkspaceFileData {
workspaces: CloudWorkspacesPathMap;
}
export type CloudWorkspacesPathMap = {
[cloudWorkspaceId: string]: CloudWorkspacePaths;
};
export type CloudWorkspacesPathMap = Record<string, CloudWorkspacePaths>;
export interface CloudWorkspacePaths {
repoPaths: CloudWorkspaceRepoPathMap;
externalLinks: CloudWorkspaceExternalLinkMap;
}
export type CloudWorkspaceRepoPathMap = {
[repoId: string]: string;
};
export type CloudWorkspaceRepoPathMap = Record<string, string>;
export type CloudWorkspaceExternalLinkMap = {
[fileExtenstion: string]: string;
};
export type CloudWorkspaceExternalLinkMap = Record<string, string>;

+ 1
- 1
src/plus/workspaces/workspacesApi.ts Voir le fichier

@ -134,7 +134,7 @@ export class WorkspacesApi {
}
const addedWorkspaceIds = new Set<string>();
const json: { data: { [queryKey: string]: CloudWorkspaceConnection<CloudWorkspaceData> | null } } | undefined =
const json: { data: Record<string, CloudWorkspaceConnection<CloudWorkspaceData> | null> } | undefined =
await rsp.json();
if (json?.data == null) return undefined;
let outputData: WorkspacesResponse | undefined;

+ 1
- 1
src/plus/workspaces/workspacesService.ts Voir le fichier

@ -416,7 +416,7 @@ export class WorkspacesService implements Disposable {
input.title = 'Create Cloud Workspace';
const quickpick = window.createQuickPick();
quickpick.title = 'Create Cloud Workspace';
const quickpickLabelToProviderType: { [label: string]: CloudWorkspaceProviderInputType } = {
const quickpickLabelToProviderType: Record<string, CloudWorkspaceProviderInputType> = {
GitHub: CloudWorkspaceProviderInputType.GitHub,
'GitHub Enterprise': CloudWorkspaceProviderInputType.GitHubEnterprise,
// TODO add support for these in the future

+ 1
- 1
src/statusbar/statusBarController.ts Voir le fichier

@ -368,7 +368,7 @@ export class StatusBarController implements Disposable {
| undefined,
pullRequests: {
enabled: boolean;
pr: PullRequest | PromiseCancelledError<Promise<PullRequest | undefined>> | undefined | undefined;
pr: PullRequest | PromiseCancelledError<Promise<PullRequest | undefined>> | undefined;
},
cancellationToken: CancellationToken,
) {

+ 1
- 3
src/system/command.ts Voir le fichier

@ -6,9 +6,7 @@ import type { CoreCommands, CoreGitCommands, TreeViewCommands } from '../constan
import { Commands } from '../constants';
import { Container } from '../container';
interface CommandConstructor {
new (container: Container): Command;
}
type CommandConstructor = new (container: Container) => Command;
const registrableCommands: CommandConstructor[] = [];
export function command(): ClassDecorator {

+ 3
- 3
src/system/configuration.ts Voir le fichier

@ -209,7 +209,7 @@ export class Configuration {
const toInspection = this.inspect(to);
if (fromInspection.globalValue !== undefined) {
if (toInspection === undefined || toInspection.globalValue === undefined) {
if (toInspection?.globalValue === undefined) {
await this.update(
to,
options.migrationFn != null
@ -228,7 +228,7 @@ export class Configuration {
}
if (fromInspection.workspaceValue !== undefined) {
if (toInspection === undefined || toInspection.workspaceValue === undefined) {
if (toInspection?.workspaceValue === undefined) {
await this.update(
to,
options.migrationFn != null
@ -247,7 +247,7 @@ export class Configuration {
}
if (fromInspection.workspaceFolderValue !== undefined) {
if (toInspection === undefined || toInspection.workspaceFolderValue === undefined) {
if (toInspection?.workspaceFolderValue === undefined) {
await this.update(
to,
options.migrationFn != null

+ 5
- 3
src/system/event.ts Voir le fichier

@ -39,9 +39,11 @@ export function until(event: Event, predicate: (e: T) => boolean): Event
export type DeferredEvent<T> = Omit<Deferred<T>, 'fulfill'>;
export interface DeferredEventExecutor<T, U> {
(value: T, resolve: (value: U | PromiseLike<U>) => void, reject: (reason: any) => void): any;
}
export type DeferredEventExecutor<T, U> = (
value: T,
resolve: (value: U | PromiseLike<U>) => void,
reject: (reason: any) => void,
) => any;
const resolveExecutor = (value: any, resolve: (value?: any) => void) => resolve(value);

+ 1
- 3
src/system/keyboard.ts Voir le fichier

@ -15,9 +15,7 @@ const keyNoopCommand = Object.create(null) as KeyCommand;
export { keyNoopCommand as KeyNoopCommand };
export type KeyMapping = { [K in Keys]?: KeyCommand | (() => Promise<KeyCommand>) };
type IndexableKeyMapping = KeyMapping & {
[index: string]: KeyCommand | (() => Promise<KeyCommand>) | undefined;
};
type IndexableKeyMapping = KeyMapping & Record<string, KeyCommand | (() => Promise<KeyCommand>) | undefined>;
const mappings: KeyMapping[] = [];

+ 5
- 6
src/system/object.ts Voir le fichier

@ -46,12 +46,11 @@ export function flatten(
stringify?: boolean | 'all';
},
): Record<string, any> {
const skipPaths =
options?.skipPaths != null && options.skipPaths.length
? options?.prefix
? options.skipPaths.map(p => `${options.prefix}.${p}`)
: options.skipPaths
: undefined;
const skipPaths = options?.skipPaths?.length
? options?.prefix
? options.skipPaths.map(p => `${options.prefix}.${p}`)
: options.skipPaths
: undefined;
const skipNulls = options?.skipNulls ?? false;
const stringify = options?.stringify ?? false;

+ 1
- 1
src/system/promise.ts Voir le fichier

@ -149,7 +149,7 @@ export function defer(): Deferred {
deferred.promise = new Promise((resolve, reject) => {
deferred.fulfill = function (value) {
deferred.pending = false;
return resolve(value);
resolve(value);
};
deferred.cancel = function () {
deferred.pending = false;

+ 2
- 2
src/system/searchTree.ts Voir le fichier

@ -204,11 +204,11 @@ export class TernarySearchTree {
}
delete(key: K): void {
return this._delete(key, false);
this._delete(key, false);
}
deleteSuperstr(key: K): void {
return this._delete(key, true);
this._delete(key, true);
}
private _delete(key: K, superStr: boolean): void {

+ 1
- 3
src/system/string.ts Voir le fichier

@ -412,7 +412,6 @@ export async function interpolateAsync(template: string, context: object | undef
value = await value;
}
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
result += template.slice(position, token.start) + (value ?? '');
position = token.end;
}
@ -849,7 +848,6 @@ function _decompressLZString(length: number, resetValue: any, getNextValue: (ind
if (dictionary[c]) {
entry = dictionary[c]!;
} else if (c === dictSize) {
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
entry = w + w.charAt(0);
} else {
return undefined;
@ -857,7 +855,7 @@ function _decompressLZString(length: number, resetValue: any, getNextValue: (ind
result.push(entry);
// Add w+entry[0] to the dictionary.
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
dictionary[dictSize++] = w + entry.charAt(0);
enlargeIn--;

+ 1
- 1
src/trackers/documentTracker.ts Voir le fichier

@ -32,7 +32,7 @@ export * from './trackedDocument';
export interface DocumentContentChangeEvent<T> {
readonly editor: TextEditor;
readonly document: TrackedDocument<T>;
readonly contentChanges: ReadonlyArray<TextDocumentContentChangeEvent>;
readonly contentChanges: readonly TextDocumentContentChangeEvent[];
}
export interface DocumentDirtyStateChangeEvent<T> {

+ 1
- 1
src/trackers/gitLineTracker.ts Voir le fichier

@ -39,7 +39,7 @@ export class GitLineTracker extends LineTracker {
updated = await this.updateState(e.selections, e.editor);
}
return super.fireLinesChanged(updated ? e : { ...e, selections: undefined });
super.fireLinesChanged(updated ? e : { ...e, selections: undefined });
}
private _subscriptionOnlyWhenActive: Disposable | undefined;

+ 2
- 2
src/uris/deepLinks/deepLink.ts Voir le fichier

@ -165,7 +165,7 @@ export interface DeepLinkServiceContext {
secondaryTargetSha?: string | undefined;
}
export const deepLinkStateTransitionTable: { [state: string]: { [action: string]: DeepLinkServiceState } } = {
export const deepLinkStateTransitionTable: Record<string, Record<string, DeepLinkServiceState>> = {
[DeepLinkServiceState.Idle]: {
[DeepLinkServiceAction.DeepLinkEventFired]: DeepLinkServiceState.RepoMatch,
},
@ -235,7 +235,7 @@ export interface DeepLinkProgress {
increment: number;
}
export const deepLinkStateToProgress: { [state: string]: DeepLinkProgress } = {
export const deepLinkStateToProgress: Record<string, DeepLinkProgress> = {
[DeepLinkServiceState.Idle]: { message: 'Done.', increment: 100 },
[DeepLinkServiceState.RepoMatch]: { message: 'Finding a matching repository...', increment: 10 },
[DeepLinkServiceState.CloneOrAddRepo]: { message: 'Adding repository...', increment: 20 },

+ 1
- 1
src/views/nodes/searchResultsNode.ts Voir le fichier

@ -263,7 +263,7 @@ export class SearchResultsNode extends ViewNode implements
return async (limit: number | undefined) => {
log = await (log ?? this.view.container.git.richSearchCommits(this.repoPath, this.search));
if (!useCacheOnce && log != null && log.query != null) {
if (!useCacheOnce && log?.query != null) {
log = await log.query(limit);
}
useCacheOnce = false;

+ 1
- 1
src/views/nodes/viewNode.ts Voir le fichier

@ -260,7 +260,7 @@ export abstract class ViewNode
debugger;
throw new Error('Id is required to delete state');
}
return this.view.nodeState.deleteState(this.id, key as string);
this.view.nodeState.deleteState(this.id, key as string);
}
getState<T extends StateKey<State> = StateKey<State>>(key: T): StateValue<State, T> | undefined {

+ 2
- 2
src/views/viewCommands.ts Voir le fichier

@ -583,9 +583,9 @@ export class ViewCommands {
@debug()
private openWorktree(node: WorktreeNode, options?: { location?: OpenWorkspaceLocation }) {
if (!(node instanceof WorktreeNode)) return undefined;
if (!(node instanceof WorktreeNode)) return;
return openWorkspace(node.worktree.uri, options);
openWorkspace(node.worktree.uri, options);
}
@debug()

+ 3
- 3
src/webviews/apps/plus/graph/GraphWrapper.tsx Voir le fichier

@ -84,7 +84,7 @@ export interface GraphWrapperProps {
onDimMergeCommits?: (dim: boolean) => void;
onDoubleClickRef?: (ref: GraphRef, metadata?: GraphRefMetadataItem) => void;
onDoubleClickRow?: (row: GraphRow, preserveFocus?: boolean) => void;
onMissingAvatars?: (emails: { [email: string]: string }) => void;
onMissingAvatars?: (emails: Record<string, string>) => void;
onMissingRefsMetadata?: (metadata: GraphMissingRefsMetadata) => void;
onMoreRows?: (id?: string) => void;
onRefsVisibilityChange?: (refs: GraphExcludedRef[], visible: boolean) => void;
@ -106,7 +106,7 @@ const getGraphDateFormatter = (config?: GraphComponentConfig): OnFormatCommitDat
formatCommitDateTime(commitDateTime, config?.dateStyle, config?.dateFormat, source);
};
const createIconElements = (): { [key: string]: ReactElement } => {
const createIconElements = (): Record<string, ReactElement> => {
const iconList = [
'head',
'remote',
@ -135,7 +135,7 @@ const createIconElements = (): { [key: string]: ReactElement } => {
const miniIconList = ['upstream-ahead', 'upstream-behind'];
const elementLibrary: { [key: string]: ReactElement } = {};
const elementLibrary: Record<string, ReactElement> = {};
iconList.forEach(iconKey => {
elementLibrary[iconKey] = createElement('span', { className: `graph-icon icon--${iconKey}` });
});

+ 2
- 2
src/webviews/apps/plus/graph/graph.tsx Voir le fichier

@ -631,14 +631,14 @@ export class GraphApp extends App {
}
private onGetMoreRows(sha?: string) {
return this.sendCommand(GetMoreRowsCommandType, { id: sha });
this.sendCommand(GetMoreRowsCommandType, { id: sha });
}
private onSearch(search: SearchQuery | undefined, options?: { limit?: number }) {
if (search == null) {
this.state.searchResults = undefined;
}
return this.sendCommand(SearchCommandType, { search: search, limit: options?.limit });
this.sendCommand(SearchCommandType, { search: search, limit: options?.limit });
}
private async onSearchPromise(search: SearchQuery, options?: { limit?: number; more?: boolean }) {

+ 6
- 6
src/webviews/apps/plus/timeline/chart.ts Voir le fichier

@ -133,13 +133,13 @@ export class TimelineChart implements Disposable {
return;
}
const xs: { [key: string]: string } = {};
const colors: { [key: string]: string } = {};
const names: { [key: string]: string } = {};
const axes: { [key: string]: string } = {};
const types: { [key: string]: ChartTypes } = {};
const xs: Record<string, string> = {};
const colors: Record<string, string> = {};
const names: Record<string, string> = {};
const axes: Record<string, string> = {};
const types: Record<string, ChartTypes> = {};
const groups: string[][] = [];
const series: { [key: string]: any } = {};
const series: Record<string, any> = {};
const group = [];
let index = 0;

+ 1
- 1
src/webviews/apps/shared/components/helpers/slots.ts Voir le fichier

@ -1,4 +1,4 @@
export function hasNodes(...nodes: Array<Node[] | undefined>) {
export function hasNodes(...nodes: (Node[] | undefined)[]) {
return nodes.some(nodes => (nodes?.length ?? 0) > 0);
}

+ 1
- 3
src/webviews/apps/shared/events.ts Voir le fichier

@ -2,9 +2,7 @@ export interface Disposable {
dispose(): void;
}
export interface Event<T> {
(listener: (e: T) => unknown, thisArgs?: unknown, disposables?: Disposable[]): Disposable;
}
export type Event<T> = (listener: (e: T) => unknown, thisArgs?: unknown, disposables?: Disposable[]) => Disposable;
type Listener<T> = [(e: T) => void, unknown] | ((e: T) => void);

+ 2
- 2
src/webviews/rebase/rebaseEditor.ts Voir le fichier

@ -139,7 +139,7 @@ export class RebaseEditorProvider implements CustomTextEditorProvider, Disposabl
get enabled(): boolean {
const associations = configuration.inspectAny<
CoreConfiguration,
{ [key: string]: string } | { viewType: string; filenamePattern: string }[]
Record<string, string> | { viewType: string; filenamePattern: string }[]
>('workbench.editorAssociations')?.globalValue;
if (associations == null || associations.length === 0) return true;
@ -165,7 +165,7 @@ export class RebaseEditorProvider implements CustomTextEditorProvider, Disposabl
const inspection = configuration.inspectAny<
CoreConfiguration,
{ [key: string]: string } | { viewType: string; filenamePattern: string }[]
Record<string, string> | { viewType: string; filenamePattern: string }[]
>('workbench.editorAssociations');
let associations = inspection?.globalValue;

+ 101
- 87
yarn.lock Voir le fichier

@ -170,14 +170,14 @@
resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz#8cfaf2ff603e9aabb910e9c0558c26cf32744061"
integrity sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==
"@eslint-community/eslint-utils@^4.2.0":
"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.3.0":
version "4.4.0"
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59"
integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==
dependencies:
eslint-visitor-keys "^3.3.0"
"@eslint-community/regexpp@^4.4.0":
"@eslint-community/regexpp@^4.4.0", "@eslint-community/regexpp@^4.5.0":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884"
integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==
@ -680,7 +680,7 @@
dependencies:
"@types/istanbul-lib-report" "*"
"@types/json-schema@*", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
"@types/json-schema@*", "@types/json-schema@^7.0.11", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
version "7.0.12"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.12.tgz#d70faba7039d5fca54c83c7dbab41051d2b6f6cb"
integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==
@ -792,89 +792,93 @@
dependencies:
"@types/yargs-parser" "*"
"@typescript-eslint/eslint-plugin@5.61.0":
version "5.61.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.61.0.tgz#a1a5290cf33863b4db3fb79350b3c5275a7b1223"
integrity sha512-A5l/eUAug103qtkwccSCxn8ZRwT+7RXWkFECdA4Cvl1dOlDUgTpAOfSEElZn2uSUxhdDpnCdetrf0jvU4qrL+g==
dependencies:
"@eslint-community/regexpp" "^4.4.0"
"@typescript-eslint/scope-manager" "5.61.0"
"@typescript-eslint/type-utils" "5.61.0"
"@typescript-eslint/utils" "5.61.0"
"@typescript-eslint/eslint-plugin@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.0.0.tgz#19ff4f1cab8d6f8c2c1825150f7a840bc5d9bdc4"
integrity sha512-xuv6ghKGoiq856Bww/yVYnXGsKa588kY3M0XK7uUW/3fJNNULKRfZfSBkMTSpqGG/8ZCXCadfh8G/z/B4aqS/A==
dependencies:
"@eslint-community/regexpp" "^4.5.0"
"@typescript-eslint/scope-manager" "6.0.0"
"@typescript-eslint/type-utils" "6.0.0"
"@typescript-eslint/utils" "6.0.0"
"@typescript-eslint/visitor-keys" "6.0.0"
debug "^4.3.4"
grapheme-splitter "^1.0.4"
graphemer "^1.4.0"
ignore "^5.2.0"
ignore "^5.2.4"
natural-compare "^1.4.0"
natural-compare-lite "^1.4.0"
semver "^7.3.7"
tsutils "^3.21.0"
semver "^7.5.0"
ts-api-utils "^1.0.1"
"@typescript-eslint/parser@5.61.0":
version "5.61.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.61.0.tgz#7fbe3e2951904bb843f8932ebedd6e0635bffb70"
integrity sha512-yGr4Sgyh8uO6fSi9hw3jAFXNBHbCtKKFMdX2IkT3ZqpKmtAq3lHS4ixB/COFuAIJpwl9/AqF7j72ZDWYKmIfvg==
"@typescript-eslint/parser@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.0.0.tgz#46b2600fd1f67e62fc00a28093a75f41bf7effc4"
integrity sha512-TNaufYSPrr1U8n+3xN+Yp9g31vQDJqhXzzPSHfQDLcaO4tU+mCfODPxCwf4H530zo7aUBE3QIdxCXamEnG04Tg==
dependencies:
"@typescript-eslint/scope-manager" "5.61.0"
"@typescript-eslint/types" "5.61.0"
"@typescript-eslint/typescript-estree" "5.61.0"
"@typescript-eslint/scope-manager" "6.0.0"
"@typescript-eslint/types" "6.0.0"
"@typescript-eslint/typescript-estree" "6.0.0"
"@typescript-eslint/visitor-keys" "6.0.0"
debug "^4.3.4"
"@typescript-eslint/scope-manager@5.61.0":
version "5.61.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.61.0.tgz#b670006d069c9abe6415c41f754b1b5d949ef2b2"
integrity sha512-W8VoMjoSg7f7nqAROEmTt6LoBpn81AegP7uKhhW5KzYlehs8VV0ZW0fIDVbcZRcaP3aPSW+JZFua+ysQN+m/Nw==
"@typescript-eslint/scope-manager@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.0.0.tgz#8ede47a37cb2b7ed82d329000437abd1113b5e11"
integrity sha512-o4q0KHlgCZTqjuaZ25nw5W57NeykZT9LiMEG4do/ovwvOcPnDO1BI5BQdCsUkjxFyrCL0cSzLjvIMfR9uo7cWg==
dependencies:
"@typescript-eslint/types" "5.61.0"
"@typescript-eslint/visitor-keys" "5.61.0"
"@typescript-eslint/types" "6.0.0"
"@typescript-eslint/visitor-keys" "6.0.0"
"@typescript-eslint/type-utils@5.61.0":
version "5.61.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.61.0.tgz#e90799eb2045c4435ea8378cb31cd8a9fddca47a"
integrity sha512-kk8u//r+oVK2Aj3ph/26XdH0pbAkC2RiSjUYhKD+PExemG4XSjpGFeyZ/QM8lBOa7O8aGOU+/yEbMJgQv/DnCg==
"@typescript-eslint/type-utils@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.0.0.tgz#0478d8a94f05e51da2877cc0500f1b3c27ac7e18"
integrity sha512-ah6LJvLgkoZ/pyJ9GAdFkzeuMZ8goV6BH7eC9FPmojrnX9yNCIsfjB+zYcnex28YO3RFvBkV6rMV6WpIqkPvoQ==
dependencies:
"@typescript-eslint/typescript-estree" "5.61.0"
"@typescript-eslint/utils" "5.61.0"
"@typescript-eslint/typescript-estree" "6.0.0"
"@typescript-eslint/utils" "6.0.0"
debug "^4.3.4"
tsutils "^3.21.0"
ts-api-utils "^1.0.1"
"@typescript-eslint/types@5.61.0":
version "5.61.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.61.0.tgz#e99ff11b5792d791554abab0f0370936d8ca50c0"
integrity sha512-ldyueo58KjngXpzloHUog/h9REmHl59G1b3a5Sng1GfBo14BkS3ZbMEb3693gnP1k//97lh7bKsp6/V/0v1veQ==
"@typescript-eslint/types@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.0.0.tgz#19795f515f8decbec749c448b0b5fc76d82445a1"
integrity sha512-Zk9KDggyZM6tj0AJWYYKgF0yQyrcnievdhG0g5FqyU3Y2DRxJn4yWY21sJC0QKBckbsdKKjYDV2yVrrEvuTgxg==
"@typescript-eslint/typescript-estree@5.61.0":
version "5.61.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.61.0.tgz#4c7caca84ce95bb41aa585d46a764bcc050b92f3"
integrity sha512-Fud90PxONnnLZ36oR5ClJBLTLfU4pIWBmnvGwTbEa2cXIqj70AEDEmOmpkFComjBZ/037ueKrOdHuYmSFVD7Rw==
"@typescript-eslint/typescript-estree@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.0.0.tgz#1e09aab7320e404fb9f83027ea568ac24e372f81"
integrity sha512-2zq4O7P6YCQADfmJ5OTDQTP3ktajnXIRrYAtHM9ofto/CJZV3QfJ89GEaM2BNGeSr1KgmBuLhEkz5FBkS2RQhQ==
dependencies:
"@typescript-eslint/types" "5.61.0"
"@typescript-eslint/visitor-keys" "5.61.0"
"@typescript-eslint/types" "6.0.0"
"@typescript-eslint/visitor-keys" "6.0.0"
debug "^4.3.4"
globby "^11.1.0"
is-glob "^4.0.3"
semver "^7.3.7"
tsutils "^3.21.0"
semver "^7.5.0"
ts-api-utils "^1.0.1"
"@typescript-eslint/utils@5.61.0":
version "5.61.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.61.0.tgz#5064838a53e91c754fffbddd306adcca3fe0af36"
integrity sha512-mV6O+6VgQmVE6+xzlA91xifndPW9ElFW8vbSF0xCT/czPXVhwDewKila1jOyRwa9AE19zKnrr7Cg5S3pJVrTWQ==
"@typescript-eslint/utils@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.0.0.tgz#27a16d0d8f2719274a39417b9782f7daa3802db0"
integrity sha512-SOr6l4NB6HE4H/ktz0JVVWNXqCJTOo/mHnvIte1ZhBQ0Cvd04x5uKZa3zT6tiodL06zf5xxdK8COiDvPnQ27JQ==
dependencies:
"@eslint-community/eslint-utils" "^4.2.0"
"@types/json-schema" "^7.0.9"
"@eslint-community/eslint-utils" "^4.3.0"
"@types/json-schema" "^7.0.11"
"@types/semver" "^7.3.12"
"@typescript-eslint/scope-manager" "5.61.0"
"@typescript-eslint/types" "5.61.0"
"@typescript-eslint/typescript-estree" "5.61.0"
"@typescript-eslint/scope-manager" "6.0.0"
"@typescript-eslint/types" "6.0.0"
"@typescript-eslint/typescript-estree" "6.0.0"
eslint-scope "^5.1.1"
semver "^7.3.7"
semver "^7.5.0"
"@typescript-eslint/visitor-keys@5.61.0":
version "5.61.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.61.0.tgz#c79414fa42158fd23bd2bb70952dc5cdbb298140"
integrity sha512-50XQ5VdbWrX06mQXhy93WywSFZZGsv3EOjq+lqp6WC2t+j3mb6A9xYVdrRxafvK88vg9k9u+CT4l6D8PEatjKg==
"@typescript-eslint/visitor-keys@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.0.0.tgz#0b49026049fbd096d2c00c5e784866bc69532a31"
integrity sha512-cvJ63l8c0yXdeT5POHpL0Q1cZoRcmRKFCtSjNGJxPkcP571EfZMcNbzWAc7oK3D1dRzm/V5EwtkANTZxqvuuUA==
dependencies:
"@typescript-eslint/types" "5.61.0"
eslint-visitor-keys "^3.3.0"
"@typescript-eslint/types" "6.0.0"
eslint-visitor-keys "^3.4.1"
"@vscode/codicons@0.0.33":
version "0.0.33"
@ -2613,9 +2617,9 @@ ee-first@1.1.1:
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
electron-to-chromium@^1.4.431:
version "1.4.454"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.454.tgz#774dc7cb5e58576d0125939ec34a4182f3ccc87d"
integrity sha512-pmf1rbAStw8UEQ0sr2cdJtWl48ZMuPD9Sto8HVQOq9vx9j2WgDEN6lYoaqFvqEHYOmGA9oRGn7LqWI9ta0YugQ==
version "1.4.455"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.455.tgz#81fe4353ac970eb971c07088c8da8b7f6280ddc9"
integrity sha512-8tgdX0Odl24LtmLwxotpJCVjIndN559AvaOtd67u+2mo+IDsgsTF580NB+uuDCqsHw8yFg53l5+imFV9Fw3cbA==
emoji-regex@^8.0.0:
version "8.0.0"
@ -3531,6 +3535,11 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4,
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
grapheme-splitter@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e"
integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==
graphemer@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"
@ -3795,9 +3804,9 @@ https-proxy-agent@5.0.1, https-proxy-agent@^5.0.0:
debug "4"
https-proxy-agent@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.0.tgz#75cb70d04811685667183b31ab158d006750418a"
integrity sha512-0euwPCRyAPSgGdzD1IVN9nJYHtBhJwb6XPfbpQcYbPCwrBidX6GzxmchnaF4sfF/jPb74Ojx5g4yTg3sixlyPw==
version "7.0.1"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz#0277e28f13a07d45c663633841e20a40aaafe0ab"
integrity sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==
dependencies:
agent-base "^7.0.2"
debug "4"
@ -6019,6 +6028,13 @@ react@16.8.4:
prop-types "^15.6.2"
scheduler "^0.13.4"
react@18.3.0-canary-7ac5e9a60-20230508:
version "18.3.0-canary-7ac5e9a60-20230508"
resolved "https://registry.yarnpkg.com/react/-/react-18.3.0-canary-7ac5e9a60-20230508.tgz#5a492f2b5169e542ed424ba6b0b74d3638d7ec05"
integrity sha512-FjClwskD8xl16uEYIB93Cz0WICi5PMOnoYvSI8YIpYdJfx5pLBjIwhEJ4hNdw/zDO7bY76kXsnlLVX6HK+4+hQ==
dependencies:
loose-envify "^1.1.0"
read-installed-packages@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/read-installed-packages/-/read-installed-packages-2.0.1.tgz#8ba63a9382a5158c37a288c2f21268d6eb9c85eb"
@ -6342,7 +6358,7 @@ semver-regex@4.0.5:
resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-4.0.5.tgz#fbfa36c7ba70461311f5debcb3928821eb4f9180"
integrity sha512-hunMQrEy1T6Jr2uEVjrAIqjwWcQTgOAcIM52C8MY1EZSD3DDNft04XzvYKPqjED65bNVVko0YI38nYeEHCX3yw==
"semver@2 || 3 || 4 || 5 || 6 || 7", semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.0:
"semver@2 || 3 || 4 || 5 || 6 || 7", semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.8, semver@^7.5.0:
version "7.5.4"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
@ -6350,14 +6366,14 @@ semver-regex@4.0.5:
lru-cache "^6.0.0"
semver@^5.1.0:
version "5.7.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
version "5.7.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8"
integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==
semver@^6.3.0:
version "6.3.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
version "6.3.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
sentence-case@^3.0.4:
version "3.0.4"
@ -6991,6 +7007,11 @@ trim-newlines@^4.0.2:
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-4.1.1.tgz#28c88deb50ed10c7ba6dc2474421904a00139125"
integrity sha512-jRKj0n0jXWo6kh62nA5TEh3+4igKDXLvzBJcPpiizP7oOolUrYIxmVBG9TOtHYFHoddUk6YvAkGeGoSVTXfQXQ==
ts-api-utils@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.1.tgz#8144e811d44c749cd65b2da305a032510774452d"
integrity sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==
ts-loader@9.4.4:
version "9.4.4"
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.4.4.tgz#6ceaf4d58dcc6979f84125335904920884b7cee4"
@ -7023,7 +7044,7 @@ tsconfig-paths@^3.14.1:
minimist "^1.2.6"
strip-bom "^3.0.0"
tslib@^1.13.0, tslib@^1.8.1:
tslib@^1.13.0:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
@ -7038,13 +7059,6 @@ tsscmp@1.0.6:
resolved "https://registry.yarnpkg.com/tsscmp/-/tsscmp-1.0.6.tgz#85b99583ac3589ec4bfef825b5000aa911d605eb"
integrity sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==
tsutils@^3.21.0:
version "3.21.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
dependencies:
tslib "^1.8.1"
ttf2eot@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/ttf2eot/-/ttf2eot-2.0.0.tgz#8e6337a585abd1608a0c84958ab483ce69f6654b"
@ -7414,9 +7428,9 @@ which-boxed-primitive@^1.0.2:
is-symbol "^1.0.3"
which-typed-array@^1.1.9:
version "1.1.9"
resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6"
integrity sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==
version "1.1.10"
resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.10.tgz#74baa2789991905c2076abb317103b866c64e69e"
integrity sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==
dependencies:
available-typed-arrays "^1.0.5"
call-bind "^1.0.2"

Chargement…
Annuler
Enregistrer