posted an update

Baseline Guard — quick update

Shipped a cleaner, smarter CLI to keep your web app inside the safe, cross-browser “Baseline” zone.

What’s new

  • Inline custom rules right in baseline.config.json (no extra files)
  • Compact Targets table + Rules table in the CLI
  • Save reports in md, html, or json (--report=md|html|json --save)
  • Default pack = all (or filter with --only, --exclude, --tags)
  • Better checks for tricky features (e.g., RegExp lookbehind)

Add a rule (example)

{
  "rules": [
    {
      "id": "css-custom-prop-register",
      "featureId": "css-properties-and-values",
      "files": ["css"],
      "pattern": "@property\\s+--",
      "flags": "g",
      "message": "@property may not be in your baseline.",
      "tags": ["css","experimental"]
    }
  ]
}

Try it

npx baseline-guard --save --report=md

npm: https://www.npmjs.com/package/baseline-guard GitHub: https://github.com/codewithshinde/baseline-guard

Log in or sign up for Devpost to join the conversation.