Skip to content

Commit d857eee

Browse files
authored
Update README.md
1 parent b8a282c commit d857eee

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,6 @@ module.exports = {
3737

3838
The recommended set will apply [these rules](https://github.com/ember-template-lint/ember-template-lint-plugin-prettier/blob/v1.1.0-beta.0/lib/config/recommended.js).
3939

40-
## Warnings
41-
42-
#### General
43-
44-
Handlebars support is still experimental in Prettier! So, between Prettier upgrades, you'll probably find out that your code is formatted in a slightly different way. Also, a few bug fixes are in progress. You can follow the work in progress [here](https://github.com/jgwhite/prettier/issues/1).
45-
46-
#### Special warning: bare strings in templates
47-
48-
Are you using bare strings in your templates? If you're unsure, you can lint your templates against [this rule](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-bare-strings.md).
49-
50-
If you do so, you implicitly rely on your templates whitespaces. As such, you most probably want to wait before using this package. Indeed, whitespaces / newlines handling is still not 100% settled in Prettier.
51-
5240
## Tips
5341

5442
You may want to define these two scripts in your package.json:
@@ -57,19 +45,13 @@ You may want to define these two scripts in your package.json:
5745
{
5846
"scripts": {
5947
"lint:hbs": "ember-template-lint .",
60-
"format:hbs": "prettier **/*.hbs --write --parser=glimmer"
48+
"format:hbs": "prettier **/*.hbs --write"
6149
}
6250
}
6351
```
6452

6553
`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.
6654

67-
## Examples
68-
69-
[Here is an early example](https://github.com/dcyriller/client/pull/1) of usage in [emberobserver](https://emberobserver.com/) source code. As you can see, it's illustrating the whitespaces / newlines issue with bare strings.
70-
71-
[Here is another early example](https://github.com/dcyriller/ember-osf-web/pull/1) of usage in [ember-osf-web](https://github.com/CenterForOpenScience/ember-osf-web).
72-
7355
## Credits
7456

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

0 commit comments

Comments
 (0)