Suppress warnings

This commit is contained in:
ckcz123 committed 2020-06-12 21:45:57 +08:00
1 parent 12d134b1dc
commit 1b1b46fa6d
7 files changed
+15 -7

No files matched your search

+4
View File
@@ -2634,6 +2634,10 @@
}
if (!options.indent) // JSHint error.character actually is a column index, this fixes underlining on lines using tabs for indentation
options.indent = 1; // JSHint default value is 4
options.asi = true; // Suppress "missing semicolon"
options.shadow = true; // Suppress "variable is already defined"
options.eqnull = true; // Suppress "compare with null"
options.maxerr = 1000;
JSHINT(text, options, options.globals);
var errors = JSHINT.data().errors, result = [];
if (errors) parseErrors(errors, result);