Skip to content

Commit d18f43f

Browse files
committed
Update README following recommended set addition
1 parent 6f393a2 commit d18f43f

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ yarn add -D prettier ember-template-lint-plugin-prettier
2424

2525
As peerDependencies, `prettier` and `ember-template-lint` will have to be installed in your project. Prettier version local to the project will be used (not any global one!).
2626

27-
Also, this plugin doesn't come with a recommended set of rules (that you often provide in the `extends` config key). At least for today! You'll have to enable them manually (see "Recommended configuration").
28-
2927
## Recommended configuration
3028

3129
A recommended configuration is available. To use it, merge the following object
3230
to your `.templatelintrc.js` file:
31+
3332
```
3433
module.exports = {
3534
plugins: ["ember-template-lint-plugin-prettier"],
@@ -39,22 +38,7 @@ module.exports = {
3938
};
4039
```
4140

42-
The recommended set will apply the following rules:
43-
```
44-
module.exports = {
45-
rules: {
46-
prettier: true, // turn this plugin's rule on
47-
48-
// if you use ember-template-lint's recommended set of rules
49-
// the following stylistic rules need to be disabled
50-
// to let Prettier handle formatting
51-
"block-indentation": false,
52-
"linebreak-style": false,
53-
quotes: false,
54-
"self-closing-void-elements": false
55-
},
56-
};
57-
```
41+
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).
5842

5943
## Warnings
6044

0 commit comments

Comments
 (0)