Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.55 KB

no-svelte-internal.md

File metadata and controls

56 lines (38 loc) · 1.55 KB
pageClass sidebarDepth title description since
rule-details
0
svelte/no-svelte-internal
svelte/internal will be removed in Svelte 6.
v2.39.0

svelte/no-svelte-internal

svelte/internal will be removed in Svelte 6.

  • ⚙️ This rule is included in "plugin:svelte/recommended".

📖 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