browserslist/lint

Linter for Browserslist config

53

stars

71

commits

JavaScript

primary language

Jul 23, 2026

updated

browsersl.ist/

README

Browserslist Lint

Browserslist logo by Anton Popov

Check your Browserslist config with target browsers for popular mistakes.

npx browserslist-lint

Or try online: browsersl.ist

Rules:

  • missedNotDead: lack of no dead with queries like last 2 versions.
  • countryWasIgnored: bad coverage in some country with >10M Internet users.
  • limitedBrowsers: ignoring browsers diversity by calling only a few browsers directly in config.
  • alreadyDead: browser with not is already in not dead or defaults.

  Browserslist Lint is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.


Pre-Commit Hook

This project is also available as a pre-commit hook. Please add the following to your pre-commit configuration.

repos:
  - repo: https://github.com/browserslist/lint
    id: browserslist-lint

JS API

import { lint } from 'browserslist-lint'

lint('defaults, not ie 11') // => [{
//      id: 'alreadyDead',
//      message: '`not ie 11` already in `defaults`'
//      fixed: 'defaults'
//    }]

// Without option with find Browserslist automatically
lint() // => [{ id, message, fixed }]

Contributors

ai

62 commits

sashachabin

6 commits

AliSajid

1 commits

dangreen

1 commits

browserslist/lint

Linter for Browserslist config

53

stars

71

commits

JavaScript

primary language

Jul 23, 2026

updated

browsersl.ist/

README

Browserslist Lint

Browserslist logo by Anton Popov

Check your Browserslist config with target browsers for popular mistakes.

npx browserslist-lint

Or try online: browsersl.ist

Rules:

  • missedNotDead: lack of no dead with queries like last 2 versions.
  • countryWasIgnored: bad coverage in some country with >10M Internet users.
  • limitedBrowsers: ignoring browsers diversity by calling only a few browsers directly in config.
  • alreadyDead: browser with not is already in not dead or defaults.

  Browserslist Lint is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.


Pre-Commit Hook

This project is also available as a pre-commit hook. Please add the following to your pre-commit configuration.

repos:
  - repo: https://github.com/browserslist/lint
    id: browserslist-lint

JS API

import { lint } from 'browserslist-lint'

lint('defaults, not ie 11') // => [{
//      id: 'alreadyDead',
//      message: '`not ie 11` already in `defaults`'
//      fixed: 'defaults'
//    }]

// Without option with find Browserslist automatically
lint() // => [{ id, message, fixed }]

Contributors

ai

62 commits

sashachabin

6 commits

AliSajid

1 commits

dangreen

1 commits

Languages

JavaScript

100.0%