expected indentation of 0 spaces but found 2 . vue eslint规则和idea冲突

使用vue建立工程时,在vue页面里,用到script时,idea默认会缩进两个空格,而eslint校验时指望,script下的首行不要缩进。 所以会提示以下报错:vue expected indentation of 0 spaces but found 2 . 解决办法: 一、不校验缩进,在rule里增长以下规则:git 'rules': { 'indent': 'off' } 二
相关文章
相关标签/搜索