# svelte/no-svelte-internal
svelte/internal will be removed in Svelte 6.
# 📖 Rule Details
This rule reports the use of the deprecated API svelte/internal
and svelte/internal/xxx
. svelte/internal
is deprecated in Svelte 5. And it will be deleted in Svelte 6. These APIs can change in breaking ways at any time without notice.
<script>
/* eslint svelte/no-svelte-internal: "error" */
// ✓ GOOD
import { mount } from 'svelte';
// ✗ BAD
Using svelte/internal is prohibited. This will be removed in Svelte 6. (svelte/no-svelte-internal)import { get_current_component } from 'svelte/internal';
Using svelte/internal is prohibited. This will be removed in Svelte 6. (svelte/no-svelte-internal)import { inspect } from 'svelte/internal/client';
Using svelte/internal is prohibited. This will be removed in Svelte 6. (svelte/no-svelte-internal)import('svelte/internal');
Using svelte/internal is prohibited. This will be removed in Svelte 6. (svelte/no-svelte-internal)import('svelte/internal/disclose-version');
Using svelte/internal is prohibited. This will be removed in Svelte 6. (svelte/no-svelte-internal)export * from 'svelte/internal';
Using svelte/internal is prohibited. This will be removed in Svelte 6. (svelte/no-svelte-internal)export { listen } from 'svelte/internal';
Using svelte/internal is prohibited. This will be removed in Svelte 6. (svelte/no-svelte-internal)export * from 'svelte/internal/server';
</script>
# 🔧 Options
Nothing.
# 📚 Further Reading
Nothing.
# 🚀 Version
This rule was introduced in eslint-plugin-svelte v2.39.0