From 832c524b3215c2ab43ba04c9ae0abe9d34e4ca4d Mon Sep 17 00:00:00 2001 From: Jinxuan Zhu Date: Wed, 9 May 2018 12:36:19 -0400 Subject: [PATCH] Use local tslint config; simplify editor configuration (#10450) --- package.json | 2 +- tslint.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tslint.json diff --git a/package.json b/package.json index d11562034d..3acc8480dd 100644 --- a/package.json +++ b/package.json @@ -193,7 +193,7 @@ "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", "lint-staged": "lint-staged", - "lint-staged:ts": "tsc && node node_modules/tslint/bin/tslint -c node_modules/antd-tools/lib/tslint.json", + "lint-staged:ts": "tsc && tslint", "lint-staged:es": "eslint ./.eslintrc.js ./webpack.config.js", "lint-staged:demo": "cross-env RUN_ENV=DEMO eslint --ext '.md'" }, diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000000..2b034f7310 --- /dev/null +++ b/tslint.json @@ -0,0 +1,5 @@ +{ + "extends": [ + "./node_modules/antd-tools/lib/tslint.json" + ] +}