From 32bb3bcb908e88bd9d09084d14f4ceac476caed2 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 7 May 2019 15:31:08 +0800 Subject: [PATCH] :white_check_mark: Fix lint --- .stylelintrc.json | 3 ++- scripts/apiCollection.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index ec0633f7a9..40ce56859f 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -9,7 +9,8 @@ "comment-empty-line-before": null, "function-name-case": ["lower", { "ignoreFunctions": ["/colorPalette/"] }], "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"] } diff --git a/scripts/apiCollection.js b/scripts/apiCollection.js index e9b6b43ce8..d42217b2a2 100644 --- a/scripts/apiCollection.js +++ b/scripts/apiCollection.js @@ -39,9 +39,12 @@ function printReport(apis) { componentList: apis[api], })); apiList.sort((a, b) => b.componentList.length - a.componentList.length); + // eslint-disable-next-line no-console console.log('| name | components | comments |'); + // eslint-disable-next-line no-console console.log('| ---- | ---------- | -------- |'); apiList.forEach(({ name, componentList }) => { + // eslint-disable-next-line no-console console.log('|', name, '|', componentList.join(', '), '| |'); }); }