eslint-plugin-ember-template-lint 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/rules/lint.js CHANGED
@@ -11,7 +11,7 @@ function runTemplateLint(node, context) {
11
11
  const filename = context.getPhysicalFilename();
12
12
  let text = node.contents;
13
13
  const initialLine = sourceCodeText.split('\n')[node.loc.start.line-1];
14
- const columnOffset = initialLine.match(/\s+/)?.[0].length || 0;
14
+ const columnOffset = initialLine.match(/^\s+/)?.[0].length || 0;
15
15
  const offset = (node.range[0] || 0);
16
16
  const spaces = ' '.repeat(columnOffset);
17
17
  const originalDocument = new DocumentLines(spaces + text);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-ember-template-lint",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Provide linting for ember template",
5
5
  "keywords": [
6
6
  "eslint",