File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 33// http://eslint.org
44// http://standardjs.com/rules.html
55//
6- // @dependencies 安装到全局,就不用每个项目单独安装了
7- // npm install -g eslint eslint-plugin-import
8- // standard: npm install -g eslint-config-standard eslint-plugin-standard eslint-plugin-promise
9- // airbnb: npm install -g eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-airbnb
6+ // 配置参看 [config-eslint.md](https://github.com/webcoding/javascript-style-guide/blob/master/docs/config-eslint.md)
107
118// NOTE: 在新项目中使用 error 级别,在老项目中使用 warning 级别
129
@@ -23,6 +20,7 @@ module.exports = {
2320 } ,
2421
2522 plugins : [
23+ // 处理 html 文件内 js 代码规范等
2624 'html' ,
2725 ] ,
2826 // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ NOTE: 本文对[Airbnb JavaScript Style Guide](https://github.com/airbnb/javascr
2525- [ ES6/ES2015 版] ( https://github.com/webcoding/javascript-style-guide/tree/master/docs/es6_zh-cn_v3.md )
2626- [ ES5 版] ( https://github.com/webcoding/javascript-style-guide/tree/master/docs/es5_zh-cn_v3.md )
2727- [ React/JSX 版] ( https://github.com/webcoding/javascript-style-guide/tree/master/docs/react-jsx_v1.md )
28+ - [ VueJS 版] ( https://github.com/jackbarham/vuejs-style-guide )
29+
30+ 扩展使用 eslint-plugin-html eslint-plugin-vue
2831
2932## Usage
3033
You can’t perform that action at this time.
0 commit comments