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

Sign up to get free protection for your applications and to get access to all the features.
@@ -118,6 +118,16 @@ runAsWorker(async (filename, text, options, columnOffset=0) => {
118
118
  const lint = new Lint.default(options);
119
119
  process.env.emberTemplateLintFileName = filename;
120
120
  process.env.emberTemplateLintFixMode = false;
121
+ await lint.loadConfig();
122
+ let fileConfig = lint._moduleStatusCache.getConfigForFile(options);
123
+ if (fileConfig.loadedRules['prettier']) {
124
+ const rule = fileConfig.loadedRules['prettier'].prototype;
125
+ const getPrettierOptions = rule.getPrettierOptions;
126
+ rule.getPrettierOptions = function () {
127
+ const options = getPrettierOptions.call(this);
128
+ return Object.assign(options, fileConfig.rules.prettier?.config || {});
129
+ };
130
+ }
121
131
 
122
132
  const messages = await lint.verify({
123
133
  source: text,
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.15.0",
4
4
  "description": "Provide linting for ember template",
5
5
  "keywords": [
6
6
  "eslint",