Closed hoangnguyencong closed 8 years ago
/*jslint node: true, indent: 2 */ // Line 1, Pos 1
"use strict"; // Line 2, Pos 1
JSLint no longer supports an option for indentation. Please log an issue against JSLint if you require it. Note that Sublime-JSLint allows you to use any version of JSLint you want to. Just change your config settings to point to it on your file system.
The 2015-10-08 jslint.js now hardcoded 4 margin and no longer accept indent option.
@jklepp-tgm, @MarcosRava ,@donnykurnia, @73rhodes thank for your feedbacks :+1:
You can put a config file called
.jslintrc
into your home directory.edit: you can also specify this option in the plugin options.
For some reason the JSLint version shipped with this plugin ignore the config file so you have to use your own version of JSLint and you also will have to change the jslint command in the plugin settings.
A different approach is to put a comment like
/*jslint indent: 2*/
into your js files.