From d17a67175de50bfe22f804b9a8298f7d7f9814b3 Mon Sep 17 00:00:00 2001 From: zombiej Date: Mon, 11 Mar 2019 11:00:25 +0800 Subject: [PATCH] add pattern match --- .depslintrc.js | 18 ++++++++++++++++++ components/rate/style/index.tsx | 3 +++ package.json | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .depslintrc.js diff --git a/.depslintrc.js b/.depslintrc.js new file mode 100644 index 0000000000..e6f0f4488a --- /dev/null +++ b/.depslintrc.js @@ -0,0 +1,18 @@ +module.exports = { + ignore: [ + '**/~*/**', + '**/_*/**', + '**/icon/**', + '**/__tests__/**', + '**/style/**', + '**/locale/**', + '**/*-provider/**', + '**/*.json', + ], + modulePattern: [ + { + pattern: /ConfigConsumer.*renderEmpty/sm, + module: '../empty', + }, + ], +}; \ No newline at end of file diff --git a/components/rate/style/index.tsx b/components/rate/style/index.tsx index 3a3ab0de59..7bd39f61bf 100644 --- a/components/rate/style/index.tsx +++ b/components/rate/style/index.tsx @@ -1,2 +1,5 @@ import '../../style/index.less'; import './index.less'; + +// style dependencies +import '../../tooltip/style'; diff --git a/package.json b/package.json index 8084e56cfc..0540fcf1ac 100644 --- a/package.json +++ b/package.json @@ -195,7 +195,7 @@ "test-node": "jest --config .jest.node.js --no-cache", "test-all": "./scripts/test-all.sh", "lint": "npm run lint:ts && npm run lint:es && npm run lint:demo && npm run lint:style", - "lint:deps": "antd-tools run deps-lint --ignore **/~*/**,**/_*/**,**/icon/**,**/__tests__/**,**/style/**,**/locale/**,**/*-provider/**,**/*.json", + "lint:deps": "antd-tools run deps-lint", "lint:ts": "npm run tsc && antd-tools run ts-lint", "lint:es": "eslint tests site scripts components ./.*.js ./webpack.config.js --ext '.js,.jsx'", "lint:md": "remark components/",