Svelte
Recipes
- Recommended svelte code cleanup
- disallow dynamic slot name
- disallow spaces around equal signs in attribute
- disallow to use of the store itself as an operand. Need to use $ prefix or get function.
- disallow unnecessary mustache interpolations
- enforce consistent indentation
- enforce consistent spacing after the in a HTML comment
- enforce order of attributes
- enforce quotes style of HTML attributes
- enforce self-closing style
- enforce the location of first attribute
- enforce the maximum number of attributes per line
- enforce unified spacing in mustache
- enforce use of shorthand syntax in attribute
- enforce use of shorthand syntax in directives
- require class directives instead of ternary expressions
- require or disallow a space before tag's closing brackets
- require style directives instead of style attribute