Pattern: Unexpected exported load
function in *.svelte
module
Issue: -
This rule reports unexpected exported load
function at <script context="module">
.
At SvelteKit v1.0.0-next.405, load
function has been moved into a separate file — +page.js
for pages, +layout.js
for layouts.
<script context="module">
/* eslint svelte/no-export-load-in-svelte-module-in-kit-pages: "error" */
/* ✓ GOOD */
export function foo() {}
export function bar() {}
/* ✗ BAD */
export function load() {}
// export const load = () => {}
</script>
Nothing.
This rule was introduced in eslint-plugin-svelte v2.12.0