https://github.com/zestia/template-lint-config
Template-Lint config used across projects
https://github.com/zestia/template-lint-config
Last synced: 5 months ago
JSON representation
Template-Lint config used across projects
- Host: GitHub
- URL: https://github.com/zestia/template-lint-config
- Owner: zestia
- Created: 2018-01-16T17:45:32.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2025-07-03T11:50:11.000Z (12 months ago)
- Last Synced: 2025-08-09T00:45:41.176Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.24 MB
- Stars: 0
- Watchers: 16
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# @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=
```
## Setup
1. Create the following file `.template-lintrc.js`
```javascript
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
- https://github.com/zestia/template-lint-config
- https://github.com/zestia/stylelint-config
- https://github.com/zestia/eslint-config
- https://github.com/zestia/prettier-config