ESLint:Expected indentation of 2

2018-04-24  本文已影响0人  闹闹也会有脾气

ESLint:Expected indentation of 2 spaces but found 4

修改eslint 配置文件 .eslintrc.js

rules: {
   ...
    // 缩进
    // 'indent': 2,
    // 'indent': [2, 2, {"SwitchCase": 1}],
    "indent": [1, 2],
   ...
 }

官方文档rule说明:http://eslint.org/docs/2.0.0/...

上一篇 下一篇

猜你喜欢

热点阅读