You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jslint stop scanning while encounter const keyword. So I have to use Douglas Crockford's lastest jslint.js to override the local one at /src/extensions/default/JSLint/thirdparty/jslint/jslint.js and do a little following change on src/extensions/default/JSLint/main.js and it works great.
Comment by petetnt Saturday Dec 12, 2015 at 15:32 GMT
Brackets is moving to using ESLint as the default linter in 1.6, see adobe/brackets#11984 for more info. The status of JSLint is still undecided afaik but PR upgrading JSLint in the core would be appriciated
Issue by Lingcan
Saturday Dec 12, 2015 at 13:46 GMT
Originally opened as adobe/brackets#12000
Jslint stop scanning while encounter
const
keyword. So I have to use Douglas Crockford's lastest jslint.js to override the local one at /src/extensions/default/JSLint/thirdparty/jslint/jslint.js and do a little following change on src/extensions/default/JSLint/main.js and it works great.var jslintResult = jslint(text, options);
if (!jslintResult || jslintResult.ok) {
return null;
}
var errors = jslintResult.warnings.map(function (jslintError) {
return {
pos: { line: jslintError.line, ch: jslintError.column },
message: jslintError.message,
type: CodeInspection.Type.WARNING
};
});
var result = { errors: errors, aborted: false };
if (jslintResult.stop) {
var lastError = {
pos: {
line: jslintResult.warnings[jslintResult.warnings.length - 1].line,
ch: jslintResult.warnings[jslintResult.warnings.length - 1].column
},
message: 'Scanning stopped ...',
type: CodeInspection.Type.META
};
result.aborted = true;
result.errors.push(lastError);
}
return result;
Could anyone help to update the jslint to a newer version ?
Douglas Crockford's code:
https://github.com/douglascrockford/JSLint/blob/master/jslint.js
The text was updated successfully, but these errors were encountered: