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
srcutilsindex.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 

原文地址:https://www.cnblogs.com/wanglli/p/13265194.html