Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
stylelint-config-css-modules
Advanced tools
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
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
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.
[4.2.0] - 2023-02-10
^14.5.1
.FAQs
CSS modules shareable config for stylelint
The npm package stylelint-config-css-modules receives a total of 285,571 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.