All Projects → ascendancyy → vue-cli-plugin-stylelint

ascendancyy / vue-cli-plugin-stylelint

Licence: other
Vue cli 3.x plugin for stylelint

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-cli-plugin-stylelint

7-react-admin-ts
用 ts + react-hooks 实现的管理后台
Stars: ✭ 23 (-52.08%)
Mutual labels:  stylelint
dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (+27.08%)
Mutual labels:  stylelint
nuxt-typescript-template
Handy starter for Nuxt 2 + TypeScript
Stars: ✭ 11 (-77.08%)
Mutual labels:  vue-cli
ember-boilerplate
👓 The stable base upon which we build our Ember.js projects at Mirego.
Stars: ✭ 33 (-31.25%)
Mutual labels:  stylelint
vue-cli-plugin-element-ui
Element-ui plugin for vue-cli
Stars: ✭ 14 (-70.83%)
Mutual labels:  vue-cli
freedom-middleware-webpack2
webpack2前端项目开发构建中间件,方便统一管理前端项目中95%以上的构建工作
Stars: ✭ 35 (-27.08%)
Mutual labels:  vue-cli
aura-admin
Aura Admin is the Web App that helps you to mange the Tech Communities like GDGs, DSCs or any other tech communities with Aura
Stars: ✭ 58 (+20.83%)
Mutual labels:  vue-cli
vue-for-my-english-app
this is a vue demo project for green hand
Stars: ✭ 80 (+66.67%)
Mutual labels:  vue-cli
vue-startup
基于vue+webpack(+typescript)的示例项目
Stars: ✭ 20 (-58.33%)
Mutual labels:  stylelint
Code-VueWapDemo
“Vue教程--Wap端项目搭建从0到1”的源码
Stars: ✭ 19 (-60.42%)
Mutual labels:  vue-cli
vue-bootstrap-boilerplate
📦 Vue 2/3, Bootstrap 5, Vuex, Vue-Router, Sass/Scss, ESLint, Axios (switch to vue3 branch)
Stars: ✭ 86 (+79.17%)
Mutual labels:  vue-cli
capacitor-vue-ionicv4-app
sample app using capacitor vuejs and ionicv4 components
Stars: ✭ 70 (+45.83%)
Mutual labels:  vue-cli
design-system
👾 A Design System for the French Health Insurance
Stars: ✭ 28 (-41.67%)
Mutual labels:  vue-cli
vue-cli-plugin-material
[UNMAINTAINED] Vue CLI 3 plugin for MDC Web and Vue MDC Adapter with Sass support
Stars: ✭ 15 (-68.75%)
Mutual labels:  vue-cli
huobi-PC
火币桌面客户端,基于electorn-vue开发
Stars: ✭ 56 (+16.67%)
Mutual labels:  vue-cli
there-are-lots-of-people-in-Baiyun-airport
挑战杯 - 广州白云机场人流量时空分布预测系统 - 前端
Stars: ✭ 14 (-70.83%)
Mutual labels:  vue-cli
vue-iview-admin
🎉基于vue-cli3.0脚手架配置实战vue项目底层搭建
Stars: ✭ 29 (-39.58%)
Mutual labels:  vue-cli
db-portfolio
My personal portfolio website.
Stars: ✭ 97 (+102.08%)
Mutual labels:  stylelint
vue-cnode
cnode build by vue2
Stars: ✭ 13 (-72.92%)
Mutual labels:  vue-cli
shogi-player
将棋の棋譜を再生したり盤面を編集したりします
Stars: ✭ 42 (-12.5%)
Mutual labels:  vue-cli

@ascendancyy/vue-cli-plugin-stylelint

stylelint plugin for vue-cli

Injected commands

  • vue-cli-service lint:style

    Usage: vue-cli-service lint:style [options] [...files]
    
    Options:
    
      --no-fix           do not auto-fix errors
      --options          list additional stylelint cli options
    

    Lints and fixes files. If no specific files are given, it lints all vue files, html files, and stylesheets in src.

Configuration (vue.config.js, "vue" in package.json)

Lint on (re)build with stylelint-webpack-plugin can be enabled with the lintStyleOnBuild option. You can also provide additional options to stylelint. See available options on the stylelint website.

module.exports = {
  // ...
  pluginOptions: {
    lintStyleOnBuild: true,
    stylelint: {
      fix: true, // boolean (default: true)
      files: '', // string | [string] (default: ['src/**/*.{vue,htm,html,css,sss,less,scss}'])
      // See https://stylelint.io/developer-guide/formatters/
      formatter: () => {} // function (default: require('stylelint-codeframe-formatter'))
      // etc...
    }
  }
}

Installing in an already created project

npm install -D @ascendancyy/vue-cli-plugin-stylelint
vue invoke @ascendancyy/vue-cli-plugin-stylelint

There is also a shorthand to invoke the plugin
vue invoke @ascendancyy/stylelint

webpack-chain Injections

  • config.plugin('stylelint')
  • config.plugin('stylelint').use('stylelint-webpack-plugin')
  • config.plugin('friendly-errors').tap(/* Adds additional transformer and formatter */)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].