eslint-plugin-ember-template-lint 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,6 +53,14 @@ async function _applyFixes(options, results, columnOffset) {
53
53
  fileConfig,
54
54
  });
55
55
 
56
+ if (ruleName === 'prettier') {
57
+ const getPrettierOptions = rule.getPrettierOptions;
58
+ rule.getPrettierOptions = function () {
59
+ const options = getPrettierOptions.call(this);
60
+ return Object.assign(options, fileConfig.rules[ruleName]?.config || {});
61
+ };
62
+ }
63
+
56
64
  let visitor = await rule.getVisitor();
57
65
  let { code } = transform(templateInfo.template, () => visitor);
58
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-ember-template-lint",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Provide linting for ember template",
5
5
  "keywords": [
6
6
  "eslint",