@simtlix/simfinity-js 2.4.4 → 2.5.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.
Files changed (27) hide show
  1. package/.claude/worktrees/agitated-kepler/.claude/settings.local.json +23 -0
  2. package/.claude/worktrees/agitated-kepler/AGGREGATION_CHANGES_SUMMARY.md +235 -0
  3. package/.claude/worktrees/agitated-kepler/AGGREGATION_EXAMPLE.md +567 -0
  4. package/.claude/worktrees/agitated-kepler/LICENSE +201 -0
  5. package/.claude/worktrees/agitated-kepler/README.md +3941 -0
  6. package/.claude/worktrees/agitated-kepler/eslint.config.mjs +71 -0
  7. package/.claude/worktrees/agitated-kepler/package-lock.json +4740 -0
  8. package/.claude/worktrees/agitated-kepler/package.json +41 -0
  9. package/.claude/worktrees/agitated-kepler/src/auth/errors.js +44 -0
  10. package/.claude/worktrees/agitated-kepler/src/auth/expressions.js +273 -0
  11. package/.claude/worktrees/agitated-kepler/src/auth/index.js +391 -0
  12. package/.claude/worktrees/agitated-kepler/src/auth/rules.js +274 -0
  13. package/.claude/worktrees/agitated-kepler/src/const/QLOperator.js +39 -0
  14. package/.claude/worktrees/agitated-kepler/src/const/QLSort.js +28 -0
  15. package/.claude/worktrees/agitated-kepler/src/const/QLValue.js +39 -0
  16. package/.claude/worktrees/agitated-kepler/src/errors/internal-server.error.js +11 -0
  17. package/.claude/worktrees/agitated-kepler/src/errors/simfinity.error.js +15 -0
  18. package/.claude/worktrees/agitated-kepler/src/index.js +2412 -0
  19. package/.claude/worktrees/agitated-kepler/src/plugins.js +53 -0
  20. package/.claude/worktrees/agitated-kepler/src/scalars.js +188 -0
  21. package/.claude/worktrees/agitated-kepler/src/validators.js +250 -0
  22. package/.claude/worktrees/agitated-kepler/yarn.lock +1154 -0
  23. package/.cursor/rules/simfinity-core-functions.mdc +3 -1
  24. package/README.md +202 -0
  25. package/git-report.js +224 -0
  26. package/package.json +1 -1
  27. package/src/index.js +237 -23
@@ -0,0 +1,71 @@
1
+ import globals from "globals";
2
+ import path from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ import js from "@eslint/js";
5
+ import { FlatCompat } from "@eslint/eslintrc";
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = path.dirname(__filename);
9
+ const compat = new FlatCompat({
10
+ baseDirectory: __dirname,
11
+ recommendedConfig: js.configs.recommended,
12
+ allConfig: js.configs.all
13
+ });
14
+
15
+ export default [
16
+ {
17
+ ignores: ["node_modules/*", "data/*", "eslint.config.mjs"],
18
+ },
19
+ js.configs.recommended,
20
+ {
21
+ files: ["**/*.js"],
22
+ languageOptions: {
23
+ globals: {
24
+ ...globals.node,
25
+ ...globals.es2024,
26
+ },
27
+ ecmaVersion: 2024,
28
+ sourceType: "module",
29
+ },
30
+ rules: {
31
+ // Code style and best practices (relaxed to match existing code)
32
+ "quotes": ["error", "single"],
33
+ "semi": ["error", "always"],
34
+ "comma-dangle": ["error", "always-multiline"],
35
+ "object-curly-spacing": ["error", "always"],
36
+ "array-bracket-spacing": ["error", "never"],
37
+
38
+ // ES6+ features
39
+ "prefer-const": "error",
40
+ "no-var": "error",
41
+ "prefer-arrow-callback": "off", // Allow function declarations
42
+ "arrow-spacing": "error",
43
+
44
+ // Best practices
45
+ "no-console": "off", // Allow console for this project
46
+ "no-underscore-dangle": "off", // Allow underscore dangle for MongoDB _id
47
+ "no-await-in-loop": "off",
48
+ "max-len": "off", // Disable max-len for now
49
+ "indent": "off", // Disable indent for now to match existing style
50
+
51
+ // Parameter reassignment (common in GraphQL resolvers)
52
+ "no-param-reassign": ["error", { "props": false }],
53
+
54
+ // Function formatting
55
+ "function-paren-newline": "off",
56
+ "function-call-argument-newline": "off",
57
+
58
+ // Restricted syntax
59
+ "no-restricted-syntax": ["error", {
60
+ selector: "ForInStatement",
61
+ message: "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.",
62
+ }, {
63
+ selector: "LabeledStatement",
64
+ message: "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",
65
+ }, {
66
+ selector: "WithStatement",
67
+ message: "`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
68
+ }],
69
+ },
70
+ },
71
+ ];