You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!).
26
26
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
-
29
27
## Recommended configuration
30
28
31
29
A recommended configuration is available. To use it, merge the following object
32
30
to your `.templatelintrc.js` file:
31
+
33
32
```
34
33
module.exports = {
35
34
plugins: ["ember-template-lint-plugin-prettier"],
@@ -39,22 +38,7 @@ module.exports = {
39
38
};
40
39
```
41
40
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).
0 commit comments