1. 程式人生 > >報錯:http://eslint.org/docs/rules/no-multi-spaces

報錯:http://eslint.org/docs/rules/no-multi-spaces

報錯截圖

http://eslint.org/docs/rules/no-multi-spaces  Multiple spaces found before '//index.html中的...' 

報錯原因

不符合eslint的校驗規則,截圖如下:

解決方案

方案一:按照eslint的規則寫規範性程式碼

方案二:忽略該規則校驗

Errors:
  1  http://eslint.org/docs/rules/no-multi-spaces,表示規則no-multi-spaces校驗不通過,解決如下: