.oxlintrc.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "$schema": "https://raw.githubusercontent.com/nicolo-ribaudo/oxc-project.github.io/refs/heads/json-schema/src/public/.oxlintrc.schema.json",
  3. "categories": {
  4. "suspicious": "warn"
  5. },
  6. "rules": {
  7. // Effect uses `function*` with Effect.gen/Effect.fnUntraced that don't always yield
  8. "require-yield": "off",
  9. // SolidJS uses `let ref: T | undefined` for JSX ref bindings assigned at runtime
  10. "no-unassigned-vars": "off",
  11. // SolidJS tracks reactive deps by reading properties inside createEffect
  12. "no-unused-expressions": "off",
  13. // Intentional control char matching (ANSI escapes, null byte sanitization)
  14. "no-control-regex": "off",
  15. // SST and plugin tools require triple-slash references
  16. "triple-slash-reference": "off",
  17. // Suspicious category: suppress noisy rules
  18. // Effect's nested function* closures inherently shadow outer scope
  19. "no-shadow": "off",
  20. // Namespace-heavy codebase makes this too noisy
  21. "unicorn/consistent-function-scoping": "off",
  22. // Opinionated — .sort()/.reverse() mutation is fine in this codebase
  23. "unicorn/no-array-sort": "off",
  24. "unicorn/no-array-reverse": "off",
  25. // Not relevant — this isn't a DOM event handler codebase
  26. "unicorn/prefer-add-event-listener": "off",
  27. // Bundler handles module resolution
  28. "unicorn/require-module-specifiers": "off",
  29. // postMessage target origin not relevant for this codebase
  30. "unicorn/require-post-message-target-origin": "off",
  31. // Side-effectful constructors are intentional in some places
  32. "no-new": "off"
  33. },
  34. "ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts"]
  35. }