@pobammer-ts/eslint-cease-nonsense-rules 1.10.0 → 1.12.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 (68) hide show
  1. package/README.md +149 -0
  2. package/dist/build-metadata.json +3 -3
  3. package/dist/index.d.ts +9 -6
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1056 -295
  6. package/dist/index.js.map +50 -41
  7. package/dist/rules/ban-instances.d.ts +6 -7
  8. package/dist/rules/ban-instances.d.ts.map +1 -1
  9. package/dist/rules/ban-react-fc.d.ts +4 -7
  10. package/dist/rules/ban-react-fc.d.ts.map +1 -1
  11. package/dist/rules/enforce-ianitor-check-type.d.ts +7 -3
  12. package/dist/rules/enforce-ianitor-check-type.d.ts.map +1 -1
  13. package/dist/rules/no-async-constructor.d.ts +4 -5
  14. package/dist/rules/no-async-constructor.d.ts.map +1 -1
  15. package/dist/rules/no-color3-constructor.d.ts +4 -3
  16. package/dist/rules/no-color3-constructor.d.ts.map +1 -1
  17. package/dist/rules/no-commented-code.d.ts.map +1 -1
  18. package/dist/rules/no-god-components.d.ts.map +1 -1
  19. package/dist/rules/no-identity-map.d.ts +4 -2
  20. package/dist/rules/no-identity-map.d.ts.map +1 -1
  21. package/dist/rules/no-instance-methods-without-this.d.ts +4 -9
  22. package/dist/rules/no-instance-methods-without-this.d.ts.map +1 -1
  23. package/dist/rules/no-print.d.ts +4 -3
  24. package/dist/rules/no-print.d.ts.map +1 -1
  25. package/dist/rules/no-useless-use-spring.d.ts +4 -4
  26. package/dist/rules/no-useless-use-spring.d.ts.map +1 -1
  27. package/dist/rules/no-warn.d.ts +4 -3
  28. package/dist/rules/no-warn.d.ts.map +1 -1
  29. package/dist/rules/prefer-class-properties.d.ts +4 -3
  30. package/dist/rules/prefer-class-properties.d.ts.map +1 -1
  31. package/dist/rules/prefer-early-return.d.ts +4 -4
  32. package/dist/rules/prefer-early-return.d.ts.map +1 -1
  33. package/dist/rules/prefer-module-scope-constants.d.ts +4 -2
  34. package/dist/rules/prefer-module-scope-constants.d.ts.map +1 -1
  35. package/dist/rules/prefer-pascal-case-enums.d.ts +4 -4
  36. package/dist/rules/prefer-pascal-case-enums.d.ts.map +1 -1
  37. package/dist/rules/prefer-pattern-replacements.d.ts +8 -0
  38. package/dist/rules/prefer-pattern-replacements.d.ts.map +1 -0
  39. package/dist/rules/prefer-sequence-overloads.d.ts +4 -7
  40. package/dist/rules/prefer-sequence-overloads.d.ts.map +1 -1
  41. package/dist/rules/prefer-singular-enums.d.ts +4 -4
  42. package/dist/rules/prefer-singular-enums.d.ts.map +1 -1
  43. package/dist/rules/react-hooks-strict-return.d.ts +4 -3
  44. package/dist/rules/react-hooks-strict-return.d.ts.map +1 -1
  45. package/dist/rules/require-named-effect-functions.d.ts.map +1 -1
  46. package/dist/rules/require-react-component-keys.d.ts +4 -5
  47. package/dist/rules/require-react-component-keys.d.ts.map +1 -1
  48. package/dist/rules/require-react-display-names.d.ts +11 -0
  49. package/dist/rules/require-react-display-names.d.ts.map +1 -0
  50. package/dist/rules/strict-component-boundaries.d.ts +4 -8
  51. package/dist/rules/strict-component-boundaries.d.ts.map +1 -1
  52. package/dist/utilities/configure-utilities.d.ts +14 -0
  53. package/dist/utilities/configure-utilities.d.ts.map +1 -1
  54. package/dist/utilities/create-rule.d.ts +9 -0
  55. package/dist/utilities/create-rule.d.ts.map +1 -0
  56. package/dist/utilities/pattern-replacement/constant-folder.d.ts +24 -0
  57. package/dist/utilities/pattern-replacement/constant-folder.d.ts.map +1 -0
  58. package/dist/utilities/pattern-replacement/index.d.ts +7 -0
  59. package/dist/utilities/pattern-replacement/index.d.ts.map +1 -0
  60. package/dist/utilities/pattern-replacement/pattern-matcher.d.ts +62 -0
  61. package/dist/utilities/pattern-replacement/pattern-matcher.d.ts.map +1 -0
  62. package/dist/utilities/pattern-replacement/pattern-parser.d.ts +22 -0
  63. package/dist/utilities/pattern-replacement/pattern-parser.d.ts.map +1 -0
  64. package/dist/utilities/pattern-replacement/pattern-types.d.ts +69 -0
  65. package/dist/utilities/pattern-replacement/pattern-types.d.ts.map +1 -0
  66. package/dist/utilities/pattern-replacement/replacement-generator.d.ts +16 -0
  67. package/dist/utilities/pattern-replacement/replacement-generator.d.ts.map +1 -0
  68. package/package.json +17 -17
