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

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