✅ The extends: 'recommended'
property in a configuration file enables this rule.
Inline styles are not the best practice because they are hard to maintain and usually make the overall size of the project bigger. This rule forbids inline styles. Use CSS classes instead.
This rule forbids the following:
This rule allows the following:
The following values are valid configuration:
- boolean -
true
to enable /false
to disable - object -- An object with the following keys:
allowDynamicStyles
-- Whether dynamically-generated inline styles should be allowed (defaults totrue
)