@@ -1,4 +1,4 @@
1
- import type { TSESLint } from "@typescript-eslint/utils";
1
+ import type { ReadonlyRecord } from "../types/utility-types";
2
2
  /**
3
3
  * Configuration for banned Roblox Instance classes.
4
4
  *
@@ -16,13 +16,12 @@ import type { TSESLint } from "@typescript-eslint/utils";
16
16
  * ```
17
17
  */
18
18
  export interface BanInstancesOptions {
19
- readonly bannedInstances: ReadonlyArray<string> | Readonly<Record<string, string>>;
19
+ readonly bannedInstances: ReadonlyArray<string> | ReadonlyRecord<string, string>;
20
20
  }
21
21
  type Options = [BanInstancesOptions?];
22
22
  type MessageIds = "bannedInstance" | "bannedInstanceCustom";
23
- interface RuleDocsWithRecommended extends TSESLint.RuleMetaDataDocs {
24
- readonly recommended?: boolean;
25
- }
26
- declare const banInstances: TSESLint.RuleModuleWithMetaDocs<MessageIds, Options, RuleDocsWithRecommended>;
27
- export default banInstances;
23
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
24
+ name: string;
25
+ };
26
+ export default _default;
28
27
  //# sourceMappingURL=ban-instances.d.ts.map
@@ -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;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
+ {"version":3,"file":"ban-instances.d.ts","sourceRoot":"","sources":["../../src/rules/ban-instances.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjF;AAED,KAAK,OAAO,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACtC,KAAK,UAAU,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;;;;AAyC5D,wBA2FG"}
@@ -1,8 +1,5 @@
1
- import type { TSESLint } from "@typescript-eslint/utils";
2
- type MessageIds = "banReactFC";
3
- interface RuleDocsWithRecommended extends TSESLint.RuleMetaDataDocs {
4
- readonly recommended?: boolean;
5
- }
6
- declare const banReactFC: TSESLint.RuleModuleWithMetaDocs<MessageIds, [], RuleDocsWithRecommended>;
7
- export default banReactFC;
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"banReactFC", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
2
+ name: string;
3
+ };
4
+ export default _default;
8
5
  //# sourceMappingURL=ban-react-fc.d.ts.map
@@ -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,CA0CxF,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ban-react-fc.d.ts","sourceRoot":"","sources":["../../src/rules/ban-react-fc.ts"],"names":[],"mappings":";;;AAOA,wBA0CG"}
@@ -1,4 +1,4 @@
1
- import type { TSESLint } from "@typescript-eslint/utils";
1
+ import { ESLintUtils } from "@typescript-eslint/utils";
2
2
  export interface ComplexityConfiguration {
3
3
  readonly baseThreshold: number;
4
4
  readonly warnThreshold: number;
@@ -6,6 +6,10 @@ export interface ComplexityConfiguration {
6
6
  readonly interfacePenalty: number;
7
7
  readonly performanceMode: boolean;
8
8
  }
9
- declare const _default: TSESLint.AnyRuleModuleWithMetaDocs;
10
- export default _default;
9
+ type MessageIds = "complexInterfaceNeedsCheck" | "missingIanitorCheckType";
10
+ type Options = [Partial<ComplexityConfiguration>];
11
+ declare const enforceIanitorCheckType: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
12
+ name: string;
13
+ };
14
+ export default enforceIanitorCheckType;
11
15
  //# sourceMappingURL=enforce-ianitor-check-type.d.ts.map
