常見的 eslint 基本報錯信息

Missing semicolon
缺乏分號

Missing space before opening brace
左大括號前缺乏空格

Trailing spaces not allowed
不容許尾隨空格

Unexpected trailing comma
意外的尾隨逗號

Multiple spaces found before '+'
在「+」以前找到多個空格

A space is required after ',' 
「,」後須要空格

Expected indentation of 4 spaces but found 6
預期縮進4個空格,但找到6個

Infix operators must be spaced
中綴運算符必須間隔

'title' is never reassigned. Use 'const' instead
「標題」從未從新分配。改用「const」
相關文章
相關標籤/搜索