メインコンテンツまでスキップ

parse-error

改名ではありません。v4 の parse-error チャネルは致命的 ParserError だけです。v5 は非致命の HTML LS パースエラー(parse5 onParseError)も出せます。既定オフ。

{
"severity": {
"parseError": "error"
}
}

コード単位は @markuplint/ml-astMLASTParseErrorCode。未指定のコードはオフのまま。severity.parseError を書かない設定は、非致命イベントについて v4 と同じ沈黙です。

parserOptions.documentMode'auto'(既定)、'document''fragment' で document / fragment 判定を上書きします。