
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
stylelint-browser-compat
Advanced tools
Yet another linter rule to detect compatibility of CSS features.
Yet another linter rule to detect compatibility of CSS features.
This plugin checks if the CSS you're using is supported by the browsers you're targeting. It uses @mdn/browser-compat-data to detect browser support.
:warning: This plugin is beta. USE AT YOUR OWN RISK.
stylelint-no-unsupported-browser-features
(using doiuse
) is available to detect compatibility of CSS features.
However, doiuse
have not been maintained for a long time.
This library provides another alternative to detect compatibility of CSS features.
Although doiuse
detects compatibility from caniuse
data, this library uses @mdn/browser-compat-data
to do so.
$ npm install --dev browserslist stylelint stylelint-browser-compat
$ yarn add --dev browserslist stylelint stylelint-browser-compat
module.exports = {
plugins: ['stylelint-browser-compat'],
rules: {
'plugin/browser-compat': [
true,
{
allow: {
features: ['at-rules.supports'],
flagged: false,
partialImplementation: false,
prefix: true,
},
browserslist: ['last 2 versions'],
},
],
},
};
browserslist
(string or array, optional)
package.json
, .browserslistrc
).allow.features
(array, optional)
@supports
at-rules, pass at-rules.supports
.allow.flagged
(boolean, optional)
false
by defaultallow.partialImplementation
(boolean, optional)
false
by defaultallow.prefix
(boolean, optional)
true
by defaultPRs accepted.
FAQs
Yet another linter rule to detect compatibility of CSS features.
The npm package stylelint-browser-compat receives a total of 2,226 weekly downloads. As such, stylelint-browser-compat popularity was classified as popular.
We found that stylelint-browser-compat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.