sveltejs / eslint-plugin-svelte

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

feat: add rule types #735

Closed xiBread closed 2 months ago

xiBread commented 2 months ago

Fixes #707

This PR deviates slightly from the original request; instead of supporting eslint-define-config, this directly augments ESLint's Linter.FlatConfig type:

Screenshot 2024-04-10 at 7 14 42 PM

This relies on eslint-typegen. I've added a new build script in order to preserve the comments in this rule-types.d.ts file since tsconfig.build.json removes them (if there's a better way to do this then please let me know).

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: e0b869024fb21f957bf21916e12e90368cb08b81

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