nuxt-puglint-module

0.0.2 • Public • Published

nuxt-puglint-module

PugLint module for Nuxt.js

Setup

  1. Add nuxt-puglint-module dependency to your project
yarn add --dev nuxt-puglint-module # or npm install --save-dev nuxt-puglint-module
  1. Add nuxt-puglint-module to the buildModules section of nuxt.config.js

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

export default {
  buildModules: [
    'nuxt-puglint-module'
  ]
}

Configuration

Add .puglintrc.js file to your project root

module.exports = {
  disallowClassAttributeWithStaticValue: true,
  disallowClassLiteralsBeforeIdLiterals: true,
  disallowDuplicateAttributes: true,
  disallowHtmlText: true,
  disallowIdAttributeWithStaticValue: true,
  disallowMultipleLineBreaks: true,
  disallowSpacesInsideAttributeBrackets: true,
  requireClassLiteralsBeforeAttributes: true,
  requireIdLiteralsBeforeAttributes: true,
  requireLowerCaseAttributes: true,
  requireLowerCaseTags: true,
  requireSpaceAfterCodeOperator: true,
  requireStrictEqualityOperators: true,
  validateDivTags: true,
  validateIndentation: 2,
  validateAttributeQuoteMarks: '"',
  validateAttributeSeparator: { separator: ', ', multiLineSeparator: ',\n  ' }
}

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-puglint-module

Weekly Downloads

5

Version

0.0.2

License

none

Unpacked Size

2.11 kB

Total Files

3

Last publish

Collaborators

  • storyn26383