stylefmt
stylefmt copied to clipboard
Disabled `indentation` rule yields TypeError
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