stylefmt icon indicating copy to clipboard operation
stylefmt copied to clipboard

Disabled `indentation` rule yields TypeError

Open ArmorDarks opened this issue 9 years ago • 0 comments

Seems that Stylefmt CLI doesn't recognise disabled Stylelint indentation rule in .stylelintrc because of null.

Example:


---
extends: stylelint-config-standard

rules:
  indentation: null

Yields

TypeError: Cannot read property '0' of null
    at getIndentationFromStylelintRules (J:\Work\Kotsu\node_modules\stylefmt\lib\params.js:41:30)
    at J:\Work\Kotsu\node_modules\stylefmt\lib\params.js:119:28

Please, note that null is suggested by Stylelint way of disabling rules

ArmorDarks avatar Aug 09 '16 14:08 ArmorDarks