I am trying to comment some Vue code on a template like this:
showSelectedValue: { // ------- showSelectedValue -------
type: Boolean, // Switches between showing the
default: true, // selected items or the placeholder
}, // name. Defaults to true.
However Vue trowsseveral errors saying
74:25 error Multiple spaces found before '// ------- sho...' stylistic/no-multi-spaces
75:23 error Multiple spaces found before '// Switches be...' stylistic/no-multi-spaces
76:23 error Multiple spaces found before '// selected it...' stylistic/no-multi-spaces
77:7 error Multiple spaces found before '// name. Defau...' stylistic/no-multi-spaces
How can I solve this, and still keep the comments aligned?
Vue throws an error due to Multiple spaces found when I try to align a commment
I am trying to comment some Vue code on a template like this:
However Vue trowsseveral errors saying
How can I solve this, and still keep the comments aligned?
5
Filed under: Kiến thức lập trình - @ 23:49
Thẻ: node.jsvue.jseslintcomments
« HTML Div container with rounded border & overflow:hidden, creates white pixel inside when another div displays background ⇐ More Pages ⇒ Sort version number of format 1.1.1 in Django »