@pobammer-ts/eslint-cease-nonsense-rules 1.11.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 (56) hide show
  1. package/README.md +58 -0
  2. package/dist/build-metadata.json +3 -3
  3. package/dist/index.d.ts +7 -6
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +605 -250
  6. package/dist/index.js.map +45 -42
  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 +6 -11
  38. package/dist/rules/prefer-pattern-replacements.d.ts.map +1 -1
  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 +7 -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/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"}
@@ -1,13 +1,8 @@
1
1
  import type { TSESLint } from "@typescript-eslint/utils";
2
- import type { Pattern } from "../utilities/pattern-replacement";
3
- interface PreferPatternReplacementsOptions {
4
- readonly patterns: ReadonlyArray<Pattern>;
5
- }
6
- type Options = [PreferPatternReplacementsOptions?];
7
- type MessageIds = "preferReplacement";
8
- interface RuleDocsWithRecommended extends TSESLint.RuleMetaDataDocs {
9
- readonly recommended: boolean;
10
- }
11
- declare const preferPatternReplacements: TSESLint.RuleModuleWithMetaDocs<MessageIds, Options, RuleDocsWithRecommended>;
12
- export default preferPatternReplacements;
2
+ declare const _default: TSESLint.RuleModule<"preferReplacement" | "skippedDueToConflict", [{
3
+ patterns: never[];
4
+ }], unknown, TSESLint.RuleListener> & {
5
+ name: string;
6
+ };
7
+ export default _default;
13
8
  //# sourceMappingURL=prefer-pattern-replacements.d.ts.map
@@ -1 +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;AAGzD,OAAO,KAAK,EAAiB,OAAO,EAAgB,MAAM,kCAAkC,CAAC;AAY7F,UAAU,gCAAgC;IACzC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAC1C;AAED,KAAK,OAAO,GAAG,CAAC,gCAAgC,CAAC,CAAC,CAAC;AACnD,KAAK,UAAU,GAAG,mBAAmB,CAAC;AAEtC,UAAU,uBAAwB,SAAQ,QAAQ,CAAC,gBAAgB;IAClE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC9B;AAcD,QAAA,MAAM,yBAAyB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,uBAAuB,CAsF5G,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
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,6 +7,7 @@ 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";
12
13
  import type { Pattern, PreferPatternReplacementsOptions } from "./pattern-replacement";
@@ -101,4 +102,10 @@ export declare function createNoUselessUseSpringOptions(options?: Partial<NoUsel
101
102
  * @returns The full options
102
103
  */
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;
104
111
  //# sourceMappingURL=configure-utilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configure-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/configure-utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACxG,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAClG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AAEvF;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,EACtC,OAAO,GAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,CAAC,CAAM,GACjE,iBAAi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CAAgC,CAAM,GACrD,gCAAgC,CAOlC;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC7C,OAAO,GAAE,OAAO,CAAC,wBAAwB,CAAM,GAC7C,wBAAwB,CAO1B;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,OAAO,CAAC,yBAAyB,CAAM,GAC9C,yBAAyB,CAO3B;AAED;;;;GAIG;AACH,wBAAgB,sCAAsC,CACrD,QAAQ,GAAE,aAAa,CAAC,OAAO,CAAM,GACnC,gCAAgC,CAElC;AAED;;;;GAIG;AACH,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"}
package/package.json CHANGED
@@ -3,9 +3,9 @@
3
3
  "dependencies": {
4
4
  "arkregex": "^0.0.5",
5
5
  "fast-diff": "^1.3.0",
6
- "oxc-parser": "^0.105.0",
7
- "oxc-resolver": "^11.16.0",
8
- "typebox": "^1.0.64"
6
+ "oxc-parser": "^0.106.0",
7
+ "oxc-resolver": "^11.16.2",
8
+ "typebox": "^1.0.71"
9
9
  },
10
10
  "description": "A bunch of lints to prevent idiot mistakes I encounter with frequency.",
11
11
  "devDependencies": {
@@ -13,29 +13,29 @@
13
13
  "@jsr/cliffy__command": "^1.0.0-rc.8",
14
14
  "@mitata/counters": "^0.0.8",
15
15
  "@octokit/rest": "^22.0.1",
16
- "@opencode-ai/plugin": "^1.0.186",
16
+ "@opencode-ai/plugin": "^1.0.221",
17
17
  "@toon-format/toon": "^2.1.0",
18
18
  "@total-typescript/ts-reset": "^0.6.1",
19
19
  "@types/bun": "^1.3.5",
20
20
  "@types/estree": "^1.0.8",
21
21
  "@types/node": "^20.14.11",
22
- "@typescript-eslint/parser": "^8.50.1",
23
- "@typescript-eslint/scope-manager": "^8.50.1",
24
- "@typescript-eslint/types": "^8.50.1",
25
- "@typescript-eslint/utils": "^8.50.1",
26
- "@typescript/native-preview": "7.0.0-dev.20251222.1",
27
- "arkenv": "^0.7.6",
22
+ "@typescript-eslint/parser": "^8.51.0",
23
+ "@typescript-eslint/scope-manager": "^8.51.0",
24
+ "@typescript-eslint/types": "^8.51.0",
25
+ "@typescript-eslint/utils": "^8.51.0",
26
+ "@typescript/native-preview": "7.0.0-dev.20251231.1",
27
+ "arkenv": "^0.8.1",
28
28
  "arktype": "^2.1.29",
29
29
  "bumpp": "^10.3.2",
30
30
  "confbox": "^0.2.2",
31
31
  "consola": "^3.4.2",
32
32
  "eslint": "9.39.2",
33
33
  "fast-xml-parser": "^5.3.2",
34
- "knip": "^5.76.3",
34
+ "knip": "^5.78.0",
35
35
  "lint-staged": "^16.2.7",
36
36
  "mitata": "^1.0.34",
37
- "oxfmt": "^0.20.0",
38
- "oxlint": "^1.35.0",
37
+ "oxfmt": "^0.21.0",
38
+ "oxlint": "^1.36.0",
39
39
  "oxlint-tsgolint": "^0.10.0",
40
40
  "picocolors": "^1.1.1",
41
41
  "pretty-bytes": "^7.1.0",
@@ -59,14 +59,14 @@
59
59
  "files": ["dist"],
60
60
  "license": "MIT",
61
61
  "lint-staged": {
62
- "*": ["bun run lint:fix"]
62
+ "*": ["bun run lint:fix", "bun x --bun biome check . --fix"]
63
63
  },
64
64
  "main": "./dist/index.js",
65
65
  "name": "@pobammer-ts/eslint-cease-nonsense-rules",
66
66
  "packageManager": "bun@1.3.5",
67
67
  "peerDependencies": {
68
- "@typescript-eslint/parser": "^8.50.1",
69
- "@typescript-eslint/utils": "^8.50.1",
68
+ "@typescript-eslint/parser": "^8.51.0",
69
+ "@typescript-eslint/utils": "^8.51.0",
70
70
  "eslint": "^9.39.2",
71
71
  "oxfmt": ">0.19.0"
72
72
  },
@@ -105,5 +105,5 @@
105
105
  },
106
106
  "type": "module",
107
107
  "types": "./dist/index.d.ts",
108
- "version": "1.11.0"
108
+ "version": "1.12.0"
109
109
  }