Skip to content
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

feat(no-inspect): add no-inspect rule #868

Merged
merged 6 commits into from
Oct 16, 2024

Conversation

mikededo
Copy link
Contributor

Add rule that warns if $inspect is used.

Closes #812

Copy link

changeset-bot bot commented Oct 10, 2024

🦋 Changeset detected

Latest commit: 0fe07d7

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

Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR!

packages/eslint-plugin-svelte/src/rules/no-inspect.ts Outdated Show resolved Hide resolved
packages/eslint-plugin-svelte/src/rules/no-inspect.ts Outdated Show resolved Hide resolved
@mikededo mikededo requested a review from ota-meshi October 10, 2024 10:49
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@ota-meshi ota-meshi merged commit edf99d3 into sveltejs:main Oct 16, 2024
13 checks passed
ota-meshi added a commit that referenced this pull request Oct 16, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## eslint-plugin-svelte@2.45.0

### Minor Changes

-
[`7460836`](7460836)
Thanks [@ota-meshi](https://github.com/ota-meshi)! -
feat(html-closing-bracket-new-line): add `html-closing-bracket-new-line`
rule

- [#868](#868)
[`edf99d3`](edf99d3)
Thanks [@mikededo](https://github.com/mikededo)! - feat(no-inspect): add
`no-inspect` rule

### Patch Changes

- [#856](#856)
[`cf6c842`](cf6c842)
Thanks [@KuSh](https://github.com/KuSh)! - chore: Avoid using deprecated
FlatConfig eslint type

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
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.

New rule: svelte/no-$inspect
2 participants