@pobammer-ts/eslint-cease-nonsense-rules 1.7.0 → 1.9.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 (53) hide show
  1. package/README.md +227 -0
  2. package/dist/build-metadata.json +3 -3
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +3197 -505
  5. package/dist/index.js.map +31 -17
  6. package/dist/oxfmt-sync.d.ts +2 -1
  7. package/dist/oxfmt-sync.d.ts.map +1 -1
  8. package/dist/oxfmt-worker.d.ts +1 -0
  9. package/dist/oxfmt-worker.d.ts.map +1 -1
  10. package/dist/oxfmt-worker.js +17 -172730
  11. package/dist/oxfmt-worker.js.map +4 -21
  12. package/dist/recognizers/code-recognizer.d.ts +0 -18
  13. package/dist/recognizers/code-recognizer.d.ts.map +1 -1
  14. package/dist/resolver.linux-x64-gnu-hcjn12y1.node +0 -0
  15. package/dist/resolver.linux-x64-musl-gnkc267h.node +0 -0
  16. package/dist/rules/ban-instances.d.ts.map +1 -1
  17. package/dist/rules/ban-react-fc.d.ts.map +1 -1
  18. package/dist/rules/enforce-ianitor-check-type.d.ts.map +1 -1
  19. package/dist/rules/no-god-components.d.ts.map +1 -1
  20. package/dist/rules/no-identity-map.d.ts.map +1 -1
  21. package/dist/rules/prefer-class-properties.d.ts +6 -0
  22. package/dist/rules/prefer-class-properties.d.ts.map +1 -0
  23. package/dist/rules/prefer-early-return.d.ts +8 -0
  24. package/dist/rules/prefer-early-return.d.ts.map +1 -0
  25. package/dist/rules/prefer-module-scope-constants.d.ts +5 -0
  26. package/dist/rules/prefer-module-scope-constants.d.ts.map +1 -0
  27. package/dist/rules/prefer-pascal-case-enums.d.ts +5 -0
  28. package/dist/rules/prefer-pascal-case-enums.d.ts.map +1 -0
  29. package/dist/rules/prefer-singular-enums.d.ts +5 -0
  30. package/dist/rules/prefer-singular-enums.d.ts.map +1 -0
  31. package/dist/rules/prefer-udim2-shorthand.d.ts.map +1 -1
  32. package/dist/rules/react-hooks-strict-return.d.ts +5 -0
  33. package/dist/rules/react-hooks-strict-return.d.ts.map +1 -0
  34. package/dist/rules/require-paired-calls.d.ts +0 -1
  35. package/dist/rules/require-paired-calls.d.ts.map +1 -1
  36. package/dist/rules/strict-component-boundaries.d.ts +9 -0
  37. package/dist/rules/strict-component-boundaries.d.ts.map +1 -0
  38. package/dist/rules/use-exhaustive-dependencies.d.ts +1 -42
  39. package/dist/rules/use-exhaustive-dependencies.d.ts.map +1 -1
  40. package/dist/rules/use-hook-at-top-level.d.ts.map +1 -1
  41. package/dist/utilities/casing-utilities.d.ts +2 -0
  42. package/dist/utilities/casing-utilities.d.ts.map +1 -0
  43. package/dist/utilities/format-utilities.d.ts +2 -3
  44. package/dist/utilities/format-utilities.d.ts.map +1 -1
  45. package/dist/utilities/resolve-import.d.ts +16 -0
  46. package/dist/utilities/resolve-import.d.ts.map +1 -0
  47. package/package.json +15 -2
  48. package/dist/types/oxfmt.d.ts +0 -88
  49. package/dist/types/oxfmt.d.ts.map +0 -1
  50. package/dist/utilities/error-utilities.d.ts +0 -25
  51. package/dist/utilities/error-utilities.d.ts.map +0 -1
  52. package/dist/utilities/typebox-utilities.d.ts +0 -4
  53. package/dist/utilities/typebox-utilities.d.ts.map +0 -1
@@ -1,22 +1,4 @@
1
1
  import type { Detector } from "./detector";
