Fix lint

This commit is contained in:
afc163 2019-05-07 15:31:08 +08:00
parent ca665dbc60
commit 32bb3bcb90
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48
2 changed files with 5 additions and 1 deletions

View File

@ -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"]
} }

View File

@ -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(', '), '| |');
}); });
} }