@@ -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;;AA2aD,wBAAwF"}
1
+ {"version":3,"file":"enforce-ianitor-check-type.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-ianitor-check-type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,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;AAmJD,KAAK,UAAU,GAAG,4BAA4B,GAAG,yBAAyB,CAAC;AAC3E,KAAK,OAAO,GAAG,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAMlD,QAAA,MAAM,uBAAuB;;CA+Q3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import type { TSESLint } from "@typescript-eslint/utils";
2
2
  type MessageIds = "awaitInConstructor" | "promiseChainInConstructor" | "asyncIifeInConstructor" | "unhandledAsyncCall" | "orphanedPromise";
3
- interface RuleDocsWithRecommended extends TSESLint.RuleMetaDataDocs {
4
- readonly recommended?: boolean;
5
- }
6
- declare const noAsyncConstructor: TSESLint.RuleModuleWithMetaDocs<MessageIds, [], RuleDocsWithRecommended>;
7
- export default noAsyncConstructor;
3
+ declare const _default: TSESLint.RuleModule<MessageIds, [], unknown, TSESLint.RuleListener> & {
4
+ name: string;
5
+ };
6
+ export default _default;
8
7
  //# sourceMappingURL=no-async-constructor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-async-constructor.d.ts","sourceRoot":"","sources":["../../src/rules/no-async-constructor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAEnE,KAAK,UAAU,GACZ,oBAAoB,GACpB,2BAA2B,GAC3B,wBAAwB,GACxB,oBAAoB,GACpB,iBAAiB,CAAC;AAErB,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B;AA6RD,QAAA,MAAM,kBAAkB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,EAAE,EAAE,uBAAuB,CAgDhG,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"no-async-constructor.d.ts","sourceRoot":"","sources":["../../src/rules/no-async-constructor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAInE,KAAK,UAAU,GACZ,oBAAoB,GACpB,2BAA2B,GAC3B,wBAAwB,GACxB,oBAAoB,GACpB,iBAAiB,CAAC;;;;AAqMrB,wBAgDG"}
@@ -1,4 +1,5 @@
1
- import type { Rule } from "eslint";
2
- declare const noColor3Constructor: Rule.RuleModule;
3
- export default noColor3Constructor;
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"onlyZeroArgs" | "useFromRGB", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
2
+ name: string;
3
+ };
4
+ export default _default;
4
5
  //# sourceMappingURL=no-color3-constructor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-color3-constructor.d.ts","sourceRoot":"","sources":["../../src/rules/no-color3-constructor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAoCnC,QAAA,MAAM,mBAAmB,EAAE,IAAI,CAAC,UAsD/B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"no-color3-constructor.d.ts","sourceRoot":"","sources":["../../src/rules/no-color3-constructor.ts"],"names":[],"mappings":";;;AAqCA,wBAuDG"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-commented-code.d.ts","sourceRoot":"","sources":["../../src/rules/no-commented-code.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA2OnC,QAAA,MAAM,eAAe,EAAE,IAAI,CAAC,UAqD3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"no-commented-code.d.ts","sourceRoot":"","sources":["../../src/rules/no-commented-code.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA2OnC,QAAA,MAAM,eAAe,EAAE,IAAI,CAAC,UAoD3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -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;AA8PD,QAAA,MAAM,eAAe,EAAE,IAAI,CAAC,UAwL3B,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,UAsL3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -4,6 +4,8 @@ export interface NoIdentityMapOptions {
4
4
  readonly bindingPatterns?: ReadonlyArray<string>;
5
5
  }
6
6
  type Options = [NoIdentityMapOptions?];
7
- declare const noIdentityMap: TSESLint.RuleModuleWithMetaDocs<MessageIds, Options>;
8
- export default noIdentityMap;
7
+ declare const _default: TSESLint.RuleModule<MessageIds, Options, unknown, TSESLint.RuleListener> & {
8
+ name: string;
9
+ };
10
+ export default _default;
9
11
  //# sourceMappingURL=no-identity-map.d.ts.map
@@ -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;AA6HvC,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,CA4DvE,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;AAInE,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,wBA6DG"}
@@ -1,15 +1,10 @@
1
- import type { TSESLint } from "@typescript-eslint/utils";
2
- type MessageIds = "noInstanceMethodWithoutThis";
3
1
  export interface NoInstanceMethodsOptions {
4
2
  checkPrivate?: boolean;
5
3
  checkProtected?: boolean;
6
4
  checkPublic?: boolean;
7
5
  }
