在 WebStorm 中搜索文件 .eslintrc.js
在里面的 rules 项中追加规则:
'no-trailing-spaces' : ['off', { 'skipBlankLines': true, 'ignoreComments': true, } ],
http://eslint.org/docs/rules/no-trailing-spaces
Link:https://www.cnblogs.com/farwish/p/13090864.html