Skip to content

Commit e139c75

Browse files
committed
更新
1 parent 2ca8400 commit e139c75

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.eslintrc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
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

docs/es6_zh-cn_v3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)