sveltejs / eslint-plugin-svelte

ESLint plugin for Svelte using AST
https://sveltejs.github.io/eslint-plugin-svelte/
MIT License
277 stars 30 forks source link

feat: Add prefer option to prefer-class-directive #690

Closed sdarnell closed 4 months ago

sdarnell commented 4 months ago

This the prefer option can be 'empty' or 'always' with 'empty' being the default. 'always' matches the current behaviour, always insisting on directives 'empty' only prefers directives when one class is empty.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: e74d997de0f36250970e650b66229dd086c1b097

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------- | ----- | | eslint-plugin-svelte | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

sdarnell commented 4 months ago

Fixes #689