jscs-jsdoc icon indicating copy to clipboard operation
jscs-jsdoc copied to clipboard

enable/disable individual rules

Open daprahamian opened this issue 10 years ago • 2 comments

Hi,

How do you enable/disable individual rules? I have been able to disable either all rules with:

// jscs:disable

And I have been able to disable all jsDoc rules with:

// jscs:disable jsDoc

But I have not figured out how to disable select jsdoc rules while using the others. For neither of the following work:

// jscs:disable checkRedundantParams
// jscs:disable jsDoc.checkRedundantParams

Is there a way to do what I am looking to do?

Thanks

daprahamian avatar Nov 26 '14 21:11 daprahamian

Unfortunately it's a functionality coming from jscs.

/cc @mdevils

qfox avatar Nov 26 '14 21:11 qfox

All we can do in plugin is to move all rules to root. So we would have something like:

{
  jsdocCheckTypes: ...
  jsdocEnforceExistance: ...
  // etc...
}

And you'll have to disable it as usual:

// jscs:disable jsdocCheckRedundantParams

qfox avatar Nov 26 '14 21:11 qfox