http://eslint.org/docs/rules/semi


報錯:

Errors:
88 http://eslint.org/docs/rules/semi
56 http://eslint.org/docs/rules/quotes
34 http://eslint.org/docs/rules/spaced-comment
8 http://eslint.org/docs/rules/eqeqeq
3 http://eslint.org/docs/rules/space-infix-ops
3 http://eslint.org/docs/rules/semi-spacing
2 http://eslint.org/docs/rules/space-before-blocks
2 http://eslint.org/docs/rules/comma-spacing
1 http://eslint.org/docs/rules/keyword-spacing
1 http://eslint.org/docs/rules/no-whitespace-before-property
1 http://eslint.org/docs/rules/no-unused-vars
1 http://eslint.org/docs/rules/no-trailing-spaces


✘ http://eslint.org/docs/rules/spaced-comment Expected space or tab after '//' in comment
src\utils\index.js:19:3
//return JSON.parse(sessionStorage.getItem('permissions') || '[]').indexOf(key) !== -1 || false
^


✘ 1 problem (1 error, 0 warnings)


Errors:
1 http://eslint.org/docs/rules/spaced-comment

原因:vue的eslint檢查太嚴格(把相應的檢查的代碼給注釋就行了)

 

 

 

 然后保存,再重啟ctrl+c Y

npm run dev 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM