Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/angular-parser/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type State, type Node } from '@markuplint/html-parser'
import type {
MLASTAbstractNode,

Check failure on line 3 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Module '"@markuplint/ml-ast"' has no exported member 'MLASTAbstractNode'.

Check failure on line 3 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Module '"@markuplint/ml-ast"' has no exported member 'MLASTAbstractNode'.

Check failure on line 3 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Module '"@markuplint/ml-ast"' has no exported member 'MLASTAbstractNode'.

Check failure on line 3 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Module '"@markuplint/ml-ast"' has no exported member 'MLASTAbstractNode'.

Check failure on line 3 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Module '"@markuplint/ml-ast"' has no exported member 'MLASTAbstractNode'.

Check failure on line 3 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Module '"@markuplint/ml-ast"' has no exported member 'MLASTAbstractNode'.

Check failure on line 3 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Module '"@markuplint/ml-ast"' has no exported member 'MLASTAbstractNode'.

Check failure on line 3 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Module '"@markuplint/ml-ast"' has no exported member 'MLASTAbstractNode'.
MLASTAttr,
MLASTChildNode,
MLASTComment,
Expand Down Expand Up @@ -39,8 +39,9 @@
text: string
}

export interface VisitorContext<T extends MLASTToken = MLASTNode>
extends BaseVisitorContext {
export interface VisitorContext<
T extends MLASTToken = MLASTNode,
> extends BaseVisitorContext {
nodeList: T[]
namespace?: string
}
Expand All @@ -63,8 +64,9 @@
return text.slice(start.offset, end.offset)
}

export interface NodeMapperOptions<T extends boolean = boolean>
extends BaseVisitorContext {
export interface NodeMapperOptions<
T extends boolean = boolean,
> extends BaseVisitorContext {
simpleToken?: T
}

Expand Down Expand Up @@ -143,7 +145,7 @@

const isCustomElement = nodeName.includes('-')

const startTag: Writable<MLASTElement> = {

Check failure on line 148 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ elementType: "html" | "authored"; type: "starttag"; depth: number; isFragment: false; isGhost: false; nodeName: string; namespace: string; attributes: MLASTAttr[]; childNodes: MLASTChildNode[]; ... 4 more ...; tagCloseChar: string; }' is missing the following properties from type '{ parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; startLine: number; startCol: number; startOffset: number; ... 13 more ...; endCol: number; }': parentNode, raw, startLine, startCol, and 5 more.

Check failure on line 148 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ elementType: "html" | "authored"; type: "starttag"; depth: number; isFragment: false; isGhost: false; nodeName: string; namespace: string; attributes: MLASTAttr[]; childNodes: MLASTChildNode[]; ... 4 more ...; tagCloseChar: string; }' is missing the following properties from type '{ parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; startLine: number; startCol: number; startOffset: number; ... 13 more ...; endCol: number; }': parentNode, raw, startLine, startCol, and 5 more.

Check failure on line 148 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ elementType: "html" | "authored"; type: "starttag"; depth: number; isFragment: false; isGhost: false; nodeName: string; namespace: string; attributes: MLASTAttr[]; childNodes: MLASTChildNode[]; ... 4 more ...; tagCloseChar: string; }' is missing the following properties from type '{ parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; startLine: number; startCol: number; startOffset: number; ... 13 more ...; endCol: number; }': parentNode, raw, startLine, startCol, and 5 more.

Check failure on line 148 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ elementType: "html" | "authored"; type: "starttag"; depth: number; isFragment: false; isGhost: false; nodeName: string; namespace: string; attributes: MLASTAttr[]; childNodes: MLASTChildNode[]; ... 4 more ...; tagCloseChar: string; }' is missing the following properties from type '{ parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; startLine: number; startCol: number; startOffset: number; ... 13 more ...; endCol: number; }': parentNode, raw, startLine, startCol, and 5 more.

