From ceccbe0c8b45fcedb3cfbdc8ae51781eb91c0609 Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:57:45 -0500 Subject: [PATCH] fix lint --- lib/rules/use-ember-data-rfc-395-imports.js | 6 +++++- tests/lib/rules/use-ember-data-rfc-395-imports.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/rules/use-ember-data-rfc-395-imports.js b/lib/rules/use-ember-data-rfc-395-imports.js index a0ab9c56e9..a011b285b3 100644 --- a/lib/rules/use-ember-data-rfc-395-imports.js +++ b/lib/rules/use-ember-data-rfc-395-imports.js @@ -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 }); } }, diff --git a/tests/lib/rules/use-ember-data-rfc-395-imports.js b/tests/lib/rules/use-ember-data-rfc-395-imports.js index 229a73a39b..a0208aeae3 100644 --- a/tests/lib/rules/use-ember-data-rfc-395-imports.js +++ b/tests/lib/rules/use-ember-data-rfc-395-imports.js @@ -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: [