1.4.10 • Published 10 months ago

@denaro-config/stylelint v1.4.10

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@denaro-config/stylelint

:tada: 前端工程化中的 stylelint 通用配置, 用于规范 css 代码质量。

npm (scoped) NPM

GitHub repo size GitHub Repo stars GitHub issues GitHub top language

npm jsDelivr hits (npm scoped)

参考官网地址

stylelint

安装至您的项目

npm install -D @denaro-config/stylelint
# or
pnpm install -D @denaro-config/stylelint
# or
yarn add -D @denaro-config/stylelint

使用

在项目根目录下创建 .stylelintrc 文件, 参考配置内容如下:

{
  "extends": ["@denaro-config/stylelint"]
}

忽略检查

在项目根目录下创建 .stylelintignore 文件, 参考配置内容如下:

node_modules
dist
lib

结合 lint-staged、husky 使用

package.json 中添加以下内容

{
    "scripts": {
        "stylelint": "stylelint \"./**/*.{css,vue,html}\" --fix"
    },
    "lint-staged": {
        "*.{css,vue,html}": "stylelint --write --ignore-unknown"
    }
}
1.4.10

10 months ago

1.4.9

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.2.4

2 years ago

1.3.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago