Browse Source

Fix lint

pull/16448/head
afc163 6 years ago
parent
commit
32bb3bcb90
No known key found for this signature in database GPG Key ID: 738F973FCE5C6B48
  1. 3
      .stylelintrc.json
  2. 3
      scripts/apiCollection.js

3
.stylelintrc.json

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

3
scripts/apiCollection.js

@ -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…
Cancel
Save