All Projects → nuxt-community → Stylelint Module

nuxt-community / Stylelint Module

Licence: mit
Stylelint module for Nuxt.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Stylelint Module

Wemake Vue Template
Bleeding edge vue template focused on code quality and developer happiness.
Stars: ✭ 645 (+1915.63%)
Mutual labels:  stylelint, nuxt, nuxtjs
Sitemap Module
Sitemap Module for Nuxt
Stars: ✭ 539 (+1584.38%)
Mutual labels:  nuxt, nuxtjs
Firebase Module
🔥 Easily integrate Firebase into your Nuxt project. 🔥
Stars: ✭ 493 (+1440.63%)
Mutual labels:  nuxt, nuxtjs
Nuxt Ssr Blog
Serverless static-generated Nuxt.js Universal JavaScript web application. Demo app, accompanying the SitePoint article.
Stars: ✭ 30 (-6.25%)
Mutual labels:  nuxt, nuxtjs
Nuxt Firebase Sns Example
Nuxt v2 & Firebase(Hosting / Functions SSR / Firestore), Google Auth SNS Example.
Stars: ✭ 485 (+1415.63%)
Mutual labels:  nuxt, nuxtjs
Style Resources Module
Nobody likes extra @import statements!
Stars: ✭ 485 (+1415.63%)
Mutual labels:  nuxt, nuxtjs
Nuxt Lazysizes
Lazysizes module for Nuxt.js
Stars: ✭ 25 (-21.87%)
Mutual labels:  nuxt, nuxtjs
Vercel Builder
Vercel Builder for Nuxt.js
Stars: ✭ 437 (+1265.63%)
Mutual labels:  nuxt, nuxtjs
Vuecnodejs
⚽️🎉Vue初/中级项目,CnodeJS社区重构。( a junior project of Vue.js, rewrite cnodejs.org ) 预览(DEMO):
Stars: ✭ 705 (+2103.13%)
Mutual labels:  nuxt, nuxtjs
Nuxt Optimized Images
🌅🚀 Automatically optimizes images used in Nuxt.js projects (JPEG, PNG, SVG, WebP and GIF).
Stars: ✭ 717 (+2140.63%)
Mutual labels:  nuxt, nuxtjs
Vue Lazy Hydration
Lazy Hydration of Server-Side Rendered Vue.js Components
Stars: ✭ 797 (+2390.63%)
Mutual labels:  nuxt, nuxtjs
Wuxt
Nuxt/WordPress development environment, combining the worlds biggest CMS with the most awesome front-end application framework yet.
Stars: ✭ 459 (+1334.38%)
Mutual labels:  nuxt, nuxtjs
Composition Api
Composition API hooks for Nuxt.
Stars: ✭ 441 (+1278.13%)
Mutual labels:  nuxt, nuxtjs
Doccano
Open source annotation tool for machine learning practitioners.
Stars: ✭ 5,600 (+17400%)
Mutual labels:  nuxt, nuxtjs
Device Module
Nuxt.js module for detecting device type.
Stars: ✭ 436 (+1262.5%)
Mutual labels:  nuxt, nuxtjs
Nuxt Static Render
Nuxt module for SSR without rehydration payload
Stars: ✭ 32 (+0%)
Mutual labels:  nuxt, nuxtjs
Awesome Nuxt
A curated list of awesome things related to Nuxt.js
Stars: ✭ 4,285 (+13290.63%)
Mutual labels:  nuxt, nuxtjs
Vue Gallery
📷 Responsive and customizable image and video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers.
Stars: ✭ 405 (+1165.63%)
Mutual labels:  nuxt, nuxtjs
Tailwindcss Module
Tailwind CSS module for Nuxt
Stars: ✭ 678 (+2018.75%)
Mutual labels:  nuxt, nuxtjs
Nuxt Healthcheck
Nuxt.js module for handle healthcheck
Stars: ✭ 24 (-25%)
Mutual labels:  nuxt, nuxtjs

@nuxtjs/stylelint-module

npm version npm downloads Github Actions CI Codecov License

Stylelint module for Nuxt.js

📖 Release Notes

Requirements

You need to ensure that you have stylelint installed:

yarn add --dev stylelint # or npm install --save-dev stylelint

Setup

  1. Add @nuxtjs/stylelint-module dependency to your project
yarn add --dev @nuxtjs/stylelint-module # or npm install --save-dev @nuxtjs/stylelint-module
  1. Add @nuxtjs/stylelint-module to the buildModules section of nuxt.config.js
export default {
  buildModules: [
    // Simple usage
    '@nuxtjs/stylelint-module',

    // With options
    ['@nuxtjs/stylelint-module', { /* module options */ }]
  ]
}

⚠️ If you are using Nuxt < v2.9 you have to install the module as a dependency (No --dev or --save-dev flags) and use modules section in nuxt.config.js instead of buildModules.

Using top level options

export default {
  buildModules: [
    '@nuxtjs/stylelint-module'
  ],
  stylelint: {
    /* module options */
  }
}

Options

See stylelint's options for the complete list of options available. These options are passed through to the stylelint directly.

configFile

  • Type: String
  • Default: undefined

Specify the config file location to be used by stylelint.

Note: By default this is handled by stylelint.

context

  • Type: String
  • Default: srcDir

A string indicating the root of your files.

files

  • Type: String|Array[String]
  • Default: ['assets/**/*.{s?(a|c)ss,less,stylus}', '{components,layouts,pages}/**/*.vue']

Specify the glob pattern for finding files. Must be relative to options.context.

fix

  • Type: Boolean
  • Default: false

If true, stylelint will fix as many errors as possible. The fixes are made to the actual source files. All unfixed errors will be reported. See Autofixing errors docs.

formatter

  • Type: Function
  • Default: require('stylelint').formatters.string

Specify the formatter that you would like to use to format your results.

lintDirtyModulesOnly

  • Type: Boolean
  • Default: false

Lint only changed files, skip lint on start.

stylelintPath

  • Type: String
  • Default: stylelint

Path to stylelint instance that will be used for linting.

Errors and Warning

By default the plugin will auto adjust error reporting depending on stylelint errors/warnings counts. You can still force this behavior by using emitError or emitWarning options:

emitError

  • Type: Boolean
  • Default: false

Will always return errors, if set to true.

emitWarning

  • Type: Boolean
  • Default: false

Will always return warnings, if set to true.

failOnError

  • Type: Boolean
  • Default: false

Will cause the module build to fail if there are any errors, if set to true.

failOnWarning

  • Type: Boolean
  • Default: false

Will cause the module build to fail if there are any warnings, if set to true.

quiet

  • Type: Boolean
  • Default: false

Will process and report errors only and ignore warnings, if set to true.

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) Nuxt Community

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].