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.
- package/lib/rules/hbs-worker.js +8 -0
- package/package.json +1 -1
package/lib/rules/hbs-worker.js
CHANGED
@@ -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
|
|