diff --git a/package.json b/package.json index 1343dc342..a4e836c3a 100644 --- a/package.json +++ b/package.json @@ -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",