8000 Set 'alwaysStrict' to true. / Add license header · FutureYu/vscode-leetcode@32611b8 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 32611b8

Browse files
committed
Set 'alwaysStrict' to true. / Add license header
1 parent aa539cb commit 32611b8

19 files changed

+39
-20
lines changed

src/commands/cache.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import { leetCodeExecutor } from "../leetCodeExecutor";
45
import { DialogType, promptForOpenOutputChannel } from "../utils/uiUtils";

src/commands/list.ts

10000 Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as vscode from "vscode";
45
import { leetCodeExecutor } from "../leetCodeExecutor";

src/commands/plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as fse from "fs-extra";
45
import * as os from "os";

src/commands/session.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as vscode from "vscode";
45
import { leetCodeExecutor } from "../leetCodeExecutor";

src/commands/show.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as fse from "fs-extra";
45
import * as vscode from "vscode";

src/commands/submit.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as vscode from "vscode";
45
import { leetCodeExecutor } from "../leetCodeExecutor";

src/commands/test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as fse from "fs-extra";
45
import * as vscode from "vscode";

src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as vscode from "vscode";
45
import * as cache from "./commands/cache";

src/leetCodeChannel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as vscode from "vscode";
45

src/leetCodeExecutor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as cp from "child_process";
45
import * as opn from "opn";

src/leetCodeExplorer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as path from "path";
45
import * as vscode from "vscode";

src/leetCodeManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as cp from "child_process";
45
import { EventEmitter } from "events";

src/leetCodeStatusBarItem.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as vscode from "vscode";
45
import { UserStatus } from "./shared";

src/shared.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as vscode from "vscode";
45

src/utils/cpUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as cp from "child_process";
45
import * as vscode from "vscode";

src/utils/uiUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as fse from "fs-extra";
45
import * as opn from "opn";

src/utils/workspaceUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as os from "os";
45
import * as path from "path";

src/utils/wslUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use strict";
1+
// Copyright (c) jdneo. All rights reserved.
2+
// Licensed under the MIT license.
23

34
import * as vscode from "vscode";
45
import { executeCommand } from "./cpUtils";

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
"noImplicitThis": true,
1313
"noImplicitReturns": true,
1414
"strictNullChecks": true,
15-
"noUnusedParameters": true
15+
"noUnusedParameters": true,
16+
"alwaysStrict": true
1617
},
1718
"exclude": [
1819
"node_modules",
1920
".vscode-test"
2021
]
21-
}
22+
}

0 commit comments

Comments
 (0)
0