css-code-quality
css-code-quality copied to clipboard
Calculate the Code Quality score of your CSS based on a range of different quality guards.
https://github.com/projectwallace/format-css/commit/63cefb67f8d3c8909aa455bc7ab955af9c211680#diff-58e6f63d87181b1c6a8cb6e5f1691df04aa32854456efcd52ca71c8541375d26
Similar to https://github.com/projectwallace/wallace-cli, but maybe we can keep the CLI version inside of this package. Do keep a close eye on bundle size, it shouldn't increase because the two should...
Shorthands are risky and spec authors sometimes actually regret them when for example you can't add new props to the animation shorthand because it's already ["a dumpster fire of parsing"](https://twitter.com/bramus/status/1668706275666845696).
Excellent tool btw. Thanks for creating this! The only red I got was one "Avoid many Declarations in single RuleSet". It's because of a large block of Custom Properties set...
```ts import { calculate } from '@projectwallace/css-code-quality/core' // Cannot find module '@projectwallace/css-code-quality/core' or its corresponding type declarations. ``` version: 3.0.0 typescript version: 5.7.3