1. hfex-stylelint-config
这个包定义了scss / css 语法检测的所设定的规则。
hfex-stylelint-config
Package: hfex-stylelint-config
Last modified: Thu, 01 Jun 2023 14:43:21 GMT
Version: 1.1.0
License: ISC
Downloads: 3

Install

npm install hfex-stylelint-config
yarn add hfex-stylelint-config

stylelint-config

这个包定义了scss / css 语法检测的所设定的规则。

使用方法

 npm i hfex-stylelint-config stylelint --save-dev

目前有两种配置可以选择

  • scss / css
  • vue 中 scss / css

scss / css

packagejson

{   
    "scripts":{
        "stylelint": "stylelint \"./**/*.{css,less,vue,html}\" --fix"
    },
    "stylelint": {
    "extends": [
      "hfex-stylelint-config/src/rules/base"
    ]
  }
}

vue 中的 scss / css

packagejson

{   
    "scripts":{
        "stylelint": "stylelint \"./**/*.{css,less,vue,html}\" --fix"
    },
    "stylelint": {
    "extends": [
      "hfex-stylelint-config/src/rules/vue"
    ]
  }
}

测试和语法检测

 npm run stylelint

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin