@almadar/eslint-plugin 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Behaviors (.orb files in behaviors/) must only use atom and molecule patterns.
|
|
7
7
|
* Organisms and templates are forbidden, with exceptions for:
|
|
8
|
-
* - Game-related patterns (category "game" in component-mapping.json)
|
|
9
8
|
* - form / form-section (explicitly allowed by convention)
|
|
10
9
|
*
|
|
10
|
+
* All game components (canvas renderers, HUDs, menus, logs, panels) have been
|
|
11
|
+
* moved to molecule level. No game exception is needed.
|
|
12
|
+
*
|
|
11
13
|
* Requires: jsonc-eslint-parser configured for *.orb files.
|
|
12
14
|
*
|
|
13
15
|
* To regenerate BLOCKED_PATTERNS from component-mapping.json:
|
|
@@ -16,15 +18,13 @@
|
|
|
16
18
|
* const blocked = Object.entries(m)
|
|
17
19
|
* .filter(([k, v]) =>
|
|
18
20
|
* (v.importPath.includes('/organisms/') || v.importPath.includes('/templates/'))
|
|
19
|
-
* && v.category !== 'game'
|
|
20
21
|
* && !['form', 'form-section'].includes(k))
|
|
21
22
|
* .map(([k]) => k);
|
|
22
23
|
* console.log(JSON.stringify(blocked, null, 2));
|
|
23
24
|
* "
|
|
24
25
|
*/
|
|
25
26
|
|
|
26
|
-
// Organism patterns: importPath contains /organisms
|
|
27
|
-
// Template patterns: importPath contains /templates/, not game-related
|
|
27
|
+
// Organism patterns: importPath contains /organisms/ or /templates/
|
|
28
28
|
// Excludes: form, form-section (allowed by convention)
|
|
29
29
|
const BLOCKED_PATTERNS = new Set([
|
|
30
30
|
// ── Organisms (non-game, non-form) ────────────────────────────────
|
|
@@ -115,7 +115,7 @@ module.exports = {
|
|
|
115
115
|
docs: {
|
|
116
116
|
description:
|
|
117
117
|
"Behavior schemas must only use atom and molecule patterns. " +
|
|
118
|
-
"Organisms and templates (except
|
|
118
|
+
"Organisms and templates (except canvas game organisms and form-section) are forbidden.",
|
|
119
119
|
category: "Almadar Architecture",
|
|
120
120
|
},
|
|
121
121
|
messages: {
|