Skip to content

Commit

Permalink
chore(core): add lint rule for detecting chalk imports
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Sep 19, 2024
1 parent ee8b4b5 commit f74fd81
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/create-nx-plugin/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
"rules": {
"no-restricted-imports": [
"error",
{
"name": "chalk",
"message": "Please use `picocolors` in place of `chalk` for rendering terminal colors"
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
Expand Down

0 comments on commit f74fd81

Please sign in to comment.