Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
stylelint-config-css-modules
Advanced tools
Changelog
[4.4.0] - 2023-12-20
Readme
CSS modules shareable config for stylelint.
Tweaks stylelint rules to accept css modules specific syntax.
This is useful as an override of pre-defined rules, for instance the stylelint-config-standard.
npm install stylelint-config-css-modules --save-dev
# or
pnpm install stylelint-config-css-modules --save-dev
# or
yarn add stylelint-config-css-modules --dev
stylelint-config-css-modules
comes withstylelint-scss
asoptionalDependencies
, if you're not using SCSS and want to strip it from your node_modules just:
npm install stylelint-config-css-modules --save-dev --no-optional
# or
pnpm install stylelint-config-css-modules --save-dev --no-optional
# or
yarn add stylelint-config-css-modules --dev --ignore-optional
{
"extends": [
"stylelint-config-standard",
"stylelint-config-css-modules"
]
}
@value colors: './colors.css';
@value primary, secondary from colors;
.base {
content: 'base';
color: primary;
}
.composed {
composes: base;
}
.composedWith {
compose-with: base;
}
.flexible {
composes: flex from './utils.css';
flex-direction: column;
}
:global(.js) .progressive {
display: block;
}
:export {
black: #000;
white: #111;
}
Using SCSS along with configs such as stylelint-config-standard-scss means you should necessarily have stylelint-scss installed.
{
"extends": [
"stylelint-config-standard-scss",
"stylelint-config-css-modules"
]
}
stylelint-config-css-modules is unlicensed.
FAQs
CSS modules shareable config for stylelint
The npm package stylelint-config-css-modules receives a total of 197,074 weekly downloads. As such, stylelint-config-css-modules popularity was classified as popular.
We found that stylelint-config-css-modules 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.