Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ued2345/stylelint-config

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ued2345/stylelint-config

stylelint by UED2345

  • 0.1.2
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

stylelint-config

CSS 编码规范之 stylelint 配置文件 ‧ UED2345

安装

在你的项目中安装 stylelint 和配置包:

npm i -D stylelint
npm i -D @ued2345/stylelint-config

使用方法

  1. 在你的项目的根目录添加 .stylelintrc.js 文件:

    module.exports = {
    	extends: [
    		'@ued2345/stylelint-config'
    	],
    	ignoreFiles: [
    		'./dist/**/*.*',
    	],
    }
    
  2. 在你的项目的 package.json 文件中添加脚本:

    {
      "scripts": {
        "lint-css": "stylelint src/**/*.scss src/**/*.vue"
      }
    }
    
  3. 执行以下命令开始校验 CSS 代码:

    npm run lint-css
    

    如果需要 stylelint 帮忙修复(只有部分问题可以自动修复),执行以下命令:

    npm run lint-css -- --fix
    

    如有必要,你可以把上述命令整合到 CI、Git hook 等工作流中。

Keywords

FAQs

Package last updated on 11 Nov 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc