{"id":20235687,"url":"https://github.com/browserslist/lint","last_synced_at":"2025-04-05T19:09:34.131Z","repository":{"id":37502106,"uuid":"504198599","full_name":"browserslist/lint","owner":"browserslist","description":"Linter for Browserslist config","archived":false,"fork":false,"pushed_at":"2025-02-12T05:53:24.000Z","size":198,"stargazers_count":43,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T18:05:56.902Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://browsersl.ist/","language":"JavaScript","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/browserslist.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":{"open_collective":"browserslist","tidelift":"npm/browserslist","github":"ai"}},"created_at":"2022-06-16T14:59:03.000Z","updated_at":"2025-03-09T23:25:54.000Z","dependencies_parsed_at":"2024-06-19T01:37:10.305Z","dependency_job_id":"ef9961f1-aaba-47ef-8f9f-c4dd81d08aef","html_url":"https://github.com/browserslist/lint","commit_stats":{"total_commits":59,"total_committers":5,"mean_commits":11.8,"dds":0.2033898305084746,"last_synced_commit":"df78e95054fc314b0c7cc52ba8d9c93c710f910b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserslist%2Flint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserslist%2Flint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserslist%2Flint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserslist%2Flint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserslist","download_url":"https://codeload.github.com/browserslist/lint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386263,"owners_count":20930618,"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":[],"created_at":"2024-11-14T08:17:18.535Z","updated_at":"2025-04-05T19:09:34.016Z","avatar_url":"https://github.com/browserslist.png","language":"JavaScript","funding_links":["https://opencollective.com/browserslist","https://tidelift.com/funding/github/npm/browserslist","https://github.com/sponsors/ai"],"categories":[],"sub_categories":[],"readme":"# Browserslist Lint\n\n\u003cimg width=\"120\" height=\"120\" alt=\"Browserslist logo by Anton Popov\"\n     src=\"https://browsersl.ist/logo.svg\" align=\"right\"\u003e\n\nCheck your [Browserslist](https://github.com/browserslist/browserslist/) config\nwith target browsers for popular mistakes.\n\n```sh\nnpx browserslist-lint\n```\n\nOr try online: [`browsersl.ist`](https://browsersl.ist/)\n\nRules:\n\n* `missedNotDead`: lack of `no dead` with queries like `last 2 versions`.\n* `countryWasIgnored`: bad coverage in some country with \u003e10M Internet users.\n* `limitedBrowsers`: ignoring browsers diversity by calling only\n  a few browsers directly in config.\n* `alreadyDead`: browser with `not` is already in `not dead` or `defaults`.\n\n\u003ca href=\"https://evilmartians.com/?utm_source=browserslist-lint\"\u003e\n  \u003cimg src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\"\n       alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\"\u003e\n\u003c/a\u003e\n\n## Pre-Commit Hook\n\nThis project is also available as a [pre-commit hook](https://pre-commit.com/). Please add the following to your pre-commit configuration.\n\n```yaml\nrepos:\n  - repo: https://github.com/browserslist/lint\n    id: browserslist-lint\n```\n\n## JS API\n\n```js\nimport { lint } from 'browserslist-lint'\n\nlint('defaults, not ie 11') // =\u003e [{\n                            //      id: 'alreadyDead',\n                            //      message: '`not ie 11` already in `defaults`'\n                            //      fixed: 'defaults'\n                            //    }]\n\n// Without option with find Browserslist automatically\nlint() // =\u003e [{ id, message, fixed }]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserslist%2Flint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserslist%2Flint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserslist%2Flint/lists"}