{"id":15145499,"url":"https://github.com/prestashop/stylelint-browser-compatibility","last_synced_at":"2026-01-05T09:49:29.321Z","repository":{"id":43888660,"uuid":"234355039","full_name":"PrestaShop/stylelint-browser-compatibility","owner":"PrestaShop","description":"Disallow CSS properties that aren't supported by your target browser audience","archived":false,"fork":false,"pushed_at":"2024-06-16T10:26:40.000Z","size":5406,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-05T04:35:21.613Z","etag":null,"topics":["hacktoberfest","stylelint","stylelint-plugin","tool"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PrestaShop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-01-16T15:51:55.000Z","updated_at":"2023-08-02T17:58:29.000Z","dependencies_parsed_at":"2024-09-21T18:00:33.857Z","dependency_job_id":null,"html_url":"https://github.com/PrestaShop/stylelint-browser-compatibility","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fstylelint-browser-compatibility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fstylelint-browser-compatibility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fstylelint-browser-compatibility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fstylelint-browser-compatibility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PrestaShop","download_url":"https://codeload.github.com/PrestaShop/stylelint-browser-compatibility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245599969,"owners_count":20642218,"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":["hacktoberfest","stylelint","stylelint-plugin","tool"],"created_at":"2024-09-26T11:40:18.901Z","updated_at":"2026-01-05T09:49:29.276Z","avatar_url":"https://github.com/PrestaShop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylelint-browser-compatibility\n\n\u003e disallow properties that aren't supported by your target browser audience\n\nThis plugin uses [doiuse](https://github.com/anandthakker/doiuse) to detect browser support of CSS properties. Doiuse checks if the sent property is supported using the [caniuse](http://caniuse.com/) database.\n\n## Installation\n\nFirst of all, if you are interested on this plugin, you probably have [stylelint](https://github.com/stylelint/stylelint) already used on your project, if not, take some time reading their repository.\n\nInstall this package using --save-dev as stylelint is a developer tool and should never be delivered in production.\n\n```bash\n$ npm install stylelint-browser-compatibility --save-dev\n```\n\n## Usage\n\n1. Add `\"stylelint-browser-compatibility\"` to your stylelint config plugins array\n2. Add `\"prestashop/stylelint-browser-compatibility\"` to your stylelint config rules\n3. Enable the rule by setting it to `true`, or pass optional extra configuration\n\n## Options\n\n* `browserList`: optional. Accepts an array of browsers you want to support. For example `['\u003e 1%', 'Last 2 versions']`. See [browserslist](https://github.com/ai/browserslist) for documentation. Default will be all browsers.\n* `ignore`: optional. Accepts an array of features to ignore. For example: `['rem', 'css-table']`. Feature names can be found in the error messages but it also support simple feature name like \"display\" or \"flex\" as it also check css value and property so you can ignore every features that are not lister on caniuse database.\n\nExample of `.stylelintrc`:\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-browser-compatibility\"\n  ],\n  \"rules\": {\n    \"prestashop/stylelint-browser-compatibility\": [true, {\n      \"browserList\": [\"\u003e 2%\", \"IE 10\", \"IE 11\"],\n      \"ignore\": [\"rem\", \"cursor\"]\n    }]\n  }\n}\n```\n\n## Recommendations\n\nWe use error severity as we want to force the compatibility of the browsers audience we choose.\n\n## License\n\n[MIT](http://ismay.mit-license.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprestashop%2Fstylelint-browser-compatibility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprestashop%2Fstylelint-browser-compatibility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprestashop%2Fstylelint-browser-compatibility/lists"}