1. ESLint
1.1. 安装
$ npm i -g eslint
1.2. .eslintrc.*
$ eslint --init
1.2.1. rules
"off" or 0 - turn the rule off
"warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
"error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
object-curly-spacing
强制在花括号中使用一致的空格, WebStorm: Preferences > Editor > Code Style > Javascript > Spaces > Within > 勾选 ES6 import/export braces