Skip to content

Commit bb13c57

Browse files
author
Robert Jackson
committed
yarn eslint . --fix
1 parent ba52e2c commit bb13c57

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

transforms/helpers/parse-helper.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ function replaceEmberObjectExpressions(j, root, filePath, options = {}) {
259259

260260
if (options.type && !isFileOfType(filePath, options.type)) {
261261
logger.warn(
262-
`[${filePath}]: FAILURE Type mismatch, expected type '${
263-
options.type
264-
}' did not match type of file`
262+
`[${filePath}]: FAILURE Type mismatch, expected type '${options.type}' did not match type of file`
265263
);
266264
return;
267265
}

transforms/helpers/validation-helper.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ function hasValidProps(
6565
!["actions", "queryParams"].includes(instanceProp.name)
6666
) {
6767
errors.push(
68-
`[${
69-
instanceProp.name
70-
}]: Transform not supported - value is of type object. For more details: eslint-plugin-ember/avoid-leaking-state-in-ember-objects`
68+
`[${instanceProp.name}]: Transform not supported - value is of type object. For more details: eslint-plugin-ember/avoid-leaking-state-in-ember-objects`
7169
);
7270
}
7371

@@ -83,27 +81,19 @@ function hasValidProps(
8381
(instanceProp.isCallExpression && !instanceProp.hasDecorators)
8482
) {
8583
errors.push(
86-
`[${
87-
instanceProp.name
88-
}]: Transform not supported - need option '--decorators=true' or the property type ${
89-
instanceProp.type
90-
} can not be transformed`
84+
`[${instanceProp.name}]: Transform not supported - need option '--decorators=true' or the property type ${instanceProp.type} can not be transformed`
9185
);
9286
}
9387

9488
if (instanceProp.hasModifierWithArgs) {
9589
errors.push(
96-
`[${
97-
instanceProp.name
98-
}]: Transform not supported - value has modifiers like 'property' or 'meta'`
90+
`[${instanceProp.name}]: Transform not supported - value has modifiers like 'property' or 'meta'`
9991
);
10092
}
10193

10294
if (instanceProp.hasVolatile && instanceProp.hasMetaDecorator) {
10395
errors.push(
104-
`[${
105-
instanceProp.name
106-
}]: Transform not supported - value has 'volatile' modifier with computed meta ('@ember/object/computed') is not supported`
96+
`[${instanceProp.name}]: Transform not supported - value has 'volatile' modifier with computed meta ('@ember/object/computed') is not supported`
10797
);
10898
}
10999
return errors;

0 commit comments

Comments
 (0)