@rc312/oxlint-rules 0.0.0-stage → 0.1.1

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 (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +43 -2
  3. package/dist/anti-slop/effect/index.d.ts +3 -0
  4. package/dist/anti-slop/effect/index.js +18 -0
  5. package/dist/anti-slop/effect/rules/no-manual-effect-error-tag.d.ts +1 -0
  6. package/dist/anti-slop/effect/rules/no-manual-effect-error-tag.js +39 -0
  7. package/dist/anti-slop/effect/rules/no-manual-tag-comparison.d.ts +1 -0
  8. package/dist/anti-slop/effect/rules/no-manual-tag-comparison.js +32 -0
  9. package/dist/anti-slop/effect/rules/no-manual-tagged-construction.d.ts +1 -0
  10. package/dist/anti-slop/effect/rules/no-manual-tagged-construction.js +27 -0
  11. package/dist/anti-slop/effect/rules/no-service-constructor-imports.d.ts +2 -0
  12. package/dist/anti-slop/effect/rules/no-service-constructor-imports.js +44 -0
  13. package/dist/anti-slop/effect/rules/prefer-effect-match.d.ts +1 -0
  14. package/dist/anti-slop/effect/rules/prefer-effect-match.js +48 -0
  15. package/dist/anti-slop/effect/shared/tagged-values.d.ts +8 -0
  16. package/dist/anti-slop/effect/shared/tagged-values.js +68 -0
  17. package/dist/anti-slop/index.d.ts +3 -0
  18. package/dist/anti-slop/index.js +44 -0
  19. package/dist/anti-slop/rules/no-array-filter-map.d.ts +2 -0
  20. package/dist/anti-slop/rules/no-array-filter-map.js +30 -0
  21. package/dist/anti-slop/rules/no-chained-type-assertions.d.ts +2 -0
  22. package/dist/anti-slop/rules/no-chained-type-assertions.js +60 -0
  23. package/dist/anti-slop/rules/no-conditional-empty-object-spread.d.ts +2 -0
  24. package/dist/anti-slop/rules/no-conditional-empty-object-spread.js +40 -0
  25. package/dist/anti-slop/rules/no-known-value-widening.d.ts +2 -0
  26. package/dist/anti-slop/rules/no-known-value-widening.js +300 -0
  27. package/dist/anti-slop/rules/no-module-mocking.d.ts +2 -0
  28. package/dist/anti-slop/rules/no-module-mocking.js +69 -0
  29. package/dist/anti-slop/rules/no-object-parameters.d.ts +2 -0
  30. package/dist/anti-slop/rules/no-object-parameters.js +56 -0
  31. package/dist/anti-slop/rules/no-reduce-accumulator-copy.d.ts +2 -0
  32. package/dist/anti-slop/rules/no-reduce-accumulator-copy.js +99 -0
  33. package/dist/anti-slop/rules/no-reflect-apply.d.ts +2 -0
  34. package/dist/anti-slop/rules/no-reflect-apply.js +25 -0
  35. package/dist/anti-slop/rules/no-reflect-get.d.ts +2 -0
  36. package/dist/anti-slop/rules/no-reflect-get.js +25 -0
  37. package/dist/anti-slop/rules/no-runtime-typeof.d.ts +2 -0
  38. package/dist/anti-slop/rules/no-runtime-typeof.js +64 -0
  39. package/dist/anti-slop/rules/no-shape-in-symbol-names.d.ts +2 -0
  40. package/dist/anti-slop/rules/no-shape-in-symbol-names.js +40 -0
  41. package/dist/anti-slop/rules/no-unknown-parameters.d.ts +2 -0
  42. package/dist/anti-slop/rules/no-unknown-parameters.js +51 -0
  43. package/dist/anti-slop/rules/no-unknown-returns.d.ts +2 -0
  44. package/dist/anti-slop/rules/no-unknown-returns.js +58 -0
  45. package/dist/anti-slop/rules/no-unknown-type-aliases.d.ts +2 -0
  46. package/dist/anti-slop/rules/no-unknown-type-aliases.js +40 -0
  47. package/dist/anti-slop/rules/no-unsafe-dictionary-type.d.ts +2 -0
  48. package/dist/anti-slop/rules/no-unsafe-dictionary-type.js +134 -0
  49. package/dist/anti-slop/rules/no-widen-then-assert.d.ts +2 -0
  50. package/dist/anti-slop/rules/no-widen-then-assert.js +270 -0
  51. package/dist/anti-slop/rules/require-readable-spacing.d.ts +3 -0
  52. package/dist/anti-slop/rules/require-readable-spacing.js +65 -0
  53. package/dist/anti-slop/rules/require-safety-comment-for-type-assertion.d.ts +2 -0
  54. package/dist/anti-slop/rules/require-safety-comment-for-type-assertion.js +100 -0
  55. package/dist/anti-slop/shared/array-method.d.ts +12 -0
  56. package/dist/anti-slop/shared/array-method.js +84 -0
  57. package/dist/anti-slop/shared/dictionary-types.d.ts +20 -0
  58. package/dist/anti-slop/shared/dictionary-types.js +377 -0
  59. package/dist/anti-slop/shared/function-parameters.d.ts +8 -0
  60. package/dist/anti-slop/shared/function-parameters.js +40 -0
  61. package/dist/anti-slop/shared/lexical-type-parameters.d.ts +5 -0
  62. package/dist/anti-slop/shared/lexical-type-parameters.js +47 -0
  63. package/dist/anti-slop/shared/reflect-method.d.ts +3 -0
  64. package/dist/anti-slop/shared/reflect-method.js +20 -0
  65. package/dist/anti-slop/shared/scope.d.ts +3 -0
  66. package/dist/anti-slop/shared/scope.js +11 -0
  67. package/dist/anti-slop/shared/type-alias-resolution.d.ts +23 -0
  68. package/dist/anti-slop/shared/type-alias-resolution.js +162 -0
  69. package/dist/anti-slop/vendor/eslint-stylistic/padding-line-ast.d.ts +27 -0
  70. package/dist/anti-slop/vendor/eslint-stylistic/padding-line-ast.js +28 -0
  71. package/dist/anti-slop/vendor/eslint-stylistic/padding-line-between-statements.d.ts +37 -0
  72. package/dist/anti-slop/vendor/eslint-stylistic/padding-line-between-statements.js +703 -0
  73. package/dist/anti-slop/vendor/eslint-stylistic/padding-line-options.d.ts +16 -0
  74. package/dist/anti-slop/vendor/eslint-stylistic/padding-line-options.js +2 -0
  75. package/dist/configs/base.d.ts +28 -0
  76. package/dist/configs/base.js +27 -0
  77. package/dist/configs/effect-starter.d.ts +10 -0
  78. package/dist/configs/effect-starter.js +10 -0
  79. package/dist/configs/effect.d.ts +14 -0
  80. package/dist/configs/effect.js +16 -0
  81. package/dist/effect-starter.d.ts +3 -0
  82. package/dist/effect-starter.js +40 -0
  83. package/package.json +46 -4
  84. package/src/anti-slop/LICENSE +21 -0
  85. package/src/anti-slop/UPSTREAM.md +14 -0
  86. package/src/anti-slop/vendor/eslint-stylistic/LICENSE +22 -0
  87. package/src/anti-slop/vendor/eslint-stylistic/UPSTREAM.md +28 -0
@@ -0,0 +1,16 @@
1
+ export type PaddingType = 'any' | 'never' | 'always';
2
+ export type StatementOption = StatementMatcher | [StatementMatcher, ...StatementMatcher[]];
3
+ export type StatementMatcher = StatementType | SelectorOption;
4
+ export type StatementType = '*' | 'exports' | 'require' | 'directive' | 'iife' | 'block' | 'empty' | 'function' | 'ts-method' | 'break' | 'case' | 'class' | 'continue' | 'debugger' | 'default' | 'do' | 'for' | 'if' | 'import' | 'switch' | 'throw' | 'try' | 'while' | 'with' | 'cjs-export' | 'cjs-import' | 'enum' | 'interface' | 'function-overload' | 'block-like' | 'singleline-block-like' | 'multiline-block-like' | 'expression' | 'singleline-expression' | 'multiline-expression' | 'return' | 'singleline-return' | 'multiline-return' | 'export' | 'singleline-export' | 'multiline-export' | 'var' | 'singleline-var' | 'multiline-var' | 'let' | 'singleline-let' | 'multiline-let' | 'const' | 'singleline-const' | 'multiline-const' | 'using' | 'singleline-using' | 'multiline-using' | 'type' | 'singleline-type' | 'multiline-type';
5
+ export type PaddingLineBetweenStatementsSchema0 = {
6
+ blankLine: PaddingType;
7
+ prev: StatementOption;
8
+ next: StatementOption;
9
+ }[];
10
+ export interface SelectorOption {
11
+ selector: string;
12
+ lineMode?: 'any' | 'singleline' | 'multiline';
13
+ }
14
+ export type PaddingLineBetweenStatementsRuleOptions = PaddingLineBetweenStatementsSchema0;
15
+ export type RuleOptions = PaddingLineBetweenStatementsRuleOptions;
16
+ export type MessageIds = 'unexpectedBlankLine' | 'expectedBlankLine';
@@ -0,0 +1,2 @@
1
+ /* GENERATED, DO NOT EDIT DIRECTLY */
2
+ export {};
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ jsPlugins: {
3
+ name: string;
4
+ specifier: string;
5
+ }[];
6
+ rules: {
7
+ "anti-slop/no-array-filter-map": "error";
8
+ "anti-slop/no-chained-type-assertions": "error";
9
+ "anti-slop/no-conditional-empty-object-spread": "error";
10
+ "anti-slop/no-known-value-widening": "error";
11
+ "anti-slop/no-module-mocking": "error";
12
+ "anti-slop/no-object-parameters": "error";
13
+ "anti-slop/no-reduce-accumulator-copy": "error";
14
+ "anti-slop/no-reflect-apply": "error";
15
+ "anti-slop/no-reflect-get": "error";
16
+ "anti-slop/no-runtime-typeof": "error";
17
+ "anti-slop/no-shape-in-symbol-names": "error";
18
+ "anti-slop/no-unknown-parameters": "error";
19
+ "anti-slop/no-unknown-returns": "error";
20
+ "anti-slop/no-unknown-type-aliases": "error";
21
+ "anti-slop/no-unsafe-dictionary-type": "error";
22
+ "anti-slop/no-widen-then-assert": "error";
23
+ "anti-slop/require-readable-spacing": "error";
24
+ "anti-slop/require-safety-comment-for-type-assertion": "error";
25
+ "oxc/no-accumulating-spread": "error";
26
+ };
27
+ };
28
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { defineConfig } from "oxlint";
2
+ export default defineConfig({
3
+ jsPlugins: [
4
+ { name: "anti-slop", specifier: "@rc312/oxlint-rules/anti-slop" },
5
+ ],
6
+ rules: {
7
+ "anti-slop/no-array-filter-map": "error",
8
+ "anti-slop/no-chained-type-assertions": "error",
9
+ "anti-slop/no-conditional-empty-object-spread": "error",
10
+ "anti-slop/no-known-value-widening": "error",
11
+ "anti-slop/no-module-mocking": "error",
12
+ "anti-slop/no-object-parameters": "error",
13
+ "anti-slop/no-reduce-accumulator-copy": "error",
14
+ "anti-slop/no-reflect-apply": "error",
15
+ "anti-slop/no-reflect-get": "error",
16
+ "anti-slop/no-runtime-typeof": "error",
17
+ "anti-slop/no-shape-in-symbol-names": "error",
18
+ "anti-slop/no-unknown-parameters": "error",
19
+ "anti-slop/no-unknown-returns": "error",
20
+ "anti-slop/no-unknown-type-aliases": "error",
21
+ "anti-slop/no-unsafe-dictionary-type": "error",
22
+ "anti-slop/no-widen-then-assert": "error",
23
+ "anti-slop/require-readable-spacing": "error",
24
+ "anti-slop/require-safety-comment-for-type-assertion": "error",
25
+ "oxc/no-accumulating-spread": "error",
26
+ },
27
+ });
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ jsPlugins: {
3
+ name: string;
4
+ specifier: string;
5
+ }[];
6
+ rules: {
7
+ "effect-starter/no-global-this-or-declare-module": "error";
8
+ };
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from "oxlint";
2
+ export default defineConfig({
3
+ jsPlugins: [
4
+ {
5
+ name: "effect-starter",
6
+ specifier: "@rc312/oxlint-rules/effect-starter",
7
+ },
8
+ ],
9
+ rules: { "effect-starter/no-global-this-or-declare-module": "error" },
10
+ });
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ jsPlugins: {
3
+ name: string;
4
+ specifier: string;
5
+ }[];
6
+ rules: {
7
+ "anti-slop-effect/no-manual-effect-error-tag": "error";
8
+ "anti-slop-effect/no-manual-tag-comparison": "error";
9
+ "anti-slop-effect/no-manual-tagged-construction": "error";
10
+ "anti-slop-effect/no-service-constructor-imports": "error";
11
+ "anti-slop-effect/prefer-effect-match": "error";
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from "oxlint";
2
+ export default defineConfig({
3
+ jsPlugins: [
4
+ {
5
+ name: "anti-slop-effect",
6
+ specifier: "@rc312/oxlint-rules/anti-slop-effect",
7
+ },
8
+ ],
9
+ rules: {
10
+ "anti-slop-effect/no-manual-effect-error-tag": "error",
11
+ "anti-slop-effect/no-manual-tag-comparison": "error",
12
+ "anti-slop-effect/no-manual-tagged-construction": "error",
13
+ "anti-slop-effect/no-service-constructor-imports": "error",
14
+ "anti-slop-effect/prefer-effect-match": "error",
15
+ },
16
+ });
@@ -0,0 +1,3 @@
1
+ export declare const noGlobalThisOrDeclareModuleRule: import("@oxlint/plugins").Rule;
2
+ declare const _default: import("@oxlint/plugins").Plugin;
3
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { definePlugin, defineRule } from "@oxlint/plugins";
2
+ export const noGlobalThisOrDeclareModuleRule = defineRule({
3
+ createOnce(context) {
4
+ return {
5
+ Identifier(node) {
6
+ if (node.name !== "globalThis") {
7
+ return;
8
+ }
9
+ const { sourceCode } = context;
10
+ const unresolved = sourceCode.scopeManager.globalScope?.through;
11
+ if (sourceCode.isGlobalReference(node) ||
12
+ unresolved?.some(({ identifier }) => identifier === node)) {
13
+ context.report({ messageId: "globalThis", node });
14
+ }
15
+ },
16
+ TSModuleDeclaration(node) {
17
+ if (node.kind === "module" &&
18
+ (node.declare || node.id.type === "Literal")) {
19
+ context.report({ messageId: "declareModule", node });
20
+ }
21
+ },
22
+ };
23
+ },
24
+ meta: {
25
+ docs: {
26
+ description: "Disallow references to `globalThis` and TypeScript ambient module declarations.",
27
+ },
28
+ messages: {
29
+ declareModule: "Avoid ambient module declarations. Use typed imports and exports.",
30
+ globalThis: "Avoid `globalThis`. Import or pass in the dependency explicitly.",
31
+ },
32
+ type: "problem",
33
+ },
34
+ });
35
+ export default definePlugin({
36
+ meta: { name: "effect-starter" },
37
+ rules: {
38
+ "no-global-this-or-declare-module": noGlobalThisOrDeclareModuleRule,
39
+ },
40
+ });
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
2
  "name": "@rc312/oxlint-rules",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Personal Oxlint rules and shareable configurations.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/RyanCallahan312/oxlint-rules.git"
10
+ },
11
+ "engines": {
12
+ "node": ">=22.19.0"
13
+ },
14
+ "exports": {
15
+ ".": "./dist/configs/base.js",
16
+ "./configs/effect": "./dist/configs/effect.js",
17
+ "./configs/effect-starter": "./dist/configs/effect-starter.js",
18
+ "./anti-slop": "./dist/anti-slop/index.js",
19
+ "./anti-slop-effect": "./dist/anti-slop/effect/index.js",
20
+ "./effect-starter": "./dist/effect-starter.js"
21
+ },
22
+ "files": [
23
+ "dist/",
24
+ "src/anti-slop/LICENSE",
25
+ "src/anti-slop/UPSTREAM.md",
26
+ "src/anti-slop/vendor/eslint-stylistic/LICENSE",
27
+ "src/anti-slop/vendor/eslint-stylistic/UPSTREAM.md"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsc -p tsconfig.json",
31
+ "test": "npm run build && node --test \"src/**/*.test.ts\"",
32
+ "prepack": "npm run build"
33
+ },
34
+ "dependencies": {
35
+ "@oxlint/plugins": "1.88.0"
36
+ },
37
+ "peerDependencies": {
38
+ "oxlint": "1.88.0"
39
+ },
40
+ "devDependencies": {
41
+ "oxlint": "1.88.0",
42
+ "typescript": "7.0.2"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public",
46
+ "registry": "https://registry.npmjs.org/"
47
+ }
48
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dillon Mulroy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,14 @@
1
+ # Vendored anti-slop
2
+
3
+ - Source: https://github.com/dmmulroy/anti-slop
4
+ - Revision: `13909c9e07590f5a85d93c62712259fe14a883f7`
5
+ - Copied: upstream `src/` and root `LICENSE`, without modifications.
6
+ - License: MIT. Additional third-party notices are in `vendor/`.
7
+
8
+ The base config enables all generic rules and the companion native
9
+ `oxc/no-accumulating-spread` rule. The Effect config enables the five
10
+ Effect-specific rules.
11
+
12
+ Keep `oxlint` and `@oxlint/plugins` pinned to the same exact version when
13
+ upgrading. Review upstream changes against this revision before updating the
14
+ vendored source; preserve any future local customizations.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
4
+ Copyright (c) 2023-PRESENT ESLint Stylistic contributors
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1,28 @@
1
+ # Vendored padding-line-between-statements
2
+
3
+ Source: [ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic), commit `435c3ea0fd26a5fef9042c4b36b6e165fbbf8d08`.
4
+
5
+ Copied files:
6
+
7
+ - `packages/eslint-plugin/rules/padding-line-between-statements/padding-line-between-statements.ts`
8
+ - `packages/eslint-plugin/rules/padding-line-between-statements/types.d.ts` → `padding-line-options.ts`, so the package build emits the declaration alongside the other types.
9
+ - Root `LICENSE`, retained verbatim. Both OpenJS Foundation and ESLint Stylistic notices apply.
10
+
11
+ The rule is MIT-licensed. Keep `LICENSE` with every redistributed copy, including skill assets. No Stylistic, ESLint, TypeScript-ESLint, or additional parser runtime dependency is required.
12
+
13
+ ## Local adaptations
14
+
15
+ - Replace upstream type aliases with Oxlint's ESTree, context, token/comment, and rule types. Upstream's token type includes comments; Oxlint exposes those separately.
16
+ - Replace `AST_NODE_TYPES` enum members with identical string literals.
17
+ - Guard indexed reads for consuming repositories with `noUncheckedIndexedAccess`. Impossible missing AST/configuration entries raise explicit invariant errors rather than introducing new non-null assertions.
18
+ - Replace the repository-specific `createRule` factory with `createPaddingLineRule(options, statementTypes?)`. The anti-slop wrapper supplies typed options directly; it exposes no user configuration options. The optional second argument registers caller-defined statement types, consulted before the upstream table, so a policy can match syntax the upstream matchers do not distinguish (exported bindings, comment ownership) without editing the vendored tables.
19
+ - Implement the small required AST helper surface in `padding-line-ast.ts` using Oxlint's public source-code/token API. `isParenthesized` only needs the one-pair check used to exclude parenthesized directive strings, not the upstream general-purpose overloads.
20
+ - Retain the upstream statement matchers, scope tracking, comment-aware insertion/removal, selector support, and diagnostic text. Upstream naming and non-null assumptions remain localized here to keep future diffs reviewable; the file is not a model for new application code.
21
+
22
+ The opinionated policy lives outside this directory in `../../rules/require-readable-spacing.ts`. It adds spacing without collapsing existing blank lines. Short local bindings, consecutive imports, and adjacent overload signatures/implementation remain grouped. Spacing is syntactic, not an inference of business-logic boundaries.
23
+
24
+ ## Updating and verification
25
+
26
+ Fetch an explicit upstream revision, compare the original rule and types against this revision, and port relevant fixes while retaining the adapters above. Update this record, preserve the license, and run `npm test`.
27
+
28
+ Focused Oxlint RuleTester cases live in `../../rules/require-readable-spacing.test.ts`; they test exact fixes, JSDoc/trailing comments, same-line statements, semicolon-free code, TypeScript exports/overloads, Effect-style generators, and upstream removal behavior. `../../rules/require-readable-spacing-cli.test.ts` verifies the exported plugin through the native Oxlint CLI on multiple files, including rejection, autofix, and repeated-fix stability. The complete upstream JS/TS test suites have not been ported; this is focused compatibility evidence, not a claim of full upstream conformance.