Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Dec 12, 2023
1 parent d9e714b commit ceccbe0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/rules/use-ember-data-rfc-395-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ module.exports = {
return;
}

if (node.source.value === 'ember-data' || (node.source.value.startsWith('ember-data/') && !node.source.value.startsWith('ember-data/types/registries/'))) {
if (
node.source.value === 'ember-data' ||
(node.source.value.startsWith('ember-data/') &&
!node.source.value.startsWith('ember-data/types/registries/'))
) {
context.report({ node, message });
}
},
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/use-ember-data-rfc-395-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ruleTester.run('use-ember-data-rfc-395-imports', rule, {
"import AdapterRegistry from 'ember-data/types/registries/adapter';",
"import ModelRegistry from 'ember-data/types/registries/model';",
"import SerializerRegistry from 'ember-data/types/registries/serializer';",
"import TransformRegistry from 'ember-data/types/registries/transform';"
"import TransformRegistry from 'ember-data/types/registries/transform';",
],

invalid: [
Expand Down

0 comments on commit ceccbe0

Please sign in to comment.