@glissade/eslint-plugin 0.7.0-pre.0 → 0.7.0
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/dist/index.d.ts +5 -7
- package/dist/index.js +19 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,15 +7,13 @@ declare const rules: {
|
|
|
7
7
|
'no-unseeded-random': Rule.RuleModule;
|
|
8
8
|
'no-async-in-evaluate': Rule.RuleModule;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
interface Plugin {
|
|
11
11
|
meta: {
|
|
12
12
|
name: string;
|
|
13
13
|
};
|
|
14
|
-
rules:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
};
|
|
14
|
+
rules: typeof rules;
|
|
15
|
+
configs: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
declare const plugin: Plugin;
|
|
20
18
|
//#endregion
|
|
21
19
|
export { plugin as default, rules };
|
package/dist/index.js
CHANGED
|
@@ -106,9 +106,27 @@ const rules = {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
+
const allRules = {
|
|
110
|
+
"gas/no-wall-clock": "error",
|
|
111
|
+
"gas/no-unseeded-random": "error",
|
|
112
|
+
"gas/no-async-in-evaluate": "error"
|
|
113
|
+
};
|
|
109
114
|
const plugin = {
|
|
110
115
|
meta: { name: "@glissade/eslint-plugin" },
|
|
111
|
-
rules
|
|
116
|
+
rules,
|
|
117
|
+
configs: {}
|
|
112
118
|
};
|
|
119
|
+
plugin.configs["recommended"] = [{
|
|
120
|
+
name: "glissade/recommended",
|
|
121
|
+
ignores: [
|
|
122
|
+
"**/*.test.ts",
|
|
123
|
+
"**/*.test.tsx",
|
|
124
|
+
"**/*.spec.ts",
|
|
125
|
+
"**/test/**",
|
|
126
|
+
"**/tests/**"
|
|
127
|
+
],
|
|
128
|
+
plugins: { gas: plugin },
|
|
129
|
+
rules: allRules
|
|
130
|
+
}];
|
|
113
131
|
//#endregion
|
|
114
132
|
export { plugin as default, rules };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/eslint-plugin",
|
|
3
|
-
"version": "0.7.0
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "ESLint rules enforcing glissade's determinism contract in scene code: no wall-clock reads, no unseeded Math.random, no async in the evaluate() path.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|