eslint-plugin-ember-template-lint 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ const templateLintConfig = {
4
4
  };
5
5
 
6
6
  function registerRule(name, config) {
7
- templateLintConfig.rules[name] = config;
7
+ templateLintConfig.rules[name] = Array.isArray(config) ? config[0] : config;
8
8
  }
9
9
 
10
10
  function registerPlugin(name) {
package/lib/rules/lint.js CHANGED
@@ -41,7 +41,7 @@ function runTemplateLint(node, context) {
41
41
  character: end.character
42
42
  })
43
43
  ];
44
- fix.range = fix.range.map(x => offset + x);
44
+ fix.range = fix.range.map(x => offset + x - columnOffset);
45
45
  });
46
46
  }
47
47
  m.range = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-ember-template-lint",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Provide linting for ember template",
5
5
  "keywords": [
6
6
  "eslint",