ESLint 发表于 2018-10-01 | 更新于 2018-12-26 | 分类于 JavaScript | 评论数: | 阅读次数: https://eslint.org/docs/user-guide/getting-started 123$ npm install -g eslint$ eslint --init .eslintrc 12345678910111213141516171819202122232425262728{ "env": { "browser": true, "es6": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 2015 }, "rules": { "indent": [ "error", 4 ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", "single" ], "semi": [ "error", "never" ] }}