2
- export declare const PROBABILITY_THRESHOLD = 0.9;
3
- /**
4
- * Calculate combined probability that a line contains code.
5
- * Uses: p = 1 - (1-p1)(1-p2)...(1-pn)
6
- *
7
- * @param detectors - Array of detectors to use
8
- * @param line - The line to analyze
9
- * @returns Combined probability between 0 and 1
10
- */
11
- export declare function computeProbability(detectors: ReadonlyArray<Detector>, line: string): number;
12
- /**
13
- * Check if a line is likely code based on threshold.
14
- *
15
- * @param detectors - Array of detectors to use
16
- * @param line - The line to check
17
- * @returns True if probability >= threshold
18
- */
19
- export declare function isLikelyCode(detectors: ReadonlyArray<Detector>, line: string): boolean;
20
2
  /**
21
3
  * Check if any line in the array is likely code.
22
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"code-recognizer.d.ts","sourceRoot":"","sources":["../../src/recognizers/code-recognizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAS3F;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtF;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAEtG"}
1
+ {"version":3,"file":"code-recognizer.d.ts","sourceRoot":"","sources":["../../src/recognizers/code-recognizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAmC3C;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAEtG"}
@@ -1 +1 @@
1
- {"version":3,"file":"ban-instances.d.ts","sourceRoot":"","sources":["../../src/rules/ban-instances.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACnF;AAED,KAAK,OAAO,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACtC,KAAK,UAAU,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;AA4C5D,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B;AAOD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,uBAAuB,CA6F/F,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ban-instances.d.ts","sourceRoot":"","sources":["../../src/rules/ban-instances.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACnF;AAED,KAAK,OAAO,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACtC,KAAK,UAAU,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;AAyC5D,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B;AAOD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,uBAAuB,CAwF/F,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ban-react-fc.d.ts","sourceRoot":"","sources":["../../src/rules/ban-react-fc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,KAAK,UAAU,GAAG,YAAY,CAAC;AAE/B,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B;AAID,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,EAAE,EAAE,uBAAuB,CAyCxF,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ban-react-fc.d.ts","sourceRoot":"","sources":["../../src/rules/ban-react-fc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,KAAK,UAAU,GAAG,YAAY,CAAC;AAE/B,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B;AAID,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,EAAE,EAAE,uBAAuB,CA0CxF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"enforce-ianitor-check-type.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-ianitor-check-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,MAAM,WAAW,uBAAuB;IACvC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CAClC;;AA+aD,wBAAwF"}
1
+ {"version":3,"file":"enforce-ianitor-check-type.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-ianitor-check-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,MAAM,WAAW,uBAAuB;IACvC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CAClC;;AA2aD,wBAAwF"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-god-components.d.ts","sourceRoot":"","sources":["../../src/rules/no-god-components.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AA0RD,QAAA,MAAM,eAAe,EAAE,IAAI,CAAC,UA0L3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"no-god-components.d.ts","sourceRoot":"","sources":["../../src/rules/no-god-components.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AA8PD,QAAA,MAAM,eAAe,EAAE,IAAI,CAAC,UAwL3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-identity-map.d.ts","sourceRoot":"","sources":["../../src/rules/no-identity-map.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAGnE,KAAK,UAAU,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;AAE5D,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACjD;AAED,KAAK,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAyMvC,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,CAkEvE,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"no-identity-map.d.ts","sourceRoot":"","sources":["../../src/rules/no-identity-map.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAGnE,KAAK,UAAU,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;AAE5D,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACjD;AAED,KAAK,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC;AA6HvC,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,CA4DvE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+ type MessageIds = "unexpectedClassProperty" | "unexpectedAssignment";
3
+ type Options = ["always" | "never"];
4
+ declare const preferClassProperties: TSESLint.RuleModuleWithMetaDocs<MessageIds, Options>;
5
+ export default preferClassProperties;
6
+ //# sourceMappingURL=prefer-class-properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-class-properties.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-class-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAGnE,KAAK,UAAU,GAAG,yBAAyB,GAAG,sBAAsB,CAAC;AACrE,KAAK,OAAO,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC;AA8DpC,QAAA,MAAM,qBAAqB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,CAkE/E,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+ type MessageIds = "preferEarlyReturn";
3
+ interface Options {
4
+ readonly maximumStatements?: number;
5
+ }
6
+ declare const preferEarlyReturn: TSESLint.RuleModuleWithMetaDocs<MessageIds, [Options?]>;
7
+ export default preferEarlyReturn;
8
+ //# sourceMappingURL=prefer-early-return.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-early-return.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-early-return.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAGnE,KAAK,UAAU,GAAG,mBAAmB,CAAC;AAItC,UAAU,OAAO;IAChB,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACpC;AA0BD,QAAA,MAAM,iBAAiB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,CAuC9E,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+ type MessageIds = "mustUseConst" | "mustBeModuleScope";
3
+ declare const preferModuleScopeConstants: TSESLint.RuleModuleWithMetaDocs<MessageIds>;
4
+ export default preferModuleScopeConstants;
5
+ //# sourceMappingURL=prefer-module-scope-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-module-scope-constants.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-module-scope-constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAGnE,KAAK,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC;AAgBvD,QAAA,MAAM,0BAA0B,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAgD3E,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+ type MessageIds = "notPascalCase";
3
+ declare const preferPascalCaseEnums: TSESLint.RuleModuleWithMetaDocs<MessageIds>;
4
+ export default preferPascalCaseEnums;
5
+ //# sourceMappingURL=prefer-pascal-case-enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-pascal-case-enums.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-pascal-case-enums.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAKnE,KAAK,UAAU,GAAG,eAAe,CAAC;AAWlC,QAAA,MAAM,qBAAqB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAkCtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+ type MessageIds = "notSingular";
3
+ declare const preferSingularEnums: TSESLint.RuleModuleWithMetaDocs<MessageIds>;
4
+ export default preferSingularEnums;
5
+ //# sourceMappingURL=prefer-singular-enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-singular-enums.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-singular-enums.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAGnE,KAAK,UAAU,GAAG,aAAa,CAAC;AAqIhC,QAAA,MAAM,mBAAmB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAyBpE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"prefer-udim2-shorthand.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-udim2-shorthand.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAiJnC,QAAA,MAAM,oBAAoB,EAAE,IAAI,CAAC,UAqDhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"prefer-udim2-shorthand.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-udim2-shorthand.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAgInC,QAAA,MAAM,oBAAoB,EAAE,IAAI,CAAC,UAqDhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+ type MessageIds = "hooksStrictReturn";
3
+ declare const reactHooksStrictReturn: TSESLint.RuleModuleWithMetaDocs<MessageIds>;
4
+ export default reactHooksStrictReturn;
5
+ //# sourceMappingURL=react-hooks-strict-return.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-hooks-strict-return.d.ts","sourceRoot":"","sources":["../../src/rules/react-hooks-strict-return.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAGnE,KAAK,UAAU,GAAG,mBAAmB,CAAC;AA+FtC,QAAA,MAAM,sBAAsB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CA+DvE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -31,7 +31,6 @@ export interface RequirePairedCallsOptions {
31
31
  /** Maximum nesting depth (0 = unlimited) */
