# 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
  import { get_current_component } from 'svelte/internal';
  import { inspect } from 'svelte/internal/client';
  import('svelte/internal');
  import('svelte/internal/disclose-version');

  export * from 'svelte/internal';
  export { listen } from '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

# 🔍 Implementation