diff --git a/package.json b/package.json index 77b827a7b..ab597c1a6 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "release": "pnpm build", "lint": "pnpm biome check && pnpm lint:jison", "lint:fix": "pnpm biome check --write", - "lint:ci": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint --cache --cache-strategy content . && pnpm lint", + "lint:ci": "pnpm lint && cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content .", "lint:jison": "tsx ./scripts/jison/lint.mts", "contributors": "tsx scripts/updateContributors.ts", "cypress": "cypress run", @@ -52,14 +52,8 @@ "author": "Knut Sveidqvist", "license": "MIT", "standard": { - "ignore": [ - "**/parser/*.js", - "dist/**/*.js", - "cypress/**/*.js" - ], - "globals": [ - "page" - ] + "ignore": ["**/parser/*.js", "dist/**/*.js", "cypress/**/*.js"], + "globals": ["page"] }, "devDependencies": { "@applitools/eyes-cypress": "^3.42.3", diff --git a/packages/mermaid-flowchart-elk/src/flowRenderer-elk.js b/packages/mermaid-flowchart-elk/src/flowRenderer-elk.js index eab7b2460..657a84f8f 100644 --- a/packages/mermaid-flowchart-elk/src/flowRenderer-elk.js +++ b/packages/mermaid-flowchart-elk/src/flowRenderer-elk.js @@ -445,21 +445,20 @@ export const addEdges = function (edges, diagObj, graph, svg) { edgeData.arrowTypeStart = 'arrow_open'; edgeData.arrowTypeEnd = 'arrow_open'; - /* eslint-disable no-fallthrough */ switch (edge.type) { - // biome-ignore lint/suspicious/noFallthroughSwitchClause: + // biome-ignore lint/suspicious/noFallthroughSwitchClause: Expected fallthrough case 'double_arrow_cross': edgeData.arrowTypeStart = 'arrow_cross'; case 'arrow_cross': edgeData.arrowTypeEnd = 'arrow_cross'; break; - // biome-ignore lint/suspicious/noFallthroughSwitchClause: + // biome-ignore lint/suspicious/noFallthroughSwitchClause: Expected fallthrough case 'double_arrow_point': edgeData.arrowTypeStart = 'arrow_point'; case 'arrow_point': edgeData.arrowTypeEnd = 'arrow_point'; break; - // biome-ignore lint/suspicious/noFallthroughSwitchClause: + // biome-ignore lint/suspicious/noFallthroughSwitchClause: Expected fallthrough case 'double_arrow_circle': edgeData.arrowTypeStart = 'arrow_circle'; case 'arrow_circle': diff --git a/packages/mermaid/src/diagrams/flowchart/flowRenderer-v2.js b/packages/mermaid/src/diagrams/flowchart/flowRenderer-v2.js index a7d1d9ab5..ed1838f0b 100644 --- a/packages/mermaid/src/diagrams/flowchart/flowRenderer-v2.js +++ b/packages/mermaid/src/diagrams/flowchart/flowRenderer-v2.js @@ -244,21 +244,20 @@ export const addEdges = async function (edges, g, diagObj) { edgeData.arrowTypeStart = 'arrow_open'; edgeData.arrowTypeEnd = 'arrow_open'; - /* eslint-disable no-fallthrough */ switch (edge.type) { - // biome-ignore lint/suspicious/noFallthroughSwitchClause: + // biome-ignore lint/suspicious/noFallthroughSwitchClause: Expected fallthrough case 'double_arrow_cross': edgeData.arrowTypeStart = 'arrow_cross'; case 'arrow_cross': edgeData.arrowTypeEnd = 'arrow_cross'; break; - // biome-ignore lint/suspicious/noFallthroughSwitchClause: + // biome-ignore lint/suspicious/noFallthroughSwitchClause: Expected fallthrough case 'double_arrow_point': edgeData.arrowTypeStart = 'arrow_point'; case 'arrow_point': edgeData.arrowTypeEnd = 'arrow_point'; break; - // biome-ignore lint/suspicious/noFallthroughSwitchClause: + // biome-ignore lint/suspicious/noFallthroughSwitchClause: Expected fallthrough case 'double_arrow_circle': edgeData.arrowTypeStart = 'arrow_circle'; case 'arrow_circle':