[WIP] Refactor lint-flow (#5014)

* refactor: lint-flow #4941

* chore: rename lint to lint-all #4941

* Revert "chore: rename lint to lint-all #4941"

This reverts commit 8e4e2b6da3289b62fa85354bee3068fe35836f3d.
This commit is contained in:
2017-02-23 21:12:52 +07:00 committed by 偏右
parent f53d0b7646
commit 411f352690

View File

@ -110,6 +110,7 @@
"glob": "^7.1.1",
"jest": "^18.1.0",
"jsonml.js": "^0.1.0",
"lint-staged": "^3.3.1",
"lodash.debounce": "^4.0.6",
"mockdate": "^2.0.1",
"moment-timezone": "^0.5.5",
@ -158,7 +159,25 @@
"pub": "antd-tools run pub",
"prepublish": "antd-tools run guard",
"pre-publish": "npm run test-all && node ./scripts/prepub",
"authors": "git log --format='%aN <%aE>' | sort -u | grep -v 'users.noreply.github.com' | grep -v 'gitter.im' | grep -v '.local>' | grep -v 'alibaba-inc.com' | grep -v 'alipay.com' | grep -v 'taobao.com' > AUTHORS.txt"
"authors": "git log --format='%aN <%aE>' | sort -u | grep -v 'users.noreply.github.com' | grep -v 'gitter.im' | grep -v '.local>' | grep -v 'alibaba-inc.com' | grep -v 'alipay.com' | grep -v 'taobao.com' > AUTHORS.txt",
"lint-staged": "lint-staged",
"lint-staged:tsx": "tsc && tslint -c node_modules/antd-tools/lib/tslint.json",
"lint-staged:es": "eslint ./.eslintrc.js ./webpack.config.js --fix",
"lint-staged:demo": "cross-env RUN_ENV=DEMO eslint --ext '.md' && eslint-tinker"
},
"lint-staged": {
"components/**/*.tsx": [
"lint-staged:tsx"
],
"{tests,site,scripts,components}/**/*.{js,jsx}": [
"lint-staged:es",
"git add"
],
"components/**/*.less": "stylelint --syntax less",
"components/*/demo/*.md": [
"lint-staged:demo",
"git add"
]
},
"jest": {
"setupFiles": [
@ -192,6 +211,6 @@
]
},
"pre-commit": [
"lint"
"lint-staged"
]
}