Emarsys PugLint Config

raw JSON →
2.0.1 verified Fri May 01 auth: no javascript maintenance

Shareable PugLint configuration for Emarsys projects. Current stable version is 2.0.1, with no recent updates. This config provides a baseline set of linting rules for Pug templates, intended to enforce consistent code style across Emarsys teams. It is typically installed alongside gulp-pug-lint and extended via a .pug-lintrc file using the 'extends' directive.

error Cannot find module 'pug-lint-config-emarsys'
cause The package is not installed correctly or peer dependency is missing
fix
Run npm install -D gulp-pug-lint pug-lint-config-emarsys
gotcha Config extends must reference 'emarsys' without the full package name
fix Use 'extends': 'emarsys' (not 'pug-lint-config-emarsys')
npm install pug-lint-config-emarsys
yarn add pug-lint-config-emarsys
pnpm add pug-lint-config-emarsys

Installs pug-lint-config-emarsys and shows minimal .pug-lintrc configuration.

// Install peer dependencies
npm install -D gulp-pug-lint pug-lint-config-emarsys

// Create .pug-lintrc with content:
{
  "extends": "emarsys",
  "disallowMultipleLineBreaks": true
}