Browse Source

add pattern match

pull/15354/head
zombiej 6 years ago
parent
commit
d17a67175d
  1. 18
      .depslintrc.js
  2. 3
      components/rate/style/index.tsx
  3. 2
      package.json

18
.depslintrc.js

@ -0,0 +1,18 @@
module.exports = {
ignore: [
'**/~*/**',
'**/_*/**',
'**/icon/**',
'**/__tests__/**',
'**/style/**',
'**/locale/**',
'**/*-provider/**',
'**/*.json',
],
modulePattern: [
{
pattern: /ConfigConsumer.*renderEmpty/sm,
module: '../empty',
},
],
};

3
components/rate/style/index.tsx

@ -1,2 +1,5 @@
import '../../style/index.less';
import './index.less';
// style dependencies
import '../../tooltip/style';

2
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/",

Loading…
Cancel
Save