Merge pull request #15354 from ant-design/deps-lint

Deps lint
This commit is contained in:
偏右 2019-03-14 20:34:10 +08:00 committed by GitHub
commit c1ef989866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 49 additions and 20 deletions

18
.depslintrc.js Normal file
View File

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

View File

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

View File

@ -1,4 +1,6 @@
import '../../style/index.less';
import './index.less';
// style dependencies
import '../../select/style';
import '../../input/style';

View File

@ -3,3 +3,5 @@ import './index.less';
// style dependencies
import '../../tabs/style';
import '../../row/style';
import '../../col/style';

View File

@ -1,2 +1,5 @@
import '../../style/index.less';
import '../../grid/style/index.less';
// style dependencies
// deps-lint-skip: grid
import '../../grid/style';

View File

@ -2,6 +2,5 @@ import '../../style/index.less';
import './index.less';
// style dependencies
import '../../input/style';
import '../../time-picker/style';
import '../../tag/style';

View File

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

View File

@ -3,7 +3,8 @@ import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
import Icon from '../icon';
import classnames from 'classnames';
import { BreadcrumbProps } from '../breadcrumb';
import { Divider, Breadcrumb } from '../index';
import Divider from '../divider';
import Breadcrumb from '../breadcrumb';
import Tag from '../tag';
import Wave from '../_util/wave';

View File

@ -1,5 +1,5 @@
import './index.less';
// style dependencies
import '../../divider/style';
import '../../breadcrumb/style';
import '../../typography/style';

View File

@ -3,4 +3,3 @@ import './index.less';
// style dependencies
import '../../select/style';
import '../../input/style';

View File

@ -1,5 +1,6 @@
import '../../style/index.less';
// style dependencies
// deps-lint-skip: tooltip, popover
import '../../popover/style';
import '../../button/style';

View File

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

View File

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

View File

@ -1,2 +1,5 @@
import '../../style/index.less';
import '../../grid/style/index.less';
// style dependencies
// deps-lint-skip: grid
import '../../grid/style';

View File

@ -3,4 +3,3 @@ import './index.less';
// style dependencies
import '../../empty/style';
import '../../input/style';

View File

@ -2,6 +2,7 @@ import '../../style/index.less';
import './index.less';
// style dependencies
// deps-lint-skip: menu
import '../../empty/style';
import '../../radio/style';
import '../../checkbox/style';

View File

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

View File

@ -2,5 +2,6 @@ import '../../style/index.less';
import './index.less';
// style dependencies
// deps-lint-skip: select
import '../../select/style';
import '../../checkbox/style';
import '../../empty/style';

View File

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

View File

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

View File

@ -104,7 +104,7 @@
"@yesmeck/offline-plugin": "^5.0.5",
"ansi-styles": "^3.2.1",
"antd-theme-generator": "^1.1.4",
"antd-tools": "^7.0.1",
"antd-tools": "^7.1.2",
"babel-eslint": "^10.0.1",
"babel-plugin-add-react-displayname": "^0.0.5",
"bisheng": "^1.1.0",
@ -194,7 +194,8 @@
"test": "jest --config .jest.js --no-cache",
"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": "npm run lint:ts && npm run lint:es && npm run lint:demo && npm run lint:style && npm run lint:deps",
"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/",