chore: to fix eslint errors automatically

This commit is contained in:
Benjy Cui
2016-01-27 17:00:58 +08:00
parent 1fdf5c3539
commit 9d6ddd727d
+4 -2
View File
@@ -90,6 +90,7 @@
"eslint-plugin-babel": "^3.0.0",
"eslint-plugin-markdown": "*",
"eslint-plugin-react": "^3.3.1",
"eslint-tinker": "~0.1.0",
"extract-text-webpack-plugin": "^0.9.1",
"gh-pages": "^0.8.0",
"history": "^1.17.0",
@@ -126,9 +127,10 @@
"deploy": "rm -rf node_modules && node scripts/install.js && npm run just-deploy",
"just-deploy": "npm run site && node scripts/deploy.js",
"lint": "npm run srclint && npm run mdlint && npm run lesshint",
"srclint": "eslint --fix components test index.js --ext '.js,.jsx'",
"mdlint": "eslint --fix components/*/demo/*.md --ext '.md' --global 'React,ReactDOM,mountNode' --rule 'no-console: 0,eol-last: 0'",
"srclint": "eslint components test index.js --ext '.js,.jsx'",
"mdlint": "eslint components/*/demo/*.md --ext '.md' --global 'React,ReactDOM,mountNode' --rule 'no-console: 0,eol-last: 0'",
"lesshint": "lesshint style/ -e 'style/+(core|mixins)/+(base|iconfont|normalize|layouts|compatibility|grid).less'",
"eslint-fix": "eslint --fix components test index.js --ext '.js,.jsx' && eslint-tinker ./components/*/demo/*.md",
"test": "npm run lint && webpack && npm run jest",
"jest": "jest",
"pub": "sh ./scripts/publish.sh",