当前位置: 首页 > 工具软件 > FECS > 使用案例 >

fecs使用问题

禹智渊
2023-12-01

如何豁免整个文件夹

  • 使用配置文件.fecsrc文件,只检查需要检查的文件
{
    "files": ["glob1", "glob2"],
    "htmlcs":{
        "html-lang":false,
        "no-meta-css":false,
        "self-close":fasle,
        "max-len":false
    },
    "eslint": {},
    "csshint": {},
    "htmlcs": {},
    "jformatter": {},
    "esformatter": {},
    "csscomb": {}
}

使用配置文件fecsignore

和gitignore文件用法一样
  • 命令行检测
fecs --rule --level='2'

常用格式化代码

$ fecs format src --output=fixed
$ fecs format src --replace
$ fecs format --help
 类似资料: