diff options
| author | Nicolas Paul <n@nc0.fr> | 2024-03-07 19:18:09 +0100 |
|---|---|---|
| committer | Nicolas Paul <n@nc0.fr> | 2024-03-08 23:12:55 +0100 |
| commit | a03adb2b24c2a3b69fbb6c1ab31056e8780d6fa8 (patch) | |
| tree | 72f15111e1051205b7219b48edc19afb646ff9fd | |
| parent | a58e2e1b2792388f4f58f354918207c18ef43d95 (diff) | |
Remove cyclic dependecy import
The rule.js file was imported the Cell type from index.js instead of
cell.js, creating a cyclic import graph as index.js itself imports the
rule.js file. While not illegal in the Node.js ecosystem, it is still
an issue that could crash some static analysis tools, and a bad pattern
to avoid in general.
Signed-off-by: Nicolas Paul <n@nc0.fr>
| -rw-r--r-- | life2/game/rule.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/life2/game/rule.js b/life2/game/rule.js index 19e32f4..e4ed3ef 100644 --- a/life2/game/rule.js +++ b/life2/game/rule.js @@ -26,7 +26,7 @@ * @package life2 */ -import {Cell} from './index'; +import {Cell} from './cell'; /** * The mathematical function bodies that is applied to a cell. |
