Skip to content

Commit

Permalink
remove outdated tip in readme
Browse files Browse the repository at this point in the history
Ember CLI blueprint contain `lint:hbs` and `lint:hbs:fix` scripts since 3.24.

Fix can be applied via `ember-template-lint . --fix` rather than running prettier separately.
  • Loading branch information
jelhan authored Nov 5, 2023
1 parent 859c8d3 commit cc923c9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,6 @@ The recommended set will apply [these rules](https://github.com/ember-template-l

Prettier can be configured via [standard prettier config files](https://prettier.io/docs/en/configuration.html).

## Tips

You may want to define these two scripts in your package.json:

```json
{
"scripts": {
"lint:hbs": "ember-template-lint .",
"format:hbs": "prettier **/*.hbs --write"
}
}
```

`yarn lint:hbs` is useful in CI. `yarn format:hbs` will let you format your templates if your editor does not have this feature yet.

## Credits

This plugin has been inspired by [the prettier plugin](https://github.com/prettier/eslint-plugin-prettier) for Eslint.
Expand Down

0 comments on commit cc923c9

Please sign in to comment.