Check failure on line 148 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ elementType: "html" | "authored"; type: "starttag"; depth: number; isFragment: false; isGhost: false; nodeName: string; namespace: string; attributes: MLASTAttr[]; childNodes: MLASTChildNode[]; ... 4 more ...; tagCloseChar: string; }' is missing the following properties from type '{ parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; startLine: number; startCol: number; startOffset: number; ... 13 more ...; endCol: number; }': parentNode, raw, startLine, startCol, and 5 more.

Check failure on line 148 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ elementType: "html" | "authored"; type: "starttag"; depth: number; isFragment: false; isGhost: false; nodeName: string; namespace: string; attributes: MLASTAttr[]; childNodes: MLASTChildNode[]; ... 4 more ...; tagCloseChar: string; }' is missing the following properties from type '{ parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; startLine: number; startCol: number; startOffset: number; ... 13 more ...; endCol: number; }': parentNode, raw, startLine, startCol, and 5 more.

Check failure on line 148 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ elementType: "html" | "authored"; type: "starttag"; depth: number; isFragment: false; isGhost: false; nodeName: string; namespace: string; attributes: MLASTAttr[]; childNodes: MLASTChildNode[]; ... 4 more ...; tagCloseChar: string; }' is missing the following properties from type '{ parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; startLine: number; startCol: number; startOffset: number; ... 13 more ...; endCol: number; }': parentNode, raw, startLine, startCol, and 5 more.

Check failure on line 148 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ elementType: "html" | "authored"; type: "starttag"; depth: number; isFragment: false; isGhost: false; nodeName: string; namespace: string; attributes: MLASTAttr[]; childNodes: MLASTChildNode[]; ... 4 more ...; tagCloseChar: string; }' is missing the following properties from type '{ parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; startLine: number; startCol: number; startOffset: number; ... 13 more ...; endCol: number; }': parentNode, raw, startLine, startCol, and 5 more.
...partialStartTag,
elementType: isCustomElement ? 'authored' : 'html',
type: 'starttag',
Expand Down Expand Up @@ -178,7 +180,7 @@
let endTag: MLASTElementCloseTag | null = null

