eslint-plugin-react-features 1.2.4 → 1.2.6

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 (129) hide show
  1. package/package.json +21 -19
  2. package/src/index.d.ts +15 -2074
  3. package/src/index.js +1 -36
  4. package/src/oxlint.d.ts +17 -20
  5. package/src/oxlint.js +0 -18
  6. package/src/rules/component-api/no-arbitrary-token-class.js +0 -11
  7. package/src/rules/component-api/no-default-test-id.js +0 -7
  8. package/src/rules/component-api/no-inline-style.js +0 -6
  9. package/src/rules/component-api/no-is-prefix-prop.js +0 -7
  10. package/src/rules/component-api/no-kind-prop-discriminator.js +0 -5
  11. package/src/rules/component-api/no-raw-color-literal.js +0 -8
  12. package/src/rules/component-api/no-wrapper-sub-component.js +0 -8
  13. package/src/rules/component-api/require-data-slot.js +0 -5
  14. package/src/rules/migration/react-class-to-hooks.js +1 -26
  15. package/src/rules/performance/no-unnecessary-rerenders.js +1 -32
  16. package/src/rules/performance/react-no-inline-functions.js +2 -29
  17. package/src/rules/performance/react-render-optimization.js +1 -40
  18. package/src/rules/react/checked-requires-onchange-or-readonly.js +0 -7
  19. package/src/rules/react/default-props-match-prop-types.js +2 -23
  20. package/src/rules/react/display-name.js +1 -33
  21. package/src/rules/react/hooks-exhaustive-deps.js +1 -90
  22. package/src/rules/react/jsx-handler-names.js +0 -8
  23. package/src/rules/react/jsx-key.js +0 -84
  24. package/src/rules/react/jsx-max-depth.js +0 -10
  25. package/src/rules/react/jsx-no-bind.js +0 -10
  26. package/src/rules/react/jsx-no-duplicate-props.js +0 -5
  27. package/src/rules/react/jsx-no-literals.js +0 -5
  28. package/src/rules/react/jsx-no-script-url.js +0 -16
  29. package/src/rules/react/jsx-no-target-blank.js +1 -20
  30. package/src/rules/react/no-access-state-in-setstate.js +0 -13
  31. package/src/rules/react/no-adjacent-inline-elements.js +0 -10
  32. package/src/rules/react/no-arrow-function-lifecycle.js +0 -7
  33. package/src/rules/react/no-children-prop.js +0 -7
  34. package/src/rules/react/no-danger-with-children.js +0 -13
  35. package/src/rules/react/no-danger.js +0 -5
  36. package/src/rules/react/no-deprecated.js +0 -11
  37. package/src/rules/react/no-did-mount-set-state.js +0 -6
  38. package/src/rules/react/no-did-update-set-state.js +0 -10
  39. package/src/rules/react/no-direct-mutation-state.js +3 -29
  40. package/src/rules/react/no-find-dom-node.js +0 -7
  41. package/src/rules/react/no-invalid-html-attribute.js +36 -41
  42. package/src/rules/react/no-is-mounted.js +0 -7
  43. package/src/rules/react/no-multi-comp.js +0 -14
  44. package/src/rules/react/no-namespace.js +0 -5
  45. package/src/rules/react/no-object-type-as-default-prop.js +0 -9
  46. package/src/rules/react/no-redundant-should-component-update.js +0 -6
  47. package/src/rules/react/no-render-return-value.js +1 -9
  48. package/src/rules/react/no-set-state.js +0 -6
  49. package/src/rules/react/no-string-refs.js +0 -8
  50. package/src/rules/react/no-this-in-sfc.js +0 -11
  51. package/src/rules/react/no-typos.js +1 -9
  52. package/src/rules/react/no-unescaped-entities.js +0 -7
  53. package/src/rules/react/no-unknown-property.js +0 -13
  54. package/src/rules/react/no-unsafe.js +0 -7
  55. package/src/rules/react/prefer-es6-class.js +0 -7
  56. package/src/rules/react/prefer-stateless-function.js +0 -13
  57. package/src/rules/react/prop-types.js +0 -12
  58. package/src/rules/react/react-in-jsx-scope.js +0 -9
  59. package/src/rules/react/require-default-props.js +0 -19
  60. package/src/rules/react/require-optimization.js +6 -44
  61. package/src/rules/react/require-render-return.js +0 -9
  62. package/src/rules/react/required-attributes.js +0 -34
  63. package/src/rules/react/sort-comp.js +1 -19
  64. package/src/rules/react/state-in-constructor.js +0 -11
  65. package/src/rules/react/static-property-placement.js +1 -21
  66. package/src/rules/react/void-dom-elements-no-children.js +0 -7
  67. package/src/types/index.js +0 -5
  68. package/CHANGELOG.md +0 -236
  69. package/src/rules/component-api/no-arbitrary-token-class.d.ts +0 -17
  70. package/src/rules/component-api/no-default-test-id.d.ts +0 -15
  71. package/src/rules/component-api/no-inline-style.d.ts +0 -15
  72. package/src/rules/component-api/no-is-prefix-prop.d.ts +0 -17
  73. package/src/rules/component-api/no-kind-prop-discriminator.d.ts +0 -25
  74. package/src/rules/component-api/no-raw-color-literal.d.ts +0 -16
  75. package/src/rules/component-api/no-wrapper-sub-component.d.ts +0 -23
  76. package/src/rules/component-api/require-data-slot.d.ts +0 -15
  77. package/src/rules/migration/react-class-to-hooks.d.ts +0 -22
  78. package/src/rules/performance/no-unnecessary-rerenders.d.ts +0 -26
  79. package/src/rules/performance/react-no-inline-functions.d.ts +0 -24
  80. package/src/rules/performance/react-render-optimization.d.ts +0 -31
  81. package/src/rules/react/checked-requires-onchange-or-readonly.d.ts +0 -16
  82. package/src/rules/react/default-props-match-prop-types.d.ts +0 -13
  83. package/src/rules/react/display-name.d.ts +0 -13
  84. package/src/rules/react/hooks-exhaustive-deps.d.ts +0 -25
  85. package/src/rules/react/jsx-handler-names.d.ts +0 -13
  86. package/src/rules/react/jsx-key.d.ts +0 -20
  87. package/src/rules/react/jsx-max-depth.d.ts +0 -19
  88. package/src/rules/react/jsx-no-bind.d.ts +0 -13
  89. package/src/rules/react/jsx-no-duplicate-props.d.ts +0 -21
  90. package/src/rules/react/jsx-no-literals.d.ts +0 -20
  91. package/src/rules/react/jsx-no-script-url.d.ts +0 -25
  92. package/src/rules/react/jsx-no-target-blank.d.ts +0 -26
  93. package/src/rules/react/no-access-state-in-setstate.d.ts +0 -13
  94. package/src/rules/react/no-adjacent-inline-elements.d.ts +0 -13
  95. package/src/rules/react/no-arrow-function-lifecycle.d.ts +0 -13
  96. package/src/rules/react/no-children-prop.d.ts +0 -13
  97. package/src/rules/react/no-danger-with-children.d.ts +0 -16
  98. package/src/rules/react/no-danger.d.ts +0 -13
  99. package/src/rules/react/no-deprecated.d.ts +0 -16
  100. package/src/rules/react/no-did-mount-set-state.d.ts +0 -13
  101. package/src/rules/react/no-did-update-set-state.d.ts +0 -19
  102. package/src/rules/react/no-direct-mutation-state.d.ts +0 -20
  103. package/src/rules/react/no-find-dom-node.d.ts +0 -15
  104. package/src/rules/react/no-invalid-html-attribute.d.ts +0 -13
  105. package/src/rules/react/no-is-mounted.d.ts +0 -13
  106. package/src/rules/react/no-multi-comp.d.ts +0 -18
  107. package/src/rules/react/no-namespace.d.ts +0 -13
  108. package/src/rules/react/no-object-type-as-default-prop.d.ts +0 -13
  109. package/src/rules/react/no-redundant-should-component-update.d.ts +0 -13
  110. package/src/rules/react/no-render-return-value.d.ts +0 -13
  111. package/src/rules/react/no-set-state.d.ts +0 -13
  112. package/src/rules/react/no-string-refs.d.ts +0 -13
  113. package/src/rules/react/no-this-in-sfc.d.ts +0 -13
  114. package/src/rules/react/no-typos.d.ts +0 -13
  115. package/src/rules/react/no-unescaped-entities.d.ts +0 -13
  116. package/src/rules/react/no-unknown-property.d.ts +0 -13
  117. package/src/rules/react/no-unsafe.d.ts +0 -20
  118. package/src/rules/react/prefer-es6-class.d.ts +0 -13
  119. package/src/rules/react/prefer-stateless-function.d.ts +0 -16
  120. package/src/rules/react/prop-types.d.ts +0 -18
  121. package/src/rules/react/react-in-jsx-scope.d.ts +0 -13
  122. package/src/rules/react/require-default-props.d.ts +0 -16
  123. package/src/rules/react/require-optimization.d.ts +0 -26
  124. package/src/rules/react/require-render-return.d.ts +0 -13
  125. package/src/rules/react/required-attributes.d.ts +0 -28
  126. package/src/rules/react/sort-comp.d.ts +0 -17
  127. package/src/rules/react/state-in-constructor.d.ts +0 -13
  128. package/src/rules/react/static-property-placement.d.ts +0 -20
  129. package/src/rules/react/void-dom-elements-no-children.d.ts +0 -15
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: hooks-exhaustive-deps
8
- * LLM-optimized wrapper for React hooks dependency array checking
9
- *
10
- * This rule detects missing or extra dependencies in React hooks like
11
- * useEffect, useCallback, useMemo, and useLayoutEffect.
12
- */
13
- import type { TSESLint } from '@interlace/eslint-devkit';
14
- type MessageIds = 'missingDep' | 'extraDep' | 'unnecessaryDep' | 'suggestAddDep' | 'suggestRemoveDep' | 'depsNotArrayLiteral';
15
- export interface Options {
16
- /** Additional hooks to check (e.g., custom hooks using useEffect internally) */
17
- additionalHooks?: string;
18
- /** Enable stale closure detection warnings */
19
- enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
20
- }
21
- type RuleOptions = [Options?];
22
- export declare const hooksExhaustiveDeps: TSESLint.RuleModule<MessageIds, RuleOptions, unknown, TSESLint.RuleListener> & {
23
- name: string;
24
- };
25
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: jsx-handler-names
8
- * Enforce event handler naming conventions
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const jsxHandlerNames: TSESLint.RuleModule<"jsxHandlerNames", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: jsx-key
8
- * Detect missing or incorrect React keys (requires deep reconciliation understanding)
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- type MessageIds = 'missingKey' | 'invalidKey' | 'duplicateKey' | 'unstableKey' | 'suggestKey';
12
- export interface Options {
13
- /** Warn about potentially unstable keys */
14
- warnUnstableKeys?: boolean;
15
- }
16
- type RuleOptions = [Options?];
17
- export declare const jsxKey: TSESLint.RuleModule<MessageIds, RuleOptions, unknown, TSESLint.RuleListener> & {
18
- name: string;
19
- };
20
- export {};
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: jsx-max-depth
8
- * Limit JSX nesting depth
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export interface Options {
12
- /** Maximum allowed depth of JSX nesting */
13
- max?: number;
14
- }
15
- type RuleOptions = [Options?];
16
- export declare const jsxMaxDepth: TSESLint.RuleModule<"jsxMaxDepth", RuleOptions, unknown, TSESLint.RuleListener> & {
17
- name: string;
18
- };
19
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: jsx-no-bind
8
- * Prevent .bind() in JSX (performance issue)
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const jsxNoBind: TSESLint.RuleModule<"jsxNoBind", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,21 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: jsx-no-duplicate-props
8
- * Prevent duplicate props in JSX elements
9
- *
10
- * Bug Prevention: Duplicate props cause silent overwrites
11
- * @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
12
- */
13
- import type { TSESLint } from '@interlace/eslint-devkit';
14
- type Options = {
15
- ignoreCase?: boolean;
16
- };
17
- type RuleOptions = [Options?];
18
- export declare const jsxNoDuplicateProps: TSESLint.RuleModule<"duplicateProp", RuleOptions, unknown, TSESLint.RuleListener> & {
19
- name: string;
20
- };
21
- export {};
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: jsx-no-literals
8
- * Prevent string literals in JSX
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export interface Options {
12
- noStrings?: boolean;
13
- allowedStrings?: string[];
14
- ignoreProps?: boolean;
15
- }
16
- type RuleOptions = [Options?];
17
- export declare const jsxNoLiterals: TSESLint.RuleModule<"jsxNoLiterals", RuleOptions, unknown, TSESLint.RuleListener> & {
18
- name: string;
19
- };
20
- export {};
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: jsx-no-script-url
8
- * Forbid javascript: URLs in JSX
9
- *
10
- * Security: Prevents XSS attacks through javascript: protocol (CWE-79)
11
- * @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md
12
- */
13
- import type { TSESLint } from '@interlace/eslint-devkit';
14
- type ComponentConfig = {
15
- name: string;
16
- props: string[];
17
- };
18
- type Options = {
19
- includeFromSettings?: boolean;
20
- };
21
- type RuleOptions = [ComponentConfig[]?, Options?];
22
- export declare const jsxNoScriptUrl: TSESLint.RuleModule<"noScriptUrl", RuleOptions, unknown, TSESLint.RuleListener> & {
23
- name: string;
24
- };
25
- export {};
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: jsx-no-target-blank
8
- * Enforce rel="noopener noreferrer" on anchor tags with target="_blank"
9
- *
10
- * Security: Prevents reverse tabnabbing attacks (CWE-1022)
11
- * @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
12
- */
13
- import type { TSESLint } from '@interlace/eslint-devkit';
14
- type MessageIds = 'noTargetBlank' | 'noRelWithoutNoopener';
15
- type Options = {
16
- allowReferrer?: boolean;
17
- enforceDynamicLinks?: 'always' | 'never';
18
- warnOnSpreadAttributes?: boolean;
19
- links?: boolean;
20
- forms?: boolean;
21
- };
22
- type RuleOptions = [Options?];
23
- export declare const jsxNoTargetBlank: TSESLint.RuleModule<MessageIds, RuleOptions, unknown, TSESLint.RuleListener> & {
24
- name: string;
25
- };
26
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-access-state-in-setstate
8
- * Disallow accessing this.state inside setState calls
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noAccessStateInSetState: TSESLint.RuleModule<"noAccessStateInSetState", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-adjacent-inline-elements
8
- * Prevent adjacent inline elements
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noAdjacentInlineElements: TSESLint.RuleModule<"noAdjacentInlineElements", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-arrow-function-lifecycle
8
- * Prevent arrow functions in lifecycle methods
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noArrowFunctionLifecycle: TSESLint.RuleModule<"noArrowFunctionLifecycle", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-children-prop
8
- * Disallow passing children as props (dangerous pattern)
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noChildrenProp: TSESLint.RuleModule<"noChildrenProp", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-danger-with-children
8
- * Prevent using both children and dangerouslySetInnerHTML
9
- *
10
- * Bug Prevention: React will throw an error when both are present
11
- * @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md
12
- */
13
- import type { TSESLint } from '@interlace/eslint-devkit';
14
- export declare const noDangerWithChildren: TSESLint.RuleModule<"dangerWithChildren", [], unknown, TSESLint.RuleListener> & {
15
- name: string;
16
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-danger
8
- * Disallow dangerouslySetInnerHTML usage (XSS prevention)
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noDanger: TSESLint.RuleModule<"noDanger", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-deprecated
8
- * Prevent using deprecated React methods
9
- *
10
- * Maintenance: Helps with React upgrades and migration
11
- * @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md
12
- */
13
- import type { TSESLint } from '@interlace/eslint-devkit';
14
- export declare const noDeprecated: TSESLint.RuleModule<"deprecated", [], unknown, TSESLint.RuleListener> & {
15
- name: string;
16
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-did-mount-set-state
8
- * Prevent setState in componentDidMount
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noDidMountSetState: TSESLint.RuleModule<"noDidMountSetState", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-did-update-set-state
8
- * Prevent setState in componentDidUpdate
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export interface Options {
12
- /** Allow setState in callback functions */
13
- allowInCallback?: boolean;
14
- }
15
- type RuleOptions = [Options?];
16
- export declare const noDidUpdateSetState: TSESLint.RuleModule<"noDidUpdateSetState", RuleOptions, unknown, TSESLint.RuleListener> & {
17
- name: string;
18
- };
19
- export {};
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-direct-mutation-state
8
- * Prevent direct mutation of this.state (requires deep React state understanding)
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- type MessageIds = 'noDirectMutationState' | 'suggestSetState' | 'suggestFunctionalUpdate';
12
- export interface Options {
13
- /** Allow mutations in lifecycle methods */
14
- allowInLifecycleMethods?: boolean;
15
- }
16
- type RuleOptions = [Options?];
17
- export declare const noDirectMutationState: TSESLint.RuleModule<MessageIds, RuleOptions, unknown, TSESLint.RuleListener> & {
18
- name: string;
19
- };
20
- export {};
@@ -1,15 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-find-dom-node
8
- * Prevent using findDOMNode (deprecated since React 16.3)
9
- *
10
- * @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md
11
- */
12
- import type { TSESLint } from '@interlace/eslint-devkit';
13
- export declare const noFindDomNode: TSESLint.RuleModule<"noFindDOMNode", [], unknown, TSESLint.RuleListener> & {
14
- name: string;
15
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-invalid-html-attribute
8
- * Prevent invalid HTML attributes
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noInvalidHtmlAttribute: TSESLint.RuleModule<"noInvalidHtmlAttribute", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-is-mounted
8
- * Prevent isMounted anti-pattern
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noIsMounted: TSESLint.RuleModule<"noIsMounted", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-multi-comp
8
- * Prevent multiple components per file
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export interface Options {
12
- ignoreStateless?: boolean;
13
- }
14
- type RuleOptions = [Options?];
15
- export declare const noMultiComp: TSESLint.RuleModule<"noMultiComp", RuleOptions, unknown, TSESLint.RuleListener> & {
16
- name: string;
17
- };
18
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-namespace
8
- * Prevent namespace imports
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noNamespace: TSESLint.RuleModule<"noNamespace", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-object-type-as-default-prop
8
- * Prevent object types as default props
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noObjectTypeAsDefaultProp: TSESLint.RuleModule<"noObjectTypeAsDefaultProp", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-redundant-should-component-update
8
- * Prevent redundant shouldComponentUpdate
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noRedundantShouldComponentUpdate: TSESLint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-render-return-value
8
- * Prevent using render return value
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noRenderReturnValue: TSESLint.RuleModule<"noRenderReturnValue", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-set-state
8
- * Disallow usage of setState (encourage functional components with hooks)
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noSetState: TSESLint.RuleModule<"noSetState", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-string-refs
8
- * Disallow string refs (deprecated pattern)
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noStringRefs: TSESLint.RuleModule<"noStringRefs", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-this-in-sfc
8
- * Disallow this from being used in stateless functional components
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noThisInSfc: TSESLint.RuleModule<"noThisInSfc", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-typos
8
- * Catch common typos
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noTypos: TSESLint.RuleModule<"noTypos", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-unescaped-entities
8
- * Prevent unescaped entities
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noUnescapedEntities: TSESLint.RuleModule<"noUnescapedEntities", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-unknown-property
8
- * Disallow unknown DOM properties in JSX
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const noUnknownProperty: TSESLint.RuleModule<"noUnknownProperty", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: no-unsafe
8
- * Prevent usage of unsafe lifecycle methods
9
- *
10
- * @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unsafe.md
11
- */
12
- import type { TSESLint } from '@interlace/eslint-devkit';
13
- type Options = {
14
- checkAliases?: boolean;
15
- };
16
- type RuleOptions = [Options?];
17
- export declare const noUnsafe: TSESLint.RuleModule<"noUnsafe", RuleOptions, unknown, TSESLint.RuleListener> & {
18
- name: string;
19
- };
20
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: prefer-es6-class
8
- * Prefer ES6 classes over createClass
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export declare const preferEs6Class: TSESLint.RuleModule<"preferEs6Class", [], unknown, TSESLint.RuleListener> & {
12
- name: string;
13
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: prefer-stateless-function
8
- * Prefer stateless functions
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export interface Options {
12
- ignorePureComponents?: boolean;
13
- }
14
- export declare const preferStatelessFunction: TSESLint.RuleModule<"preferStatelessFunction", [Options], unknown, TSESLint.RuleListener> & {
15
- name: string;
16
- };
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Ofri Peretz
3
- * Licensed under the MIT License. Use of this source code is governed by the
4
- * MIT license that can be found in the LICENSE file.
5
- */
6
- /**
7
- * ESLint Rule: prop-types
8
- * Enforce prop types usage
9
- */
10
- import type { TSESLint } from '@interlace/eslint-devkit';
11
- export interface Options {
12
- ignore?: string[];
13
- customValidators?: string[];
14
- skipUndeclared?: boolean;
15
- }
16
- export declare const propTypes: TSESLint.RuleModule<"propTypes", [Options], unknown, TSESLint.RuleListener> & {
17
- name: string;
18
- };