mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
✅ Fix lint
This commit is contained in:
parent
ca665dbc60
commit
32bb3bcb90
@ -9,7 +9,8 @@
|
|||||||
"comment-empty-line-before": null,
|
"comment-empty-line-before": null,
|
||||||
"function-name-case": ["lower", { "ignoreFunctions": ["/colorPalette/"] }],
|
"function-name-case": ["lower", { "ignoreFunctions": ["/colorPalette/"] }],
|
||||||
"no-invalid-double-slash-comments": null,
|
"no-invalid-double-slash-comments": null,
|
||||||
"no-descending-specificity": null
|
"no-descending-specificity": null,
|
||||||
|
"declaration-empty-line-before": null
|
||||||
},
|
},
|
||||||
"ignoreFiles": ["components/style/color/{bezierEasing,colorPalette,tinyColor}.less"]
|
"ignoreFiles": ["components/style/color/{bezierEasing,colorPalette,tinyColor}.less"]
|
||||||
}
|
}
|
||||||
|
@ -39,9 +39,12 @@ function printReport(apis) {
|
|||||||
componentList: apis[api],
|
componentList: apis[api],
|
||||||
}));
|
}));
|
||||||
apiList.sort((a, b) => b.componentList.length - a.componentList.length);
|
apiList.sort((a, b) => b.componentList.length - a.componentList.length);
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log('| name | components | comments |');
|
console.log('| name | components | comments |');
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log('| ---- | ---------- | -------- |');
|
console.log('| ---- | ---------- | -------- |');
|
||||||
apiList.forEach(({ name, componentList }) => {
|
apiList.forEach(({ name, componentList }) => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log('|', name, '|', componentList.join(', '), '| |');
|
console.log('|', name, '|', componentList.join(', '), '| |');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user