Skip to content

Commit 32611b8

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

19 files changed

+39
-20
lines changed

Diff for: src/commands/cache.ts

+2-1
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";

Diff for: src/commands/list.ts

+2-1
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";

Diff for: src/commands/plugin.ts

+2-1
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";

Diff for: src/commands/session.ts

+2-1
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";

Diff for: src/commands/show.ts

+2-1
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";

Diff for: src/commands/submit.ts

+2-1
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";

Diff for: src/commands/test.ts

+2-1
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";

Diff for: src/extension.ts

+2-1
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";

Diff for: src/leetCodeChannel.ts

+2-1
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

Diff for: src/leetCodeExecutor.ts

+2-1
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";

Diff for: src/leetCodeExplorer.ts

+2-1
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";

Diff for: src/leetCodeManager.ts

+2-1
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";

Diff for: src/leetCodeStatusBarItem.ts

+2-1
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";

Diff for: src/shared.ts

+2-1
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

Diff for: src/utils/cpUtils.ts

+2-1
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";

Diff for: src/utils/uiUtils.ts

+2-1
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";

Diff for: src/utils/workspaceUtils.ts

+2-1
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";

Diff for: src/utils/wslUtils.ts

+2-1
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";

Diff for: tsconfig.json

+3-2
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)