javascript - Making all plugin specific rules strict -


in eslint.json configuration, eslint allows configure rule strictness using following logic:

  • 0 - "off"
  • 1 - "warning"
  • 2 - "error"

example:

{   "rules": {     "jasmine/valid-expect": 2,     "eqeqeq": [2, "smart"]   } } 

question: possible make plugin-specific rules strict (code 2)?

in case, want rules coming jasmine (eslint-plugin-jasmine plugin) produce error if there violation.

i've tried specify "jasmine/*": 2 , "jasmine": 2, both failed "definition rule ... not found" error.

eslint doesn't have support wildcards in configuration. however, can request plugin creator adds shareable config plugin (http://eslint.org/docs/developer-guide/working-with-plugins#configs-in-plugins) after can add extends: plugin:jasmine/all config file use config all provided plugin.


Comments