The Wayback Machine - https://web.archive.org/web/20240927193308/https://github.com/LeetCode-OpenSource/vscode-leetcode/commit/32611b8d23e885cb052ae11a8be78c1641354e18
Skip to content

Commit

Permalink
Set 'alwaysStrict' to true. / Add license header
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Dec 27, 2018
1 parent aa539cb commit 32611b8
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 20 deletions.
3 changes: 2 additions & 1 deletion src/commands/cache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import { leetCodeExecutor } from "../leetCodeExecutor";
import { DialogType, promptForOpenOutputChannel } from "../utils/uiUtils";
Expand Down
3 changes: 2 additions & 1 deletion src/commands/list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as vscode from "vscode";
import { leetCodeExecutor } from "../leetCodeExecutor";
Expand Down
3 changes: 2 additions & 1 deletion src/commands/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as fse from "fs-extra";
import * as os from "os";
Expand Down
3 changes: 2 additions & 1 deletion src/commands/session.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as vscode from "vscode";
import { leetCodeExecutor } from "../leetCodeExecutor";
Expand Down
3 changes: 2 additions & 1 deletion src/commands/show.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as fse from "fs-extra";
import * as vscode from "vscode";
Expand Down
3 changes: 2 additions & 1 deletion src/commands/submit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as vscode from "vscode";
import { leetCodeExecutor } from "../leetCodeExecutor";
Expand Down
3 changes: 2 additions & 1 deletion src/commands/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as fse from "fs-extra";
import * as vscode from "vscode";
Expand Down
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as vscode from "vscode";
import * as cache from "./commands/cache";
Expand Down
3 changes: 2 additions & 1 deletion src/leetCodeChannel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as vscode from "vscode";

Expand Down
3 changes: 2 additions & 1 deletion src/leetCodeExecutor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as cp from "child_process";
import * as opn from "opn";
Expand Down
3 changes: 2 additions & 1 deletion src/leetCodeExplorer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as path from "path";
import * as vscode from "vscode";
Expand Down
3 changes: 2 additions & 1 deletion src/leetCodeManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as cp from "child_process";
import { EventEmitter } from "events";
Expand Down
3 changes: 2 additions & 1 deletion src/leetCodeStatusBarItem.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as vscode from "vscode";
import { UserStatus } from "./shared";
Expand Down
3 changes: 2 additions & 1 deletion src/shared.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as vscode from "vscode";

Expand Down
3 changes: 2 additions & 1 deletion src/utils/cpUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as cp from "child_process";
import * as vscode from "vscode";
Expand Down
3 changes: 2 additions & 1 deletion src/utils/uiUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as fse from "fs-extra";
import * as opn from "opn";
Expand Down
3 changes: 2 additions & 1 deletion src/utils/workspaceUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as os from "os";
import * as path from "path";
Expand Down
3 changes: 2 additions & 1 deletion src/utils/wslUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as vscode from "vscode";
import { executeCommand } from "./cpUtils";
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"noImplicitThis": true,
"noImplicitReturns": true,
"strictNullChecks": true,
"noUnusedParameters": true
"noUnusedParameters": true,
"alwaysStrict": true
},
"exclude": [
"node_modules",
".vscode-test"
]
}
}

0 comments on commit 32611b8

Please sign in to comment.