8
- interface RuleDocsWithRecommended extends TSESLint.RuleMetaDataDocs {
9
- readonly recommended?: boolean;
10
- }
11
- declare const noInstanceMethodsWithoutThis: TSESLint.RuleModuleWithMetaDocs<MessageIds, [
12
- NoInstanceMethodsOptions | undefined
13
- ], RuleDocsWithRecommended>;
14
- export default noInstanceMethodsWithoutThis;
6
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInstanceMethodWithoutThis", [NoInstanceMethodsOptions | undefined], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
7
+ name: string;
8
+ };
9
+ export default _default;
15
10
  //# sourceMappingURL=no-instance-methods-without-this.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-instance-methods-without-this.d.ts","sourceRoot":"","sources":["../../src/rules/no-instance-methods-without-this.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAEnE,KAAK,UAAU,GAAG,6BAA6B,CAAC;AAEhD,MAAM,WAAW,wBAAwB;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAID,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B;AAoED,QAAA,MAAM,4BAA4B,EAAE,QAAQ,CAAC,sBAAsB,CAClE,UAAU,EACV;IAAC,wBAAwB,GAAG,SAAS;CAAC,EACtC,uBAAuB,CAyDvB,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"no-instance-methods-without-this.d.ts","sourceRoot":"","sources":["../../src/rules/no-instance-methods-without-this.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,wBAAwB;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;;;;AAsED,wBAwDG"}
@@ -1,4 +1,5 @@
1
- import type { Rule } from "eslint";
2
- declare const noPrint: Rule.RuleModule;
3
- export default noPrint;
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useLog", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
2
+ name: string;
3
+ };
4
+ export default _default;
4
5
  //# sourceMappingURL=no-print.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-print.d.ts","sourceRoot":"","sources":["../../src/rules/no-print.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,QAAA,MAAM,OAAO,EAAE,IAAI,CAAC,UAsBnB,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"no-print.d.ts","sourceRoot":"","sources":["../../src/rules/no-print.ts"],"names":[],"mappings":";;;AAEA,wBAuBG"}
@@ -1,12 +1,12 @@
1
1
  import type { TSESLint } from "@typescript-eslint/utils";
2
- type MessageIds = "uselessSpring";
3
2
  export interface NoUselessUseSpringOptions {
4
3
  readonly springHooks?: ReadonlyArray<string>;
5
4
  readonly staticGlobalFactories?: ReadonlyArray<string>;
6
5
  readonly treatEmptyDepsAsViolation?: boolean;
7
6
  }
8
- type Options = [NoUselessUseSpringOptions?];
9
7
  export declare const DEFAULT_STATIC_GLOBAL_FACTORIES: ReadonlyArray<string>;
10
- declare const noUselessUseSpring: TSESLint.RuleModuleWithMetaDocs<MessageIds, Options>;
11
- export default noUselessUseSpring;
8
+ declare const _default: TSESLint.RuleModule<"uselessSpring", [Required<NoUselessUseSpringOptions>], unknown, TSESLint.RuleListener> & {
9
+ name: string;
10
+ };
11
+ export default _default;
12
12
  //# sourceMappingURL=no-useless-use-spring.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-useless-use-spring.d.ts","sourceRoot":"","sources":["../../src/rules/no-useless-use-spring.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAGnE,KAAK,UAAU,GAAG,eAAe,CAAC;AAElC,MAAM,WAAW,yBAAyB;IACzC,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,qBAAqB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CAC7C;AAED,KAAK,OAAO,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAC;AAQ5C,eAAO,MAAM,+BAA+B,EAAE,aAAa,CAAC,MAAM,CAyBjE,CAAC;AA6YF,QAAA,MAAM,kBAAkB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,CAwE5E,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"no-useless-use-spring.d.ts","sourceRoot":"","sources":["../../src/rules/no-useless-use-spring.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAMnE,MAAM,WAAW,yBAAyB;IACzC,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,qBAAqB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CAC7C;AAUD,eAAO,MAAM,+BAA+B,EAAE,aAAa,CAAC,MAAM,CAyBjE,CAAC;;;;AA4YF,wBAyEG"}
@@ -1,4 +1,5 @@
1
- import type { Rule } from "eslint";
2
- declare const noWarn: Rule.RuleModule;
3
- export default noWarn;
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useLog", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
2
+ name: string;
3
+ };
4
+ export default _default;
4
5
  //# sourceMappingURL=no-warn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-warn.d.ts","sourceRoot":"","sources":["../../src/rules/no-warn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,QAAA,MAAM,MAAM,EAAE,IAAI,CAAC,UAsBlB,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"no-warn.d.ts","sourceRoot":"","sources":["../../src/rules/no-warn.ts"],"names":[],"mappings":";;;AAEA,wBAuBG"}
@@ -1,6 +1,7 @@
1
- import type { TSESLint } from "@typescript-eslint/utils";
2
1
  type MessageIds = "unexpectedClassProperty" | "unexpectedAssignment";
3
2
  type Options = ["always" | "never"];
4
- declare const preferClassProperties: TSESLint.RuleModuleWithMetaDocs<MessageIds, Options>;
5
- export default preferClassProperties;
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
4
+ name: string;
5
+ };
6
+ export default _default;
6
7
  //# sourceMappingURL=prefer-class-properties.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"prefer-class-properties.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-class-properties.ts"],"names":[],"mappings":"AAIA,KAAK,UAAU,GAAG,yBAAyB,GAAG,sBAAsB,CAAC;AACrE,KAAK,OAAO,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC;;;;AA8DpC,wBAmEG"}
@@ -1,8 +1,8 @@
1
- import type { TSESLint } from "@typescript-eslint/utils";
2
- type MessageIds = "preferEarlyReturn";
3
1
  interface Options {
4
2
  readonly maximumStatements?: number;
5
3
  }
6
- declare const preferEarlyReturn: TSESLint.RuleModuleWithMetaDocs<MessageIds, [Options?]>;
7
- export default preferEarlyReturn;
4
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferEarlyReturn", [Options?], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
5
+ name: string;
6
+ };
7
+ export default _default;
8
8
  //# sourceMappingURL=prefer-early-return.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"prefer-early-return.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-early-return.ts"],"names":[],"mappings":"AAQA,UAAU,OAAO;IAChB,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACpC;;;;AA0BD,wBAwCG"}
@@ -1,5 +1,7 @@
1
1
  import type { TSESLint } from "@typescript-eslint/utils";
2
2
  type MessageIds = "mustUseConst" | "mustBeModuleScope";
3
- declare const preferModuleScopeConstants: TSESLint.RuleModuleWithMetaDocs<MessageIds>;
4
- export default preferModuleScopeConstants;
3
+ declare const _default: TSESLint.RuleModule<MessageIds, [], unknown, TSESLint.RuleListener> & {
4
+ name: string;
5
+ };
6
+ export default _default;
5
7
  //# sourceMappingURL=prefer-module-scope-constants.d.ts.map
@@ -1 +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"}
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;AAInE,KAAK,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC;;;;AAgBvD,wBAiDG"}
@@ -1,5 +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;
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"notPascalCase", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
2
+ name: string;
3
+ };
4
+ export default _default;
5
5
  //# sourceMappingURL=prefer-pascal-case-enums.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"prefer-pascal-case-enums.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-pascal-case-enums.ts"],"names":[],"mappings":";;;AAeA,wBAmCG"}
@@ -0,0 +1,8 @@
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+ declare const _default: TSESLint.RuleModule<"preferReplacement" | "skippedDueToConflict", [{
3
+ patterns: never[];
4
+ }], unknown, TSESLint.RuleListener> & {
5
+ name: string;
6
+ };
7
+ export default _default;
8
+ //# sourceMappingURL=prefer-pattern-replacements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-pattern-replacements.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-pattern-replacements.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;;;;;;AA4BzD,wBA+GG"}
@@ -1,8 +1,5 @@
1
- import type { TSESLint } from "@typescript-eslint/utils";
2
- interface RuleDocsWithRecommended extends TSESLint.RuleMetaDataDocs {
3
- readonly recommended?: boolean;
4
- }
5
- declare const preferSequenceOverloads: TSESLint.RuleModuleWithMetaDocs<"preferSingleOverload" | "preferTwoPointOverload", [
6
- ], RuleDocsWithRecommended>;
7
- export default preferSequenceOverloads;
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferSingleOverload" | "preferTwoPointOverload", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
2
+ name: string;
3
+ };
4
+ export default _default;
8
5
  //# sourceMappingURL=prefer-sequence-overloads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prefer-sequence-overloads.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-sequence-overloads.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAgEnE,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B;AAQD,QAAA,MAAM,uBAAuB,EAAE,QAAQ,CAAC,sBAAsB,CAC7D,sBAAsB,GAAG,wBAAwB,EACjD;CAAE,EACF,uBAAuB,CAuEvB,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"prefer-sequence-overloads.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-sequence-overloads.ts"],"names":[],"mappings":";;;AAkEA,wBA0EG"}
