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