Skip to content

Commit 236b1d8

Browse files
author
Mohsen Azimi
committed
Revert "enable noUnusedLocals"
This reverts commit 3565cc1.
1 parent ddb4b9e commit 236b1d8

6 files changed

Lines changed: 1 addition & 20 deletions

lib/HotModuleReplacement.runtime.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
/*global $hash$ $requestTimeout$ installedModules $require$ hotDownloadManifest hotDownloadUpdateChunk hotDisposeChunk modules */
66
module.exports = function() {
77
var hotApplyOnUpdate = true;
8-
// @ts-ignore
98
var hotCurrentHash = $hash$; // eslint-disable-line no-unused-vars
109
var hotRequestTimeout = $requestTimeout$;
1110
var hotCurrentModuleData = {};
1211
var hotCurrentChildModule; // eslint-disable-line no-unused-vars
13-
// @ts-ignore
1412
var hotCurrentParents = []; // eslint-disable-line no-unused-vars
15-
// @ts-ignore
1613
var hotCurrentParentsTemp = []; // eslint-disable-line no-unused-vars
1714

18-
// @ts-ignore
1915
// eslint-disable-next-line no-unused-vars
2016
function hotCreateRequire(moduleId) {
2117
var me = installedModules[moduleId];
@@ -84,7 +80,6 @@ module.exports = function() {
8480
return fn;
8581
}
8682

87-
// @ts-ignore
8883
// eslint-disable-next-line no-unused-vars
8984
function hotCreateModule(moduleId) {
9085
var hot = {
@@ -211,7 +206,6 @@ module.exports = function() {
211206
});
212207
}
213208

214-
// @ts-ignore
215209
// eslint-disable-next-line no-unused-vars
216210
function hotAddUpdateChunk(chunkId, moreModules) {
217211
if (!hotAvailableFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])

lib/node/NodeMainTemplate.runtime.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
*/
55
/*global installedChunks $hotChunkFilename$ hotAddUpdateChunk $hotMainFilename$ */
66
module.exports = function() {
7-
// @ts-ignore
87
// eslint-disable-next-line no-unused-vars
98
function hotDownloadUpdateChunk(chunkId) {
109
var chunk = require("./" + $hotChunkFilename$);
1110
hotAddUpdateChunk(chunk.id, chunk.modules);
1211
}
1312

14-
// @ts-ignore
1513
// eslint-disable-next-line no-unused-vars
1614
function hotDownloadManifest() {
1715
try {
@@ -22,7 +20,6 @@ module.exports = function() {
2220
return Promise.resolve(update);
2321
}
2422

25-
// @ts-ignore
2623
//eslint-disable-next-line no-unused-vars
2724
function hotDisposeChunk(chunkId) {
2825
delete installedChunks[chunkId];

lib/node/NodeMainTemplateAsync.runtime.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
/*global installedChunks $hotChunkFilename$ $require$ hotAddUpdateChunk $hotMainFilename$ */
66
module.exports = function() {
7-
// @ts-ignore
87
// eslint-disable-next-line no-unused-vars
98
function hotDownloadUpdateChunk(chunkId) {
109
var filename = require("path").join(__dirname, $hotChunkFilename$);
@@ -22,7 +21,6 @@ module.exports = function() {
2221
});
2322
}
2423

25-
// @ts-ignore
2624
// eslint-disable-next-line no-unused-vars
2725
function hotDownloadManifest() {
2826
var filename = require("path").join(__dirname, $hotMainFilename$);
@@ -39,7 +37,6 @@ module.exports = function() {
3937
});
4038
}
4139

42-
// @ts-ignore
4340
//eslint-disable-next-line no-unused-vars
4441
function hotDisposeChunk(chunkId) {
4542
delete installedChunks[chunkId];

lib/web/JsonpMainTemplate.runtime.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
*/
55
/*globals hotAddUpdateChunk parentHotUpdateCallback document XMLHttpRequest $require$ $hotChunkFilename$ $hotMainFilename$ $crossOriginLoading$ */
66
module.exports = function() {
7-
// @ts-ignore
87
// eslint-disable-next-line no-unused-vars
98
function webpackHotUpdateCallback(chunkId, moreModules) {
109
hotAddUpdateChunk(chunkId, moreModules);
1110
if (parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
1211
} //$semicolon
1312

14-
// @ts-ignore
1513
// eslint-disable-next-line no-unused-vars
1614
function hotDownloadUpdateChunk(chunkId) {
1715
var head = document.getElementsByTagName("head")[0];
@@ -22,7 +20,6 @@ module.exports = function() {
2220
head.appendChild(script);
2321
}
2422

25-
// @ts-ignore
2623
// eslint-disable-next-line no-unused-vars
2724
function hotDownloadManifest(requestTimeout) {
2825
requestTimeout = requestTimeout || 10000;

lib/webworker/WebWorkerMainTemplate.runtime.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@
44
*/
55
/*globals installedChunks hotAddUpdateChunk parentHotUpdateCallback importScripts XMLHttpRequest $require$ $hotChunkFilename$ $hotMainFilename$ */
66
module.exports = function() {
7-
// @ts-ignore
87
// eslint-disable-next-line no-unused-vars
98
function webpackHotUpdateCallback(chunkId, moreModules) {
109
hotAddUpdateChunk(chunkId, moreModules);
1110
if (parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
1211
} //$semicolon
1312

14-
// @ts-ignore
1513
// eslint-disable-next-line no-unused-vars
1614
function hotDownloadUpdateChunk(chunkId) {
1715
importScripts($require$.p + $hotChunkFilename$);
1816
}
1917

20-
// @ts-ignore
2118
// eslint-disable-next-line no-unused-vars
2219
function hotDownloadManifest(requestTimeout) {
2320
requestTimeout = requestTimeout || 10000;
@@ -60,7 +57,6 @@ module.exports = function() {
6057
});
6158
}
6259

63-
// @ts-ignore
6460
//eslint-disable-next-line no-unused-vars
6561
function hotDisposeChunk(chunkId) {
6662
delete installedChunks[chunkId];

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
2929

3030
/* Additional Checks */
31-
"noUnusedLocals": true, /* Report errors on unused locals. */
31+
// "noUnusedLocals": true, /* Report errors on unused locals. */
3232
// "noUnusedParameters": true, /* Report errors on unused parameters. */
3333
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
3434
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

0 commit comments

Comments
 (0)