RubyGems
npm
Organizations
Log in
Sign up
npm
eslint-plugin-ember-template-lint
Versions diffs
0.9.0 → 0.10.0
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.
Files changed (3)
hide
show
package/lib/ember-teplate-lint/config.js
+1
-1
package/lib/rules/lint.js
+1
-1
package/package.json
+1
-1
package/lib/ember-teplate-lint/config.js
CHANGED
Viewed
@@ -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
Viewed
@@ -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
Viewed
@@ -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",