Skip to content

zestia/template-lint-config

Repository files navigation

@zestia/template-lint-config

This package provides linting rules for HTML templates.

The rules are based on community standards, with a few extra ones specific to Zestia.

Installation

npm install --save-dev @zestia/template-lint-config

Add the following to ~/.npmrc to pull @zestia scoped packages from Github instead of NPM.

@zestia:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=<YOUR_GH_TOKEN>

Setup

  1. Create the following file .template-lintrc.js

    module.exports = {
      plugins: ['@zestia/template-lint-config'],
      extends: 'zestia:recommended'
    };
  2. Add the following to scripts in package.json

    "lint:hbs": "ember-template-lint ."
    

Running

npm run lint:hbs

Related repos

About

Template-Lint config used across projects

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •