Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lego/browserslist-config-internal

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lego/browserslist-config-internal

LEGO shareable browserslist config for js projects

  • 7.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37
Maintainers
2
Weekly downloads
 
Created
Source

@lego/browserslist-config-internal

browserslist configuration for internal projects, supporting the browsers supported by the internal IT organization

What is Browserslist?

Browserslist is a configuration to share your project's target browsers between different front-end tools.

  • Browserslist (Github repo)
  • browserl.ist (Browserslist query syntax validation)
  • "Browserslist is a Good Idea" (blog post by @chriscoyier)

Installation

$ npm install --save-dev @lego/browserslist-config-internal

Usage

To get started, add this to your package.json file:

"browserslist": [
  ["extends @lego/browserslist-config-internal"]
]

or add a .browserslistrc file which contains:

extends @lego/browserslist-config-internal

Limitations

None

Tools that use Browserslist

Autoprefixer

Autoprefixer is a PostCSS plugin to add vendor prefixes to CSS. It adds only actual prefixes according to Browserslist’s target browsers and Can I Use data.

Babel

Babel is a tool to compile JS files. The most popular way to use it is to compile future JS syntaxes to JS supported by target browsers. From Babel 7.0 @babel/preset-env loads target browsers from the same Browserslist config.

PostCSS Preset Env

postcss-preset-env is a “Babel for CSS.” It compiles future CSS syntax to CSS supported by target browsers. It is similar to cssnext, but more accurate with CSS spec and has stage option.

PostCSS Normalize

Browsers have different default styles. To have same styles in all browsers we need to “normalize” these differences.

postcss-normalize is a fork of popular Normalize.css with 2 differents: it doesn’t have opinionated styles, and it adds only necessary fixes according Browserslist target browsers.

ESLint

ESLint finds mistakes in your JS. eslint-plugin-compat is a plugin to ESLint to warn that JS will not work in all target browsers.

Stylelint

Stylelint is a “ESLint for CSS” to warn you about mistakes in CSS. It also has stylelint-no-unsupported-browser-features plugin to warn you when CSS property will not work in all target browsers.

Keywords

FAQs

Package last updated on 23 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc