@pobammer-ts/eslint-cease-nonsense-rules 1.7.1 → 1.9.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 (51) 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 +1792 -1215
  5. package/dist/index.js.map +27 -22
  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 -172731
  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/rules/ban-instances.d.ts.map +1 -1
  15. package/dist/rules/ban-react-fc.d.ts.map +1 -1
  16. package/dist/rules/enforce-ianitor-check-type.d.ts.map +1 -1
  17. package/dist/rules/no-god-components.d.ts.map +1 -1
  18. package/dist/rules/no-identity-map.d.ts.map +1 -1
  19. package/dist/rules/prefer-class-properties.d.ts +6 -0
  20. package/dist/rules/prefer-class-properties.d.ts.map +1 -0
  21. package/dist/rules/prefer-early-return.d.ts +8 -0
  22. package/dist/rules/prefer-early-return.d.ts.map +1 -0
  23. package/dist/rules/prefer-module-scope-constants.d.ts +5 -0
  24. package/dist/rules/prefer-module-scope-constants.d.ts.map +1 -0
  25. package/dist/rules/prefer-pascal-case-enums.d.ts +5 -0
  26. package/dist/rules/prefer-pascal-case-enums.d.ts.map +1 -0
  27. package/dist/rules/prefer-singular-enums.d.ts +5 -0
  28. package/dist/rules/prefer-singular-enums.d.ts.map +1 -0
  29. package/dist/rules/prefer-udim2-shorthand.d.ts.map +1 -1
  30. package/dist/rules/react-hooks-strict-return.d.ts +5 -0
  31. package/dist/rules/react-hooks-strict-return.d.ts.map +1 -0
  32. package/dist/rules/require-paired-calls.d.ts +0 -1
  33. package/dist/rules/require-paired-calls.d.ts.map +1 -1
  34. package/dist/rules/strict-component-boundaries.d.ts +9 -0
  35. package/dist/rules/strict-component-boundaries.d.ts.map +1 -0
  36. package/dist/rules/use-exhaustive-dependencies.d.ts +1 -42
  37. package/dist/rules/use-exhaustive-dependencies.d.ts.map +1 -1
  38. package/dist/rules/use-hook-at-top-level.d.ts.map +1 -1
  39. package/dist/utilities/casing-utilities.d.ts +2 -0
  40. package/dist/utilities/casing-utilities.d.ts.map +1 -0
  41. package/dist/utilities/format-utilities.d.ts +2 -3
  42. package/dist/utilities/format-utilities.d.ts.map +1 -1
  43. package/dist/utilities/resolve-import.d.ts +16 -0
  44. package/dist/utilities/resolve-import.d.ts.map +1 -0
  45. package/package.json +15 -2
  46. package/dist/types/oxfmt.d.ts +0 -88
  47. package/dist/types/oxfmt.d.ts.map +0 -1
  48. package/dist/utilities/error-utilities.d.ts +0 -25
  49. package/dist/utilities/error-utilities.d.ts.map +0 -1
  50. package/dist/utilities/typebox-utilities.d.ts +0 -4
  51. package/dist/utilities/typebox-utilities.d.ts.map +0 -1
@@ -1,4 +1,5 @@
1
- import type { FormatOptions } from "oxfmt";
1
+ import type { FormatOptions } from "./oxfmt-worker";
2
+ export declare function __testingResolveWorkerPath(baseUrl: string | URL, exists: (path: string) => boolean): URL;
2
3
  export declare function formatSync(fileName: string, sourceText: string, options?: FormatOptions): string;
3
4
  export declare function terminateWorker(): void;
4
5
  //# sourceMappingURL=oxfmt-sync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oxfmt-sync.d.ts","sourceRoot":"","sources":["../src/oxfmt-sync.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AA+C3C,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,MAAM,CA0BpG;AAED,wBAAgB,eAAe,IAAI,IAAI,CAItC"}
1
+ {"version":3,"file":"oxfmt-sync.d.ts","sourceRoot":"","sources":["../src/oxfmt-sync.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAiC,MAAM,gBAAgB,CAAC;AAYnF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,GAAG,CAWxG;AA2BD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,MAAM,CA0BpG;AAED,wBAAgB,eAAe,IAAI,IAAI,CAItC"}
@@ -1,4 +1,5 @@
1
1
  import type { FormatOptions } from "oxfmt";
2
+ export type { FormatOptions } from "oxfmt";
2
3
  export interface FormatRequest {
3
4
  readonly controlBuffer: SharedArrayBuffer;
4
5
  readonly fileName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"oxfmt-worker.d.ts","sourceRoot":"","sources":["../src/oxfmt-worker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"oxfmt-worker.d.ts","sourceRoot":"","sources":["../src/oxfmt-worker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACxB"}