Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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
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.
[4.4.0] - 2023-12-20
FAQs
CSS modules shareable config for stylelint
The npm package stylelint-config-css-modules receives a total of 276,064 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.