{"id":20653053,"url":"https://github.com/3846masa/stylelint-browser-compat","last_synced_at":"2026-01-07T20:14:45.239Z","repository":{"id":38377903,"uuid":"499726417","full_name":"3846masa/stylelint-browser-compat","owner":"3846masa","description":"Yet another linter rule to detect compatibility of CSS features.","archived":false,"fork":false,"pushed_at":"2025-04-09T14:13:48.000Z","size":3842,"stargazers_count":25,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-09T16:20:50.776Z","etag":null,"topics":["compatibility","css","linter","stylelint","stylelint-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3846masa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"3846masa"}},"created_at":"2022-06-04T04:42:09.000Z","updated_at":"2025-04-08T19:09:21.000Z","dependencies_parsed_at":"2024-04-14T17:45:12.876Z","dependency_job_id":"eb69a3d5-125b-414f-864d-de5d8610f35a","html_url":"https://github.com/3846masa/stylelint-browser-compat","commit_stats":null,"previous_names":[],"tags_count":143,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3846masa%2Fstylelint-browser-compat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3846masa%2Fstylelint-browser-compat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3846masa%2Fstylelint-browser-compat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3846masa%2Fstylelint-browser-compat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3846masa","download_url":"https://codeload.github.com/3846masa/stylelint-browser-compat/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065287,"owners_count":21041872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compatibility","css","linter","stylelint","stylelint-plugin"],"created_at":"2024-11-16T17:40:52.127Z","updated_at":"2026-01-07T20:14:45.151Z","avatar_url":"https://github.com/3846masa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/3846masa"],"categories":[],"sub_categories":[],"readme":"# stylelint-browser-compat\n\n![stylelint-browser-compat](https://raw.githubusercontent.com/3846masa/stylelint-browser-compat/develop/docs/assets/ogp.png)\n\n[![github sponsors](https://flat.badgen.net/badge/GitHub%20Sponsors/Support%20me%20%E2%9D%A4/ff69b4?icon=github)](https://github.com/sponsors/3846masa)\n[![npm](https://flat.badgen.net/npm/v/stylelint-browser-compat)](https://www.npmjs.com/package/stylelint-browser-compat)\n[![license](https://flat.badgen.net/badge/license/MIT/blue)](LICENSE)\n[![standard-readme compliant](https://flat.badgen.net/badge/readme%20style/standard/green)](https://github.com/RichardLitt/standard-readme)\n\nYet another linter rule to detect compatibility of CSS features.\n\nThis plugin checks if the CSS you're using is supported by the browsers you're targeting.\nIt uses [@mdn/browser-compat-data](https://github.com/mdn/browser-compat-data) to detect browser support.\n\n**:warning: This plugin is beta. USE AT YOUR OWN RISK.**\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\n`stylelint-no-unsupported-browser-features` (using `doiuse`) is available to detect compatibility of CSS features.\n\nHowever, `doiuse` have not been maintained for a long time.\n\nThis library provides another alternative to detect compatibility of CSS features.\n\nAlthough `doiuse` detects compatibility from `caniuse` data, this library uses `@mdn/browser-compat-data` to do so.\n\n## Install\n\n```bash\n$ npm install --dev browserslist stylelint stylelint-browser-compat\n```\n\n```bash\n$ yarn add --dev browserslist stylelint stylelint-browser-compat\n```\n\n## Usage\n\n```js\nmodule.exports = {\n  plugins: ['stylelint-browser-compat'],\n  rules: {\n    'plugin/browser-compat': [\n      true,\n      {\n        allow: {\n          features: ['at-rules.supports'],\n          flagged: false,\n          partialImplementation: false,\n          prefix: true,\n        },\n        browserslist: ['last 2 versions'],\n      },\n    ],\n  },\n};\n```\n\n### Options\n\n- `browserslist` (string or array, optional)\n  - Accepts [browserslist queries](https://github.com/browserslist/browserslist#queries) for target browsers.\n  - By default, browserslist automatically loads the configuration file (e.g. `package.json`, `.browserslistrc`).\n- `allow.features` (array, optional)\n  - Accepts an array of features to allow.\n  - Feature ids are from [@mdn/browser-compat-data](https://github.com/mdn/browser-compat-data).\n    - For example, if you want to use `@supports` at-rules, pass `at-rules.supports`.\n- `allow.flagged` (boolean, optional)\n  - Allows features that are available when the browser's feature flags is enabled.\n  - `false` by default\n- `allow.partialImplementation` (boolean, optional)\n  - Allows features that are partial implementations.\n  - `false` by default\n- `allow.prefix` (boolean, optional)\n  - Allows features with vendor prefix.\n  - `true` by default\n\n## Contributing\n\nPRs accepted.\n\n## License\n\n[MIT (c) 3846masa](https://3846masa.mit-license.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3846masa%2Fstylelint-browser-compat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3846masa%2Fstylelint-browser-compat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3846masa%2Fstylelint-browser-compat/lists"}