Commit d651a81
Syncpack: ban
Gutenberg standardised on `clsx` in 2024 ([#61138]) and removed every
`classnames` declaration across the monorepo. There is currently no
guardrail preventing it from being re-added later — an `npm install
classnames` in any workspace would land silently.
Add a `Banned` version group to `syncpack.config.mjs` that fails
`lint:deps` (and CI) on any declaration of `classnames` in any
package.json. The rule is preventive: no current declarations are
affected.
Picked up as the follow-up suggested in #77950's review.
[#61138]: #61138
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>classnames from being reintroduced (#79061)1 parent 4d73673 commit d651a81
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
0 commit comments