Skip to content

sm-bugu/stylelint-config-sm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylelint-config-sm

安装 stylelint

在全局中安装如下node.js依赖包:

$ npm install stylelint -g
$ npm install stylelint-config-sm -g

集成编辑器检测插件

  • sublime text 3

    1. 安装sublime text 3

    2. 使用快捷键(cmd+shift+p on Mac OS X, ctrl+shift+p on Linux/Windows)安装sublimelinter:Package Control: Install Package -> sublimelinter

    3. 使用快捷键(cmd+shift+p on Mac OS X, ctrl+shift+p on Linux/Windows)安装sublimelinter-contrib-stylelintg插件: Package Control: Install Package -> sublimelinter-contrib-stylelintg

使用

项目中手动添加.stylelintrc配置文件,内容为:

{
  "extends": "stylelint-config-sm"
}

tips

如有特殊需求,可以在配置文件中添加rules选项,覆盖或者添加新规则。

{
  "extends": "stylelint-config-sm",
  "rules": {
    "indentation": [2, "tab"],
    "number-leading-zero": 0
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%