Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
@ued2345/stylelint-config
Advanced tools
CSS 编码规范之 stylelint 配置文件 ‧ UED2345
在你的项目中安装 stylelint 和配置包:
npm i -D stylelint
npm i -D @ued2345/stylelint-config
在你的项目的根目录添加 .stylelintrc.js
文件:
module.exports = {
extends: [
'@ued2345/stylelint-config'
],
ignoreFiles: [
'./dist/**/*.*',
],
}
在你的项目的 package.json
文件中添加脚本:
{
"scripts": {
"lint-css": "stylelint src/**/*.scss src/**/*.vue"
}
}
执行以下命令开始校验 CSS 代码:
npm run lint-css
如果需要 stylelint 帮忙修复(只有部分问题可以自动修复),执行以下命令:
npm run lint-css -- --fix
如有必要,你可以把上述命令整合到 CI、Git hook 等工作流中。
FAQs
Stylelint config by UED2345
The npm package @ued2345/stylelint-config receives a total of 0 weekly downloads. As such, @ued2345/stylelint-config popularity was classified as not popular.
We found that @ued2345/stylelint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.