Skip to content
These are temporary community docs. The official docs are in progress.Help improve them
Markless
Esc
↑↓navigate↵open⌘Jpreview
On this page

MARKLESS_ALLOW_REASON_REQUIRED

A markless-allow comment has no reason after the colon.

Warning from the compiler, while it builds your .tsrx files.

What happened

A markless-allow comment must say why you accept the warning.

Markless prints the message, the reason, and a suggestion:

MARKLESS_ALLOW_REASON_REQUIRED: Use `// markless-allow CODE: reason`; for this site, write `// markless-allow <code>: reason`.
markless-allow is a per-site escape hatch for warning diagnostics only; it must stay readable and current for the next person editing the site.
// markless-allow CODE: reason
https://markless.dev/errors/MARKLESS_ALLOW_REASON_REQUIRED

Words in angle brackets change from case to case.

How to fix it

Write the reason after the colon.

// markless-allow MARKLESS_REPEAT_KEY_IS_INDEX: the list never reorders

Where it comes from

@markless/compiler raises this code. Source:

Read how to read a Markless error, or go back to all error codes.

Was this page helpful?