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.
Common errors
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
Warnings
gotcha Config extends must reference 'emarsys' without the full package name ↓
fix Use 'extends': 'emarsys' (not 'pug-lint-config-emarsys')
Install
npm install pug-lint-config-emarsys yarn add pug-lint-config-emarsys pnpm add pug-lint-config-emarsys Imports
- config wrong
require('pug-lint-config-emarsys')correctextends: ['emarsys']
Quickstart
// Install peer dependencies
npm install -D gulp-pug-lint pug-lint-config-emarsys
// Create .pug-lintrc with content:
{
"extends": "emarsys",
"disallowMultipleLineBreaks": true
}