if (startTagText !== endTagText && endTagText) {
startTag.pairNode = endTag = {

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.

Check failure on line 183 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ type: "endtag"; depth: number; parentNode: null; pairNode: { parentNode: MLASTParentNode | null; nodeName: string; type: "starttag"; namespace: string; raw: string; isFragment: boolean; ... 16 more ...; endCol: number; }; nodeName: string; tagOpenChar: string; tagCloseChar: string; }' is missing the following properties from type 'MLASTElementCloseTag': uuid, raw, startOffset, endOffset, and 4 more.
...nodeMapper(endSourceSpan!, options),
type: 'endtag',
depth: 0,
Expand Down Expand Up @@ -242,7 +244,7 @@
nodeList.push(node)
},
visitText(text: Text, { nodeList, ...options }: VisitorContext) {
const node: MLASTText = {

Check failure on line 247 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ depth: number; type: "text"; nodeName: "#text"; }' is missing the following properties from type 'MLASTText': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 247 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ depth: number; type: "text"; nodeName: "#text"; }' is missing the following properties from type 'MLASTText': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 247 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ depth: number; type: "text"; nodeName: "#text"; }' is missing the following properties from type 'MLASTText': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 247 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ depth: number; type: "text"; nodeName: "#text"; }' is missing the following properties from type 'MLASTText': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 247 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ depth: number; type: "text"; nodeName: "#text"; }' is missing the following properties from type 'MLASTText': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 247 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ depth: number; type: "text"; nodeName: "#text"; }' is missing the following properties from type 'MLASTText': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 247 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ depth: number; type: "text"; nodeName: "#text"; }' is missing the following properties from type 'MLASTText': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 247 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ depth: number; type: "text"; nodeName: "#text"; }' is missing the following properties from type 'MLASTText': parentNode, uuid, raw, startOffset, and 5 more.
...nodeMapper(text, options),
depth: 0,
type: 'text',
Expand All @@ -252,7 +254,7 @@
},
visitCdata(cdata: CDATA, { nodeList, ...options }: VisitorContext) {
// mark cdata as comment
const node: MLASTComment = {

Check failure on line 257 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 257 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 257 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 257 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 257 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 257 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 257 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 257 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.
...nodeMapper(cdata, options),
depth: 0,
type: 'comment',
Expand All @@ -262,7 +264,7 @@
nodeList.push(node)
},
visitComment(comment: Comment, { nodeList, ...options }: VisitorContext) {
const node: MLASTComment = {

Check failure on line 267 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 267 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 267 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 267 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 267 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 267 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 267 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 267 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ depth: number; type: "comment"; nodeName: "#comment"; isBogus: false; }' is missing the following properties from type 'MLASTComment': parentNode, uuid, raw, startOffset, and 5 more.
...nodeMapper(comment, options),
depth: 0,
type: 'comment',
Expand All @@ -274,7 +276,7 @@
visitDocType(docType: DocType, { nodeList, ...options }: VisitorContext) {
const partialDocType = nodeMapper(docType, options)
const matched = DOCTYPE_REGEXP.exec(partialDocType.raw)
const node: MLASTDoctype = {

Check failure on line 279 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ depth: number; type: "doctype"; name: string; nodeName: string; publicId: string; systemId: string; }' is missing the following properties from type 'MLASTDoctype': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 279 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ depth: number; type: "doctype"; name: string; nodeName: string; publicId: string; systemId: string; }' is missing the following properties from type 'MLASTDoctype': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 279 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ depth: number; type: "doctype"; name: string; nodeName: string; publicId: string; systemId: string; }' is missing the following properties from type 'MLASTDoctype': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 279 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ depth: number; type: "doctype"; name: string; nodeName: string; publicId: string; systemId: string; }' is missing the following properties from type 'MLASTDoctype': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 279 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Type '{ depth: number; type: "doctype"; name: string; nodeName: string; publicId: string; systemId: string; }' is missing the following properties from type 'MLASTDoctype': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 279 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 22

Type '{ depth: number; type: "doctype"; name: string; nodeName: string; publicId: string; systemId: string; }' is missing the following properties from type 'MLASTDoctype': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 279 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 18

Type '{ depth: number; type: "doctype"; name: string; nodeName: string; publicId: string; systemId: string; }' is missing the following properties from type 'MLASTDoctype': parentNode, uuid, raw, startOffset, and 5 more.

Check failure on line 279 in packages/angular-parser/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20

Type '{ depth: number; type: "doctype"; name: string; nodeName: string; publicId: string; systemId: string; }' is missing the following properties from type 'MLASTDoctype': parentNode, uuid, raw, startOffset, and 5 more.
...partialDocType,
depth: 0,
type: 'doctype',
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-rules/src/attribute-group-order/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Enforces certain order of inputs, outputs, directives and other attributes on ht

| Property | Type | Optional | Default Value | Description |
| -------- | ---------- | -------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `order` | `string[]` | ✔ | <br/>`*structural`<br/>`#variable`<br/>`attribute`<br/>`[input]`<br/>`[(two-way)]`<br/>`(output)` | Specify order of attribute groups. Available tokens are: <br/>`*structural`<br/>`#variable`<br/>`attribute`<br/>`[input]`<br/>`[(two-way)]`<br/>`(output)` |
| `order` | `string[]` | ✔ | <br/>`*structural`<br/>`#variable`<br/>`attribute`<br/>`[input]`<br/>`[(two-way)]`<br/>`(output)` | Specify order of attribute groups. Available tokens are: <br/>`*structural`<br/>`#variable`<br/>`attribute`<br/>`[input]`<br/>`[(two-way)]`<br/>`(output)` |

### Example config

Expand Down
Loading
Loading