The indent option appears to not be recognized any more.
http://linterrors.com/js/option-indent
Is this still an option for jslint or has it been removed?
I've tried setting it using the web interface here, in multiple syntaxes, but I keep getting an error.
Bad option 'indent'.
/*jslint
bitwise,
browser:true,
indent: 2
*/
function test () {
const test = "hello SO";
}
Research:
The changelog on github seems pretty small and does not mention it.
EDIT: jslint recently added 2-space indent support with directive
/*jslint indent2*/i'm a jslint maintainer. toyed with a patch reintroducing directive
/*jslint indent2*/to make jslint more accessible to projects already using 2-space indents here.you can post a feature-request for it @ https://github.com/jslint-org/jslint/issues to speed up the process.
latest jslint has the following directives: