Skip to content

may-not-export

Markdown for agents

Rule violations. This text is what archangel docs may-not-export prints.

A file in a mayNotExport rule has an export of the kind the rule refuses: a default export, an export * or export * as, or a named export whose name matches the rule’s pattern.

// rule({ files: 'src/**', mayNotExport: 'default' })
export default function App() {}

Export the value by name, or pass on the names one by one instead of export *. The violation is at the line of the export. A violation about a file is permitted only through the baseline, not an exception comment.