{"_id":"@baseline-suite/stylelint-plugin","_rev":"2-bacb87eab71911b9893472dafbd60102","name":"@baseline-suite/stylelint-plugin","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@baseline-suite/stylelint-plugin","version":"1.0.0","keywords":["stylelint","stylelint-plugin","baseline","css","compatibility"],"license":"MIT","_id":"@baseline-suite/stylelint-plugin@1.0.0","maintainers":[{"name":"omkar598","email":"omkardongre5@gmail.com"}],"homepage":"https://github.com/omkardongre/Baseline-Developer-Suite#readme","bugs":{"url":"https://github.com/omkardongre/Baseline-Developer-Suite/issues"},"dist":{"shasum":"ff7d9f904781d22d8956376073b4b537561af61d","tarball":"https://registry.npmjs.org/@baseline-suite/stylelint-plugin/-/stylelint-plugin-1.0.0.tgz","fileCount":10,"integrity":"sha512-Few5HrfQzmM2j8TeilLvMWsP58yHqT22DAlchoYkTurpCu5/WGs2l7gLZV0NSoeRF624sRCoxg5IFt8iKSVXkg==","signatures":[{"sig":"MEQCICS2GGmoVuvCeZalSjCBkA7XylTAh9AaMpV8WzeZ28rfAiAT0dCcjbPL05u7JpFZOiPCfQk7zjg9it48xs2a6XJNTA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13036},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"d5ca18adfaac888fbc29ede22af84b4a5e11c354","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts","clean":"rm -rf dist","test:watch":"vitest"},"_npmUser":{"name":"omkar598","email":"omkardongre5@gmail.com"},"repository":{"url":"git+https://github.com/omkardongre/Baseline-Developer-Suite.git","type":"git","directory":"packages/stylelint-plugin"},"_npmVersion":"10.2.4","description":"Stylelint plugin for CSS Baseline compatibility checking","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@baseline-suite/core":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vitest":"^1.3.1","stylelint":"^16.1.0","typescript":"^5.3.3","@types/node":"^20.10.0"},"peerDependencies":{"stylelint":"^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-plugin_1.0.0_1759734570678_0.34715745055351954","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@baseline-suite/stylelint-plugin","version":"1.0.1","description":"Stylelint plugin for CSS Baseline compatibility checking","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsup src/index.ts --format cjs,esm --dts","dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest run","test:watch":"vitest","clean":"rm -rf dist"},"keywords":["stylelint","stylelint-plugin","baseline","css","compatibility"],"peerDependencies":{"stylelint":"^15.0.0 || ^16.0.0"},"dependencies":{"@baseline-suite/core":"^1.0.0"},"devDependencies":{"@types/node":"^20.10.0","stylelint":"^16.1.0","tsup":"^8.0.2","typescript":"^5.3.3","vitest":"^1.3.1"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/omkardongre/Baseline-Developer-Suite.git","directory":"packages/stylelint-plugin"},"_id":"@baseline-suite/stylelint-plugin@1.0.1","gitHead":"444e624aaf77727e1317e9c725265b18dc5229bc","bugs":{"url":"https://github.com/omkardongre/Baseline-Developer-Suite/issues"},"homepage":"https://github.com/omkardongre/Baseline-Developer-Suite#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-R4dNeGUsTte8QqQFrP6u9IkfSMPIfpsTL+3x0Rvt92mfMPiNQXWzMlOd6ETRUiB8YQiATL3H89I/yVx1+WyrKw==","shasum":"1855f7bf6e7e4d73d38ae7c445cb639ff638276e","tarball":"https://registry.npmjs.org/@baseline-suite/stylelint-plugin/-/stylelint-plugin-1.0.1.tgz","fileCount":10,"unpackedSize":12982,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDLyRlh87XOLojvljtR0+c/oxCLvVhN6zvlgsLBVStzPAIgaesW0NRYMvee3HseOCVsh/lA2UpydEz945J6w3pUBVk="}]},"_npmUser":{"name":"omkar598","email":"omkardongre5@gmail.com"},"directories":{},"maintainers":[{"name":"omkar598","email":"omkardongre5@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stylelint-plugin_1.0.1_1759791458146_0.6660321427266562"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-06T07:09:30.618Z","modified":"2025-10-06T22:57:38.545Z","1.0.0":"2025-10-06T07:09:30.880Z","1.0.1":"2025-10-06T22:57:38.348Z"},"bugs":{"url":"https://github.com/omkardongre/Baseline-Developer-Suite/issues"},"license":"MIT","homepage":"https://github.com/omkardongre/Baseline-Developer-Suite#readme","keywords":["stylelint","stylelint-plugin","baseline","css","compatibility"],"repository":{"type":"git","url":"git+https://github.com/omkardongre/Baseline-Developer-Suite.git","directory":"packages/stylelint-plugin"},"description":"Stylelint plugin for CSS Baseline compatibility checking","maintainers":[{"name":"omkar598","email":"omkardongre5@gmail.com"}],"readme":"# stylelint-plugin-baseline\n\nStylelint plugin for CSS Baseline compatibility checking.\n\n## Installation\n\n```bash\nnpm install --save-dev stylelint-plugin-baseline\n```\n\n## Usage\n\nAdd it to your Stylelint config (`.stylelintrc.json`):\n\n```json\n{\n  \"plugins\": [\"stylelint-plugin-baseline\"],\n  \"rules\": {\n    \"baseline/no-non-baseline-properties\": [\n      true,\n      {\n        \"baselineYear\": 2023,\n        \"allowNewly\": true\n      }\n    ],\n    \"baseline/no-non-baseline-features\": [\n      true,\n      {\n        \"baselineYear\": 2023\n      }\n    ]\n  }\n}\n```\n\n## Rules\n\n### `baseline/no-non-baseline-properties`\n\nDisallow CSS properties with limited baseline support.\n\n**Options:**\n- `baselineYear` (number): Target baseline year (default: 2023)\n- `allowNewly` (boolean): Allow newly available properties (default: true)\n\n**Examples:**\n\n```css\n/* ❌ Error (baselineYear: 2021) */\n.container {\n  container-type: inline-size;\n}\n\n/* ❌ Error (allowNewly: false) */\n.box {\n  -webkit-appearance: none;\n}\n\n/* ✅ Valid */\n.flex {\n  display: flex;\n}\n```\n\n### `baseline/no-non-baseline-features`\n\nDisallow CSS features with limited baseline support.\n\n**Options:**\n- `baselineYear` (number): Target baseline year (default: 2023)\n\n**Examples:**\n\n```css\n/* ❌ Error (baselineYear: 2022) */\n.parent:has(.child) {\n  color: red;\n}\n\n/* ❌ Error (baselineYear: 2022) */\n.box {\n  width: clamp(200px, 50%, 400px);\n}\n\n/* ✅ Valid */\n.flex {\n  display: flex;\n  gap: 1rem;\n}\n```\n\n## Configurations\n\n### Recommended\n\n```json\n{\n  \"extends\": [\"stylelint-plugin-baseline/recommended\"]\n}\n```\n\nBalanced defaults that allow newly available features:\n- `baselineYear: 2023`\n- `allowNewly: true`\n\n### Strict\n\n```json\n{\n  \"extends\": [\"stylelint-plugin-baseline/strict\"]\n}\n```\n\nStrict mode for maximum compatibility:\n- `baselineYear: 2022`\n- `allowNewly: false`\n\n## Detected Features\n\n### Properties (Limited Support)\n- `container-type`\n- `container-name`\n- `accent-color`\n- `aspect-ratio`\n- `content-visibility`\n- `overscroll-behavior`\n- `scroll-snap-type`\n- `scroll-snap-align`\n- Vendor-prefixed properties (`-webkit-`, `-moz-`, `-ms-`)\n\n### CSS Features\n- `:has()` pseudo-class\n- `:is()` pseudo-class\n- `:where()` pseudo-class\n- `clamp()` function\n- `min()` function\n- `max()` function\n\n## Integration\n\n### With ESLint\n\nUse together with `eslint-plugin-baseline` for complete coverage:\n\n```json\n{\n  \"extends\": [\n    \"plugin:baseline/recommended\"\n  ],\n  \"plugins\": [\"stylelint-plugin-baseline\"]\n}\n```\n\n### With CLI\n\n```bash\nstylelint \"**/*.css\" --config .stylelintrc.json\n```\n\n### With npm scripts\n\n```json\n{\n  \"scripts\": {\n    \"lint:css\": \"stylelint '**/*.css'\",\n    \"lint:css:fix\": \"stylelint '**/*.css' --fix\"\n  }\n}\n```\n\n## Development\n\n```bash\n# Install dependencies\npnpm install\n\n# Build\npnpm build\n\n# Test\npnpm test\n\n# Watch mode\npnpm dev\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}