Skip to content

feat: add svelte/@typescript-eslint/no-unnecessary-condition rule #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 26, 2022

Conversation

ota-meshi
Copy link
Member

This PR adds svelte/@typescript-eslint/no-unnecessary-condition rule that extends @typescript-eslint/no-unnecessary-condition rule.

The new rule extends the @typescript-eslint/no-unnecessary-condition rule to fix false positives considering $: statements and HTML rendering.

I also made some changes to use full type information in the demo site.


close #254

@changeset-bot
Copy link

changeset-bot bot commented Sep 24, 2022

🦋 Changeset detected

Latest commit: de71817

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 24, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@marekdedic
Copy link
Contributor

Hi, I have tried this and can confirm it works :)

@ota-meshi
Copy link
Member Author

@marekdedic Thank you for checking this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong conditional checkings
2 participants