Skip to content

Commit

Permalink
ban new references to kleur/colors
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyajones committed May 5, 2021
1 parent 54b60a1 commit 071b268
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-system/common/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = Object.entries(colors).reduce((map, [key, formatter]) => {
}
map[key] = function (input) {
if (!input) {
return '';
return `${input}`;
}

if (input instanceof Array) {
Expand Down
6 changes: 6 additions & 0 deletions build-system/test-configs/dep-check-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,4 +553,10 @@ exports.rules = [
/** DO NOT ADD TO ALLOWLIST */
],
},
// Rules for build-system
{
filesMatching: 'build-system/**/*.js',
mustNotDependOn: 'kleur/colors',
allowlist: ['build-system/common/colors.js'],
},
];

0 comments on commit 071b268

Please sign in to comment.