@koshikishi/pug-lint-config

2.0.1 • Public • Published

@koshikishi/pug-lint-config

NPM Version GitHub License Check Workflow Status

The pug-lint shareable config designed for my personal projects.

Use it as is or as a foundation for your own configuration file.

Installation

Install the package and pug-lint in your project:

npm i -D pug-lint @koshikishi/pug-lint-config

Usage

Set your pug-lint config to:

{
  "extends": "@koshikishi/pug-lint-config"
}

Extending the config

You can specify additional rules and override or turn off already set ones.

For example, to change the validateIndentation rule to specify a different indentation, turn off the requireStrictEqualityOperators rule and add the validateDivTags rule:

{
  "extends": "@koshikishi/pug-lint-config",
  "requireStrictEqualityOperators": null,
  "validateDivTags": true,
  "validateIndentation": 4
}

Integration with VS Code

  1. Install the pug-lint extension for VS Code.
  2. Enable the linter in VS Code settings.
  3. Install pug-lint and this config in your project following the Installation section.
  4. Add a pug-lint configuration file (.pug-lintrc.*) and extend it with this shareable config following the Usage section.

Useful links

Readme

Keywords

Package Sidebar

Install

npm i @koshikishi/pug-lint-config

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

5.25 kB

Total Files

4

Last publish

Collaborators

  • koshikishi