No description
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-08 09:32:17 -04:00
.github/workflows Add pinned action version comments 2026-06-08 09:05:56 -04:00
.npmrc Supply chain improvements 2026-06-03 09:52:06 -04:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-10-28 11:33:21 +01:00
CODEOWNERS Remove primer from codeowners 2024-11-20 16:36:56 -07:00
index.js Implement the browserslist config 2022-10-11 12:08:33 +02:00
LICENSE Initial commit 2022-10-11 11:57:09 +02:00
package-lock.json Remove Playwright from supply chain updates 2026-06-03 13:40:14 -04:00
package.json Remove Playwright from supply chain updates 2026-06-03 13:40:14 -04:00
README.md Adding note about GPR to README 2022-10-19 10:25:50 -07:00
SECURITY.md Create SECURITY.md 2022-10-28 11:31:17 +01:00
SUPPORT.md Create SUPPORT.md 2022-10-28 11:32:45 +01:00

browserslist-config

The GitHub browserslist config.

How is this used on GitHub?

We use browserslist to power tools that guide developers to use APIs and syntax that is implemented by the browsers we support. These tools include eslint-plugin-compat, eslint-plugin-escompat and postcss-preset-env.

Usage

Install the package using npm.

npm install --save-dev @github/browserslist-config

Note: If your project is setup to pull from GitHub Package Registry (GPR), then you will need to install the following way:

npm install --save-dev @github/browserslist-config --@github:registry=https://registry.npmjs.org

However, if possible, it is recommended to use NPM instead of GPR.


Add the browserslist key to your package.json.

diff --git a/package.json b/package.json
index 2ecef3d..260838f 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,7 @@
   "keywords": [
     "prettier"
   ],
+  "browserslist": "extends @github/browserslist-config",
   "license": "MIT",
   "author": "GitHub Inc.",
   "main": "index.js"

Check out the browserslist documentation for more info on sharing configurations.

Contributing

Contributing should only be done by GitHub staff and PRs are approved by @github/web-systems as the CODEOWNERS of this library. GitHub Staff can use github/browser-support-cli to get production data on browser usage for github.com.

License

Distributed under the MIT license. See LICENSE for details.