@@ -1,5 +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;
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"notSingular", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
2
+ name: string;
3
+ };
4
+ export default _default;
5
5
  //# sourceMappingURL=prefer-singular-enums.d.ts.map
@@ -1 +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
+ {"version":3,"file":"prefer-singular-enums.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-singular-enums.ts"],"names":[],"mappings":";;;AAwIA,wBA0BG"}
@@ -1,5 +1,6 @@
1
1
  import type { TSESLint } from "@typescript-eslint/utils";
2
- type MessageIds = "hooksStrictReturn";
3
- declare const reactHooksStrictReturn: TSESLint.RuleModuleWithMetaDocs<MessageIds>;
4
- export default reactHooksStrictReturn;
2
+ declare const _default: TSESLint.RuleModule<"hooksStrictReturn", [], unknown, TSESLint.RuleListener> & {
3
+ name: string;
4
+ };
5
+ export default _default;
5
6
  //# sourceMappingURL=react-hooks-strict-return.d.ts.map
@@ -1 +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"}
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;;;;AAiGnE,wBAgEG"}
@@ -1 +1 @@
1
- {"version":3,"file":"require-named-effect-functions.d.ts","sourceRoot":"","sources":["../../src/rules/require-named-effect-functions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACtB;AAQD,QAAA,MAAM,iBAAiB,+EAA6E,CAAC;AACrG,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CACjD;AAqMD,QAAA,MAAM,2BAA2B,EAAE,IAAI,CAAC,UAuMvC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"require-named-effect-functions.d.ts","sourceRoot":"","sources":["../../src/rules/require-named-effect-functions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACtB;AAQD,QAAA,MAAM,iBAAiB,+EAA6E,CAAC;AACrG,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CACjD;AAqMD,QAAA,MAAM,2BAA2B,EAAE,IAAI,CAAC,UAqMvC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -7,9 +7,8 @@ export interface ReactKeysOptions {
7
7
  }
8
8
  type Options = [ReactKeysOptions?];
9
9
  type MessageIds = "missingKey" | "rootComponentWithKey";
10
- interface RuleDocsWithRecommended extends TSESLint.RuleMetaDataDocs {
11
- readonly recommended?: boolean;
12
- }
13
- declare const requireReactComponentKeys: TSESLint.RuleModuleWithMetaDocs<MessageIds, Options, RuleDocsWithRecommended>;
14
- export default requireReactComponentKeys;
10
+ declare const _default: TSESLint.RuleModule<MessageIds, Options, unknown, TSESLint.RuleListener> & {
11
+ name: string;
12
+ };
13
+ export default _default;
15
14
  //# sourceMappingURL=require-react-component-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"require-react-component-keys.d.ts","sourceRoot":"","sources":["../../src/rules/require-react-component-keys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAClD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,KAAK,OAAO,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACnC,KAAK,UAAU,GAAG,YAAY,GAAG,sBAAsB,CAAC;AAyCxD,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B;AA+VD,QAAA,MAAM,yBAAyB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,uBAAuB,CAgH5G,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"require-react-component-keys.d.ts","sourceRoot":"","sources":["../../src/rules/require-react-component-keys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAClD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,KAAK,OAAO,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACnC,KAAK,UAAU,GAAG,YAAY,GAAG,sBAAsB,CAAC;;;;AAsYxD,wBAmHG"}
@@ -0,0 +1,11 @@
1
+ export type EnvironmentMode = "roblox-ts" | "standard";
2
+ export interface RequireReactDisplayNamesOptions {
3
+ readonly environment?: EnvironmentMode;
4
+ }
5
+ type Options = [RequireReactDisplayNamesOptions?];
6
+ type MessageIds = "directContextExport" | "directMemoExport" | "missingContextDisplayName" | "missingMemoDisplayName";
7
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
8
+ name: string;
9
+ };
10
+ export default _default;
11
+ //# sourceMappingURL=require-react-display-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"require-react-display-names.d.ts","sourceRoot":"","sources":["../../src/rules/require-react-display-names.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,UAAU,CAAC;AAEvD,MAAM,WAAW,+BAA+B;IAC/C,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAC;CACvC;AAED,KAAK,OAAO,GAAG,CAAC,+BAA+B,CAAC,CAAC,CAAC;AAClD,KAAK,UAAU,GAAG,qBAAqB,GAAG,kBAAkB,GAAG,2BAA2B,GAAG,wBAAwB,CAAC;;;;AAqFtH,wBA8LG"}
@@ -1,9 +1,5 @@
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;
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noReachingIntoComponent", [{}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
2
+ name: string;
3
+ };
4
+ export default _default;
9
5
  //# sourceMappingURL=strict-component-boundaries.d.ts.map