32
32
  readonly maxNestingDepth?: number;
33
33
  }
34
- export declare const DEFAULT_ROBLOX_YIELDING_FUNCTIONS: readonly ["task.wait", "wait", "*.WaitForChild", "*.*Async"];
35
34
  declare const rule: Rule.RuleModule;
36
35
  export default rule;
37
36
  //# sourceMappingURL=require-paired-calls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"require-paired-calls.d.ts","sourceRoot":"","sources":["../../src/rules/require-paired-calls.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpD,uDAAuD;IACvD,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,8CAA8C;IAC9C,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C,qDAAqD;IACrD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,iCAAiC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B,qDAAqD;IACrD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACnD;AAeD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACjD,gCAAgC;IAChC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAC3C,yCAAyC;IACzC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IACxC,4CAA4C;IAC5C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CAClC;AAsED,eAAO,MAAM,iCAAiC,8DAA+D,CAAC;AAqG9G,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAy2BhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"require-paired-calls.d.ts","sourceRoot":"","sources":["../../src/rules/require-paired-calls.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpD,uDAAuD;IACvD,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,8CAA8C;IAC9C,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C,qDAAqD;IACrD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,iCAAiC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B,qDAAqD;IACrD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACnD;AAeD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACjD,gCAAgC;IAChC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAC3C,yCAAyC;IACzC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IACxC,4CAA4C;IAC5C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CAClC;AA2KD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAy2BhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+ type MessageIds = "noReachingIntoComponent";
