Skip to content

Files

Latest commit

 

History

History
31 lines (19 loc) · 382 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 382 Bytes

webpack-20

配置 eslint

推荐使用 github 上的一些开源好的规则仓库,比如:standard


配置

/src/search/index.js

npm install standard --save-dev

package.json

 "scripts": {
   ...
    "eslint": "standard && node src/*/*.js",
    "flx": "standard --fix",
  },