### Required

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L4-L4)
'@codemirror/view' should be listed in the project's dependencies. Run 'npm i -S @codemirror/view' to add it

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L6-L6)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L20-L20)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L21-L21)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L22-L22)[\[5\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L23-L23)[\[6\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L26-L26)[\[7\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L37-L37)[\[8\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L38-L38)[\[9\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L42-L42)[\[10\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L46-L46)[\[11\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L132-L132)[\[12\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L159-L159)[\[13\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L159-L159)[\[14\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L184-L184)[\[15\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L188-L188)[\[16\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L195-L195)[\[17\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L253-L253)[\[18\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L259-L259)[\[19\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L260-L260)[\[20\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L298-L298)[\[21\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L302-L302)[\[22\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L306-L306)[\[23\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L383-L383)[\[24\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L449-L449)[\[25\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L497-L497)[\[26\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L517-L517)[\[27\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L553-L553)[\[28\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L553-L553)[\[29\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L555-L555)[\[30\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L560-L560)[\[31\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L560-L560)[\[32\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L562-L562)[\[33\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L563-L563)[\[34\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L567-L567)[\[35\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L567-L567)[\[36\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L567-L567)[\[37\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L568-L568)[\[38\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L580-L580)[\[39\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L580-L580)[\[40\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L595-L595)[\[41\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L597-L597)[\[42\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L599-L599)[\[43\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L599-L599)[\[44\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L601-L601)[\[45\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L609-L609)[\[46\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L609-L609)[\[47\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L619-L619)[\[48\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L634-L634)[\[49\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L662-L662)[\[50\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L662-L662)[\[51\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L662-L662)[\[52\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L675-L675)[\[53\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L681-L681)[\[54\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L681-L681)[\[55\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L682-L682)[\[56\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L704-L704)[\[57\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L707-L707)[\[58\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L728-L728)[\[59\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L733-L733)[\[60\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L743-L743)[\[61\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L752-L752)[\[62\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L813-L813)[\[63\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L827-L827)[\[64\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L856-L856)[\[65\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L882-L882)[\[66\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L888-L888)[\[67\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L891-L891)[\[68\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L895-L895)[\[69\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L902-L902)[\[70\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L946-L946)[\[71\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L956-L956)[\[72\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L961-L961)[\[73\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1004-L1004)[\[74\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1033-L1033)[\[75\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1084-L1084)[\[76\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1136-L1136)[\[77\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1349-L1349)[\[78\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1426-L1426)[\[79\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1469-L1469)[\[80\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1498-L1498)[\[81\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1556-L1556)[\[82\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1556-L1556)[\[83\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1564-L1564)[\[84\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1579-L1579)[\[85\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1593-L1593)
Unexpected any. Specify a different type.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L7-L7)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L9-L9)
`substr` is deprecated. A legacy feature for browser compatibility

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L75-L77)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L115-L116)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L118-L119)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1331-L1331)[\[5\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1406-L1406)[\[6\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1450-L1450)[\[7\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1490-L1490)[\[8\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1521-L1526)[\[9\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1546-L1551)
Expected an assignment or function call and instead saw an expression.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L143-L143)
Unexpected console statement. Only these console methods are allowed: warn, error, debug.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L161-L161)
Do not access Object.prototype method 'hasOwnProperty' from target object.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L205-L205)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L216-L216)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L228-L228)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L243-L243)
The command ID should not include the plugin ID.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L206-L206)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L217-L217)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L229-L229)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L244-L244)[\[5\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L133-L133)[\[6\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L135-L135)[\[7\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L138-L138)[\[8\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L146-L146)[\[9\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L148-L148)[\[10\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L150-L150)[\[11\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L162-L162)[\[12\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L164-L164)[\[13\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L175-L175)[\[14\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L177-L177)[\[15\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L179-L179)[\[16\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L180-L180)[\[17\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L181-L181)[\[18\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L225-L225)[\[19\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L227-L227)[\[20\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L239-L239)[\[21\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L241-L241)[\[22\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L252-L252)[\[23\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L254-L254)[\[24\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L264-L264)[\[25\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L274-L274)[\[26\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L277-L277)[\[27\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L289-L289)[\[28\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L291-L291)[\[29\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L303-L303)[\[30\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L305-L305)[\[31\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L316-L316)[\[32\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L353-L353)
Use sentence case for UI text.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L222-L222)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L234-L237)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1385-L1385)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1386-L1386)
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L576-L576)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L589-L589)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L608-L608)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L609-L609)[\[5\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L610-L610)
Unexpected lexical declaration in case block.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L679-L679)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1172-L1172)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1345-L1345)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1422-L1422)[\[5\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1465-L1465)
Unexpected aliasing of 'this' to local variable.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1176-L1176)
Async function has no 'await' expression.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1179-L1179)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1186-L1186)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1193-L1193)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1200-L1200)[\[5\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L199-L199)[\[6\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L209-L209)[\[7\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L219-L219)
Async arrow function has no 'await' expression.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1513-L1513)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1516-L1516)
Avoid setting styles directly via `element.style.height`. Use CSS classes for better theming and maintainability.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1576-L1576)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1590-L1590)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1604-L1604)
The two values in this comparison do not have a shared enum type.

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L130-L130)
Do not write to DOM directly using innerHTML/outerHTML property

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L133-L133)[\[2\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L146-L146)[\[3\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L175-L175)[\[4\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L252-L252)[\[5\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/mindMapSettings.ts#L316-L316)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.



---

### Optional

[\[1\]](https://github.com/tonghejiao/canvas-mindmap-keyboard/blob/e4f6257dd649642bbff5c656c5fde9d9dddf9a08/main.ts#L1-L1)
'debounce' is defined but never used.

