afc163
6 years ago
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48
2 changed files with
5 additions and
1 deletions
-
.stylelintrc.json
-
scripts/apiCollection.js
|
@ -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(', '), '| |'); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|