@@ -1 +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,CA8EtF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"strict-component-boundaries.d.ts","sourceRoot":"","sources":["../../src/rules/strict-component-boundaries.ts"],"names":[],"mappings":";;;AAuCA,wBA+EG"}
@@ -7,8 +7,10 @@ import type { NoUselessUseSpringOptions } from "../rules/no-useless-use-spring";
7
7
  import type { EffectFunctionOptions, HookConfiguration } from "../rules/require-named-effect-functions";
8
8
  import type { PairConfiguration, RequirePairedCallsOptions } from "../rules/require-paired-calls";
9
9
  import type { ReactKeysOptions } from "../rules/require-react-component-keys";
10
+ import type { RequireReactDisplayNamesOptions } from "../rules/require-react-display-names";
10
11
  import type { UseExhaustiveDependenciesOptions } from "../rules/use-exhaustive-dependencies";
11
12
  import type { UseHookAtTopLevelOptions } from "../rules/use-hook-at-top-level";
13
+ import type { Pattern, PreferPatternReplacementsOptions } from "./pattern-replacement";
12
14
  /**
13
15
  * Creates a pair configuration for require-paired-calls rule
14
16
  * @param opener - The opener function name
@@ -94,4 +96,16 @@ export declare function createUseHookAtTopLevelOptions(options?: Partial<UseHook
94
96
  * @returns The full options
95
97
  */
96
98
  export declare function createNoUselessUseSpringOptions(options?: Partial<NoUselessUseSpringOptions>): NoUselessUseSpringOptions;
99
+ /**
100
+ * Creates options for prefer-pattern-replacements rule
101
+ * @param patterns - Array of pattern configurations
102
+ * @returns The full options
103
+ */
104
+ export declare function createPreferPatternReplacementsOptions(patterns?: ReadonlyArray<Pattern>): PreferPatternReplacementsOptions;
105
+ /**
106
+ * Creates options for require-react-display-names rule
107
+ * @param options - Partial configuration options
108
+ * @returns The full options
109
+ */
110
+ export declare function createRequireReactDisplayNamesOptions(options?: Partial<RequireReactDisplayNamesOptions>): RequireReactDisplayNamesOptions;
97
111
  //# sourceMappingURL=configure-utilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file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,wBAAgB,qCAAqC,CACpD,OAAO,GAAE,OAAO,CAAC,+BAA+B,CAAM,GACpD,+BAA+B,CAEjC"}
