tslint-plugin-hbs

Runs hbs-template-lint as a TSLint rule and reports errors.

Usage no npm install needed!

<script type="module">
  import tslintPluginHbs from 'https://cdn.skypack.dev/tslint-plugin-hbs';
</script>

README

tslint-plugin-hbs

Runs ember-template-lint as a TSLint rule and reports errors.

NOTE: This project uses official reporter from [eslint-plugin-hbs]

Changelog

Sample

Install

# using npm
npm install --save-dev tslint-plugin-hbs ember-template-lint

# using yarn
yarn add --dev tslint-plugin-hbs ember-template-lint

Usage

(tslint.json)

for tslint@5.2.0+

{
  "extends": ["tslint-plugin-hbs"],
  "rules": {
    "check-hbs-template-literals": [true,
      { "ConfigFile": "./.eslint-template-lintrc.json" }
    ],
  }
}

for tslint@5.2.0+

{
  "rulesDirectory": ["tslint-plugin-hbs"],
  "rules": {
    "check-hbs-template-literals": [true,
      { "ConfigFile": "./.eslint-template-lintrc.json" }
    ],
  }
}

Related

License

MIT © psbanka