diff --git a/rules/enforce-store-naming-convention/prefix/enforce-store-naming-convention-prefix.test.js b/rules/enforce-store-naming-convention/prefix/enforce-store-naming-convention-prefix.test.js index cc0aeec..0785962 100644 --- a/rules/enforce-store-naming-convention/prefix/enforce-store-naming-convention-prefix.test.js +++ b/rules/enforce-store-naming-convention/prefix/enforce-store-naming-convention-prefix.test.js @@ -27,6 +27,7 @@ ruleTester.run("effector/enforce-store-naming-convention-prefix.test", rule, { "correct-store-naming-with-handlers.js", "correct-store-naming-in-domain-with-handlers.js", "correct-factory.js", + "correct-store-array-return-and-combine.js", ] .map(readExampleForTheRule) .map((code) => ({ code })), diff --git a/rules/enforce-store-naming-convention/prefix/examples/correct-store-array-return-and-combine.js b/rules/enforce-store-naming-convention/prefix/examples/correct-store-array-return-and-combine.js new file mode 100644 index 0000000..f43790c --- /dev/null +++ b/rules/enforce-store-naming-convention/prefix/examples/correct-store-array-return-and-combine.js @@ -0,0 +1,11 @@ +import { combine, createStore } from "effector"; + +const $store = createStore(null); + +function createCustomStore(store) { + return [store]; +} + +const [$justStore] = createCustomStore(combine({ store: $store })); + +export { $justStore };