astro/no-exports-from-components
disallow value export
📖 Rule Details
This rule reports value exports from Astro components. The use of typed exports are still allowed.
---
/* eslint astro/no-exports-from-components: "error" */
/* ✓ GOOD */
export type A = number | boolean
/* ✗ BAD */
export const x = 42
---
🔧 Options
Nothing.
🚀 Version
This rule was introduced in eslint-plugin-astro v1.1.0
🔍 Implementation
Edit this page
Back
← astro/no-deprecated-getentrybyslug Next Page
astro/no-unused-define-vars-in-style →
← astro/no-deprecated-getentrybyslug Next Page
astro/no-unused-define-vars-in-style →