@@ -0,0 +1,9 @@
1
+ import { ESLintUtils } from "@typescript-eslint/utils";
2
+ /**
3
+ * Creates an ESLint rule with automatic documentation URL generation.
4
+ * URLs point to: https://github.com/howmanysmall/eslint-cease-nonsense-rules/blob/main/docs/rules/{rule-name}.md
5
+ */
6
+ export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
7
+ name: string;
8
+ };
9
+ //# sourceMappingURL=create-rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-rule.d.ts","sourceRoot":"","sources":["../../src/utilities/create-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,UAAU;;CAEtB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { TSESTree } from "@typescript-eslint/types";
2
+ /**
3
+ * Normalize -0 to 0 for consistent comparisons
4
+ *
5
+ * @param num - The number to normalize
6
+ * @returns The normalized number (converts -0 to 0)
7
+ */
8
+ export declare function normalizeZero(num: number): number;
9
+ /**
10
+ * Unwrap TypeScript wrapper nodes
11
+ *
12
+ * @param node - The expression node to unwrap
13
+ * @returns The unwrapped expression
14
+ */
15
+ export declare function unwrap(node: TSESTree.Expression): TSESTree.Expression;
16
+ /**
17
+ * Evaluate a constant expression at lint time.
18
+ * Returns undefined if the expression cannot be evaluated to a constant.
19
+ *
20
+ * @param node - The expression node to evaluate
21
+ * @returns The evaluated constant number, or undefined if not a constant
22
+ */
23
+ export declare function evaluateConstant(node: TSESTree.Expression): number | undefined;
24
+ //# sourceMappingURL=constant-folder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constant-folder.d.ts","sourceRoot":"","sources":["../../../src/utilities/pattern-replacement/constant-folder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CASrE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,MAAM,GAAG,SAAS,CAwD9E"}
@@ -0,0 +1,7 @@
1
+ export type { PatternIndex } from "./pattern-matcher";
2
+ export { buildPatternIndex, canSafelySubstitute, evaluateConditions, matchParameters, resolveCallee, } from "./pattern-matcher";
3
+ export { parsePattern } from "./pattern-parser";
4
+ export type { ParsedPattern, Pattern, PreferPatternReplacementsOptions } from "./pattern-types";
5
+ export { pattern } from "./pattern-types";
6
+ export { generateReplacement, getReplacementIdentifier } from "./replacement-generator";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utilities/pattern-replacement/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EACN,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,aAAa,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AAEhG,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,62 @@
1
+ import type { TSESTree } from "@typescript-eslint/types";
2
+ import type { SourceCode } from "@typescript-eslint/utils/ts-eslint";
3
+ import type { CapturedValue, ParsedParameter, ParsedPattern, WhenCondition } from "./pattern-types";
4
+ export type PatternIndex = ReadonlyMap<string, ReadonlyArray<ParsedPattern>>;
5
+ type ResolvedCallee = {
6
+ readonly kind: "constructor";
7
+ readonly typeName: string;
8
+ } | {
9
+ readonly kind: "staticMethod";
10
+ readonly typeName: string;
11
+ readonly methodName: string;
12
+ } | {
13
+ readonly kind: "unknown";
14
+ };
15
+ /**
16
+ * Build an index for O(1) pattern lookup
17
+ *
18
+ * @param patterns - Array of parsed patterns to index
19
+ * @returns Map of pattern index keys to pattern arrays
20
+ */
21
+ export declare function buildPatternIndex(patterns: ReadonlyArray<ParsedPattern>): PatternIndex;
22
+ /**
23
+ * Resolve the callee of a call/new expression
24
+ *
25
+ * @param node - Call or new expression node
26
+ * @returns Resolved callee information
27
+ */
28
+ export declare function resolveCallee(node: TSESTree.CallExpression | TSESTree.NewExpression): ResolvedCallee;
29
+ /**
30
+ * Capture an argument value for matching
31
+ *
32
+ * @param node - Expression node to capture
33
+ * @param sourceCode - ESLint source code object
34
+ * @returns Captured value with metadata
35
+ */
36
+ export declare function captureParameter(node: TSESTree.Expression, sourceCode: SourceCode): CapturedValue;
37
+ /**
38
+ * Match arguments against a pattern
39
+ *
40
+ * @param patterns - Pattern arguments to match against
41
+ * @param parameters - Actual expression arguments
42
+ * @param sourceCode - ESLint source code object
43
+ * @returns Map of captures if match succeeds, undefined otherwise
44
+ */
45
+ export declare function matchParameters(patterns: ReadonlyArray<ParsedParameter>, parameters: ReadonlyArray<TSESTree.Expression>, sourceCode: SourceCode): Map<string, CapturedValue> | undefined;
46
+ /**
47
+ * Evaluate when conditions against captured values
48
+ *
49
+ * @param conditions - Map of variable names to conditions
50
+ * @param captures - Map of captured values
51
+ * @returns True if all conditions pass
52
+ */
53
+ export declare function evaluateConditions(conditions: ReadonlyMap<string, WhenCondition>, captures: ReadonlyMap<string, CapturedValue>): boolean;
54
+ /**
55
+ * Check if captures can be safely substituted
56
+ *
57
+ * @param captures - Map of captured values
58
+ * @returns True if all captures are simple (not complex expressions)
59
+ */
60
+ export declare function canSafelySubstitute(captures: ReadonlyMap<string, CapturedValue>): boolean;
61
+ export {};
62
+ //# sourceMappingURL=pattern-matcher.d.ts.map