3
+ interface Options {
4
+ readonly allow?: ReadonlyArray<string>;
5
+ readonly maxDepth?: number;
6
+ }
7
+ declare const strictComponentBoundaries: TSESLint.RuleModuleWithMetaDocs<MessageIds, [Options?]>;
8
+ export default strictComponentBoundaries;
9
+ //# sourceMappingURL=strict-component-boundaries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strict-component-boundaries.d.ts","sourceRoot":"","sources":["../../src/rules/strict-component-boundaries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAInE,KAAK,UAAU,GAAG,yBAAyB,CAAC;AAE5C,UAAU,OAAO;IAChB,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAmCD,QAAA,MAAM,yBAAyB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,CAqFtF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,5 +1,4 @@
1
- import { TSESTree } from "@typescript-eslint/types";
2
- import type { Rule, Scope } from "eslint";
1
+ import type { Rule } from "eslint";
3
2
  export interface HookEntry {
4
3
  readonly name: string;
5
4
  readonly closureIndex?: number;
@@ -11,46 +10,6 @@ export interface UseExhaustiveDependenciesOptions {
11
10
  readonly reportMissingDependenciesArray?: boolean;
12
11
  readonly reportUnnecessaryDependencies?: boolean;
13
12
  }
14
- export interface HookConfig {
15
- readonly closureIndex: number;
16
- readonly dependenciesIndex: number;
17
- }
18
- export type StableResult = boolean | ReadonlySet<number> | ReadonlySet<string>;
19
- declare function resetTestingMetrics(): void;
20
- interface VariableDefinitionLike {
21
- readonly node: TSESTree.Node | Rule.Node;
22
- readonly type: string;
23
- }
24
- interface VariableLike {
25
- readonly defs: ReadonlyArray<VariableDefinitionLike>;
26
- }
27
- interface CaptureInfo {
28
- readonly forceDependency: boolean;
29
- readonly name: string;
30
- readonly node: TSESTree.Node;
31
- readonly usagePath: string;
32
- readonly variable: VariableLike | undefined;
33
- readonly depth: number;
34
- }
35
- declare function isStableArrayIndex(stableResult: StableResult | undefined, node: Scope.Definition["node"], identifierName: string): boolean;
36
- declare function isStableValue(variable: VariableLike | undefined, identifierName: string, stableHooks: Map<string, StableResult>): boolean;
37
- declare function isInTypePosition(identifier: TSESTree.Identifier): boolean;
38
- declare function isDeclaredInComponentBody(variable: VariableLike, closureNode: TSESTree.Node): boolean;
39
- declare function collectCaptures(node: TSESTree.Node, sourceCode: Rule.RuleContext["sourceCode"]): ReadonlyArray<CaptureInfo>;
40
- declare function convertStableResult(stableResult: boolean | number | ReadonlyArray<number> | ReadonlyArray<string>): StableResult;
41
13
  declare const useExhaustiveDependencies: Rule.RuleModule;
42
- export declare const __testing: {
43
- collectCaptures: typeof collectCaptures;
44
- convertStableResult: typeof convertStableResult;
45
- isDeclaredInComponentBody: typeof isDeclaredInComponentBody;
46
- isInTypePosition: typeof isInTypePosition;
47
- isStableArrayIndex: typeof isStableArrayIndex;
48
- isStableValue: typeof isStableValue;
49
- metrics: {
50
- moduleLevelStableConst: number;
51
- outerScopeSkip: number;
52
- };
53
- resetMetrics: typeof resetTestingMetrics;
54
- };
55
14
  export default useExhaustiveDependencies;
56
15
  //# sourceMappingURL=use-exhaustive-dependencies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-exhaustive-dependencies.d.ts","sourceRoot":"","sources":["../../src/rules/use-exhaustive-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAgB1C,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;CACzF;AAED,MAAM,WAAW,gCAAgC;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAC1C,QAAQ,CAAC,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAClD,QAAQ,CAAC,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACjD;AAED,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAO/E,iBAAS,mBAAmB,IAAI,IAAI,CAGnC;AAED,UAAU,sBAAsB;IAC/B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,YAAY;IACrB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAC;CACrD;AAQD,UAAU,WAAW;IACpB,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACvB;AAqKD,iBAAS,kBAAkB,CAC1B,YAAY,EAAE,YAAY,GAAG,SAAS,EACtC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,EAC9B,cAAc,EAAE,MAAM,GACpB,OAAO,CAqBT;AAoBD,iBAAS,aAAa,CACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,GACpC,OAAO,CAwET;AAgDD,iBAAS,gBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,OAAO,CAgBlE;AAED,iBAAS,yBAAyB,CAAC,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAC,IAAI,GAAG,OAAO,CA4B9F;AAqCD,iBAAS,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CA0FpH;AAqCD,iBAAS,mBAAmB,CAC3B,YAAY,EAAE,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,GAC5E,YAAY,CAQd;AAED,QAAA,MAAM,yBAAyB,EAAE,IAAI,CAAC,UAoWrC,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;CASrB,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"use-exhaustive-dependencies.d.ts","sourceRoot":"","sources":["../../src/rules/use-exhaustive-dependencies.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAS,MAAM,QAAQ,CAAC;AAgB1C,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;CACzF;AAED,MAAM,WAAW,gCAAgC;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAC1C,QAAQ,CAAC,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAClD,QAAQ,CAAC,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACjD;AAglBD,QAAA,MAAM,yBAAyB,EAAE,IAAI,CAAC,UAoWrC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-hook-at-top-level.d.ts","sourceRoot":"","sources":["../../src/rules/use-hook-at-top-level.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAqBnC,MAAM,WAAW,wBAAwB;IACxC;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAE7C;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjD;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC3C;AA0GD,QAAA,MAAM,iBAAiB,EAAE,IAAI,CAAC,UAiT7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"use-hook-at-top-level.d.ts","sourceRoot":"","sources":["../../src/rules/use-hook-at-top-level.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAqBnC,MAAM,WAAW,wBAAwB;IACxC;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAE7C;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjD;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC3C;AA8GD,QAAA,MAAM,iBAAiB,EAAE,IAAI,CAAC,UAgT7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function toPascalCase(value: string): string;
2
+ //# sourceMappingURL=casing-utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"casing-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/casing-utilities.ts"],"names":[],"mappings":"AASA,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAkClD"}
@@ -1,5 +1,4 @@
1
- import type { FormatOptions } from "oxfmt";
2
- import { terminateWorker } from "../oxfmt-sync";
1
+ import type { FormatOptions } from "../oxfmt-worker";
3
2
  export interface Difference {
4
3
  readonly operation: "INSERT" | "DELETE" | "REPLACE";
5
4
  readonly offset: number;
@@ -16,5 +15,5 @@ export declare const __testing: {
16
15
  loadOxfmtConfig: typeof loadOxfmtConfig;
17
16
  resetConfigCache: typeof resetConfigCache;
18
17
  };
19
- export { terminateWorker };
18
+ export {};
20
19
  //# sourceMappingURL=format-utilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/format-utilities.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,SAAS,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAID,iBAAS,eAAe,IAAI,aAAa,CAsBxC;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUjE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAM5E;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,CAWlG;AAeD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,iBAAS,gBAAgB,IAAI,IAAI,CAEhC;AAED,eAAO,MAAM,SAAS;;;CAAwC,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"format-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/format-utilities.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,SAAS,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAID,iBAAS,eAAe,IAAI,aAAa,CAsBxC;AAYD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAgCjE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAM5E;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,CA8DlG;AAeD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,iBAAS,gBAAgB,IAAI,IAAI,CAEhC;AAED,eAAO,MAAM,SAAS;;;CAAwC,CAAC"}
@@ -0,0 +1,16 @@
1
+ type ResolveResult = {
2
+ readonly found: false;
3
+ } | {
4
+ readonly found: true;
5
+ readonly path: string;
6
+ };
7
+ /**
8
+ * Resolves a relative import to an absolute path.
9
+ *
10
+ * @param importSource - The import specifier (e.g., "./foo/bar").
11
+ * @param sourceFile - The absolute path of the file containing the import.
12
+ * @returns Resolution result with path if found.
13
+ */
14
+ export declare function resolveRelativeImport(importSource: string, sourceFile: string): ResolveResult;
15
+ export {};
16
+ //# sourceMappingURL=resolve-import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-import.d.ts","sourceRoot":"","sources":["../../src/utilities/resolve-import.ts"],"names":[],"mappings":"AAGA,KAAK,aAAa,GACf;IAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;CAAE,GACzB;IACA,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACrB,CAAC;AAML;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,aAAa,CAM7F"}
package/package.json CHANGED
@@ -2,7 +2,9 @@
2
2
  "author": "HowManySmall",
3
3
  "dependencies": {
4
4
  "arkregex": "^0.0.5",
5
+ "fast-diff": "^1.3.0",
5
6
  "oxc-parser": "^0.104.0",
7
+ "oxc-resolver": "^11.16.0",
6
8
  "typebox": "^1.0.64"
7
9
  },
8
10
  "description": "A bunch of lints to prevent idiot mistakes I encounter with frequency.",
@@ -15,8 +17,10 @@
15
17
  "@toon-format/toon": "^2.1.0",
16
18
  "@total-typescript/ts-reset": "^0.6.1",
17
19
  "@types/bun": "^1.3.5",
20
+ "@types/estree": "^1.0.8",
18
21
  "@types/node": "^20.14.11",
19
22
  "@typescript-eslint/parser": "^8.46.4",
23
+ "@typescript-eslint/scope-manager": "^8.50.0",
20
24
  "@typescript-eslint/types": "^8.46.4",
21
25
  "@typescript-eslint/utils": "^8.46.4",
22
26
  "@typescript/native-preview": "7.0.0-dev.20251219.1",
@@ -27,6 +31,7 @@
27
31
  "consola": "^3.4.2",
28
32
  "eslint": "9.39.2",
29
33
  "fast-xml-parser": "^5.3.2",
34
+ "knip": "^5.76.1",
30
35
  "lint-staged": "^16.2.7",
31
36
  "mitata": "^1.0.34",
32
37
  "oxfmt": "^0.19.0",
@@ -36,6 +41,7 @@
36
41
  "pretty-bytes": "^7.1.0",
37
42
  "pretty-ms": "^9.3.0",
38
43
  "simple-git-hooks": "^2.13.1",
44
+ "source-map": "^0.7.6",
39
45
  "ts-case-convert": "^2.1.0",
40
46
  "type-fest": "^5.3.1",
41
47
  "typescript": "^5.6.3"
@@ -61,7 +67,13 @@
61
67
  "peerDependencies": {
62
68
  "@typescript-eslint/parser": "^8.46.4",
63
69
  "@typescript-eslint/utils": "^8.46.4",
64
- "eslint": "^9.39.2"
70
+ "eslint": "^9.39.2",
71
+ "oxfmt": "^0.19.0"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "oxfmt": {
75
+ "optional": true
76
+ }
65
77
  },
66
78
  "publishConfig": {
67
79
  "access": "public"
@@ -76,6 +88,7 @@
76
88
  "build:legacy": "bun x --bun tsgo -p tsconfig.json",
77
89
  "dev": "bun x --bun tsgo -w",
78
90
  "format": "bun x oxfmt",
91
+ "knip": "bun x --bun knip-bun",
79
92
  "lint": "bun run oxc . && bun x --bun biome lint .",
80
93
  "lint:fix": "bun run oxc . --fix && bun x --bun biome lint . --fix",
81
94
  "oxc": "bun x oxlint --type-aware",
@@ -92,5 +105,5 @@
92
105
  },
93
106
  "type": "module",
94
107
  "types": "./dist/index.d.ts",
95
- "version": "1.7.0"
108
+ "version": "1.9.0"
96
109
  }
@@ -1,88 +0,0 @@
1
- import Typebox from "typebox";
2
- export declare const isOxfmtConfiguration: import("typebox/compile").Validator<{}, Typebox.TObject<{
3
- $schema: Typebox.TOptional<Typebox.TString>;
4
- arrowParens: Typebox.TOptional<Typebox.TUnion<[Typebox.TLiteral<"always">, Typebox.TLiteral<"avoid">]>>;
5
- bracketSameLine: Typebox.TOptional<Typebox.TBoolean>;
6
- bracketSpacing: Typebox.TOptional<Typebox.TBoolean>;
7
- embeddedLanguageFormatting: Typebox.TOptional<Typebox.TUnion<[Typebox.TLiteral<"auto">, Typebox.TLiteral<"off">]>>;
8
- endOfLine: Typebox.TOptional<Typebox.TUnion<[Typebox.TLiteral<"lf">, Typebox.TLiteral<"crlf">, Typebox.TLiteral<"cr">]>>;
9
- experimentalOperatorPosition: Typebox.TOptional<Typebox.TUnion<[Typebox.TLiteral<"end">, Typebox.TLiteral<"start">]>>;
10
- experimentalSortImports: Typebox.TOptional<Typebox.TObject<{
11
- ignoreCase: Typebox.TOptional<Typebox.TBoolean>;
12
- newlinesBetween: Typebox.TOptional<Typebox.TBoolean>;
13
- order: Typebox.TOptional<Typebox.TUnion<[Typebox.TLiteral<"asc">, Typebox.TLiteral<"desc">]>>;
14
- partitionByComment: Typebox.TOptional<Typebox.TBoolean>;
15
- partitionByNewline: Typebox.TOptional<Typebox.TBoolean>;
16
- sortSideEffects: Typebox.TOptional<Typebox.TBoolean>;
17
- }>>;
18
- experimentalSortPackageJson: Typebox.TOptional<Typebox.TBoolean>;
19
- ignorePatterns: Typebox.TOptional<Typebox.TArray<Typebox.TString>>;
20
- jsxSingleQuote: Typebox.TOptional<Typebox.TBoolean>;
21
- objectWrap: Typebox.TOptional<Typebox.TUnion<[Typebox.TLiteral<"preserve">, Typebox.TLiteral<"collapse">, Typebox.TLiteral<"always">]>>;
22
- printWidth: Typebox.TOptional<Typebox.TInteger>;
23
- quoteProps: Typebox.TOptional<Typebox.TUnion<[Typebox.TLiteral<"as-needed">, Typebox.TLiteral<"consistent">, Typebox.TLiteral<"preserve">]>>;
24
- semi: Typebox.TOptional<Typebox.TBoolean>;
25
- singleAttributePerLine: Typebox.TOptional<Typebox.TBoolean>;
26
- singleQuote: Typebox.TOptional<Typebox.TBoolean>;
27
- tabWidth: Typebox.TOptional<Typebox.TInteger>;
28
- trailingComma: Typebox.TOptional<Typebox.TUnion<[Typebox.TLiteral<"none">, Typebox.TLiteral<"es5">, Typebox.TLiteral<"all">]>>;
29
- useTabs: Typebox.TOptional<Typebox.TBoolean>;
30
- }>, {
31
- $schema?: string;
32
- arrowParens?: "always" | "avoid";
33
- bracketSameLine?: boolean;
34
- bracketSpacing?: boolean;
35
- embeddedLanguageFormatting?: "auto" | "off";
36
- endOfLine?: "cr" | "crlf" | "lf";
37
- experimentalOperatorPosition?: "end" | "start";
38
- experimentalSortImports?: {
39
- ignoreCase?: boolean;
40
- newlinesBetween?: boolean;
41
- order?: "asc" | "desc";
42
- partitionByComment?: boolean;
43
- partitionByNewline?: boolean;
44
- sortSideEffects?: boolean;
45
- };
46
- experimentalSortPackageJson?: boolean;
47
- ignorePatterns?: string[];
48
- jsxSingleQuote?: boolean;
49
- objectWrap?: "always" | "collapse" | "preserve";
50
- printWidth?: number;
51
- quoteProps?: "as-needed" | "consistent" | "preserve";
52
- semi?: boolean;
53
- singleAttributePerLine?: boolean;
54
- singleQuote?: boolean;
55
- tabWidth?: number;
56
- trailingComma?: "all" | "es5" | "none";
57
- useTabs?: boolean;
58
- }, {
59
- $schema?: string;
60
- arrowParens?: "always" | "avoid";
61
- bracketSameLine?: boolean;
62
- bracketSpacing?: boolean;
63
- embeddedLanguageFormatting?: "auto" | "off";
64
- endOfLine?: "cr" | "crlf" | "lf";
65
- experimentalOperatorPosition?: "end" | "start";
66
- experimentalSortImports?: {
67
- ignoreCase?: boolean;
68
- newlinesBetween?: boolean;
69
- order?: "asc" | "desc";
70
- partitionByComment?: boolean;
71
- partitionByNewline?: boolean;
72
- sortSideEffects?: boolean;
73
- };
74
- experimentalSortPackageJson?: boolean;
75
- ignorePatterns?: string[];
76
- jsxSingleQuote?: boolean;
77
- objectWrap?: "always" | "collapse" | "preserve";
78
- printWidth?: number;
79
- quoteProps?: "as-needed" | "consistent" | "preserve";
80
- semi?: boolean;
81
- singleAttributePerLine?: boolean;
82
- singleQuote?: boolean;
83
- tabWidth?: number;
84
- trailingComma?: "all" | "es5" | "none";
85
- useTabs?: boolean;
86
- }>;
87
- export type OxfmtConfiguration = Typebox.Static<typeof isOxfmtConfiguration>;
88
- //# sourceMappingURL=oxfmt.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oxfmt.d.ts","sourceRoot":"","sources":["../../src/types/oxfmt.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDhC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import Typebox from "typebox";
2
- export declare const isLiteralErrorLike: import("typebox/compile").Validator<{}, Typebox.TObject<{
3
- message: Typebox.TString;
4
- name: Typebox.TString;
5
- }>, {
6
- message: string;
7
- name: string;
8
- }, {
9
- message: string;
10
- name: string;
11
- }>;
12
- export type ErrorLike = Typebox.Static<typeof isLiteralErrorLike>;
13
- export declare function isErrorLike(value: unknown): value is ErrorLike;
14
- export declare function isErrnoException(value: unknown): value is NodeJS.ErrnoException;
15
- /**
16
- * Converts an unknown error value to a string message.
17
- *
18
- * If the error is an Error object, returns its message. Otherwise, coerces to
19
- * string.
20
- *
21
- * @param error - The error value to stringify.
22
- * @returns The string representation of the error.
23
- */
24
- export declare function stringifyUnknownError(error: unknown): string;
25
- //# sourceMappingURL=error-utilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/error-utilities.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B,eAAO,MAAM,kBAAkB;;;;;;;;;EAK9B,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAElE,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D;AAWD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,cAAc,CAI/E;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE5D"}
@@ -1,4 +0,0 @@
1
- import type { TLocalizedValidationError } from "typebox/error";
2
- export declare function toPrettyErrorsRaw(errors: ReadonlyArray<TLocalizedValidationError>, value: unknown): ReadonlyArray<string>;
3
- export declare function toPrettyErrors(errors: ReadonlyArray<TLocalizedValidationError>, value: unknown): string;
4
- //# sourceMappingURL=typebox-utilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typebox-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/typebox-utilities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAa/D,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,aAAa,CAAC,yBAAyB,CAAC,EAChD,KAAK,EAAE,OAAO,GACZ,aAAa,CAAC,MAAM,CAAC,CAUvB;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,CAAC,yBAAyB,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAEvG"}