WebStorm - Suppress unused param warning JavaScript -



WebStorm - Suppress unused param warning JavaScript -

does know how suppress unused parameter warning in webstorm? tried jslint, not work

/*jslint node: true, unparam: true*/ /*global __dirname: false */ "use strict"; var util = require('../util'), logger = util.getlogger(module.filename), ; var userhelper = module.exports = function () { }; /** * helper object user facade */ userhelper.prototype = { dosomething : function(unusedparam) { //do implementation } };

jshint instead of jslint works me on webstorm 8 , webstorm 9 beta:

/*jshint node:true, unused:false */

also, create sure have jshint (or jslint) enabled in preferences. jshint has "warn unused variables". note: jshint check not distinguish between variables , function parameters unless jshint configured unused:vars.

you can uncheck "unused parameters" alternative under jslint configuration screen.

relevant jshint doc

javascript webstorm jslint

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -