Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
- Loading branch information
1 parent
5092ede
commit 5e0578a
Showing
112 changed files
with
3,792 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
scripts/generate-rule-files/diffs/rules/react/jsx-no-constructed-context-values.d.ts.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/src/rules/react/jsx-no-constructed-context-values.d.ts b/src/rules/react/jsx-no-constructed-context-values.d.ts | ||
index 410f060..e356693 100644 | ||
--- a/src/rules/react/jsx-no-constructed-context-values.d.ts | ||
+++ b/src/rules/react/jsx-no-constructed-context-values.d.ts | ||
@@ -1,17 +1,9 @@ | ||
import type { RuleConfig } from '../rule-config'; | ||
|
||
-/** | ||
- * Option. | ||
- */ | ||
-export interface JsxNoConstructedContextValuesOption { | ||
- [k: string]: any; | ||
-} | ||
- | ||
/** | ||
* Options. | ||
*/ | ||
-export type JsxNoConstructedContextValuesOptions = | ||
- JsxNoConstructedContextValuesOption; | ||
+export type JsxNoConstructedContextValuesOptions = []; | ||
|
||
/** | ||
* Disallows JSX context provider values from taking values that will cause needless rerenders. |
13 changes: 13 additions & 0 deletions
13
scripts/generate-rule-files/diffs/rules/react/jsx-props-no-spreading.d.ts.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/rules/react/jsx-props-no-spreading.d.ts b/src/rules/react/jsx-props-no-spreading.d.ts | ||
index c1e0069..ba1e1bc 100644 | ||
--- a/src/rules/react/jsx-props-no-spreading.d.ts | ||
+++ b/src/rules/react/jsx-props-no-spreading.d.ts | ||
@@ -8,8 +8,6 @@ export type JsxPropsNoSpreadingOption = { | ||
custom?: 'enforce' | 'ignore'; | ||
exceptions?: string[]; | ||
[k: string]: any; | ||
-} & { | ||
- [k: string]: any; | ||
}; | ||
|
||
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* Eslint React extensions. | ||
* | ||
* @see [Eslint React extensions](https://github.com/jsx-eslint/eslint-plugin-react) | ||
*/ | ||
export type ReactExtensions = | ||
| 'plugin:react/all' | ||
| 'plugin:react/jsx-runtime' | ||
| 'plugin:react/recommended'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import type { LiteralUnion } from '../../utility-types'; | ||
|
||
/** | ||
* React settings. | ||
* | ||
* @see [React settings](https://github.com/jsx-eslint/eslint-plugin-react) | ||
*/ | ||
export interface ReactSettings extends Partial<Record<string, unknown>> { | ||
react?: { | ||
/** | ||
* Regex for Component Factory to use. | ||
* | ||
* @default 'createReactClass' | ||
*/ | ||
createClass?: LiteralUnion<'createReactClass'>; | ||
|
||
/** | ||
* Pragma to use. | ||
* | ||
* @default 'React' | ||
*/ | ||
pragma?: LiteralUnion<'React'>; | ||
|
||
/** | ||
* Fragment to use (may be a property of <pragma>). | ||
* | ||
* @default 'Fragment' | ||
*/ | ||
fragment?: LiteralUnion<'Fragment'>; | ||
|
||
/** | ||
* React version. "detect" automatically picks the version you have installed. | ||
* | ||
* You can also use `16.0`, `16.3`, etc, if you want to override the detected value. | ||
* | ||
* It will default to "latest" and warn if missing, and to "detect" in the future. | ||
* | ||
* @default 'latest' | ||
*/ | ||
version?: LiteralUnion<'latest' | 'detect'>; | ||
|
||
/** | ||
* Flow version. | ||
*/ | ||
flowVersion?: string; | ||
}; | ||
|
||
/** | ||
* The names of any function used to wrap propTypes, e.g. `forbidExtraProps`. | ||
* | ||
* If this isn't set, any propTypes wrapped in a function will be skipped. | ||
*/ | ||
propWrapperFunctions?: Array< | ||
| string | ||
| { | ||
property: string; | ||
object?: string; | ||
/** | ||
* For rules that check exact prop wrappers. | ||
*/ | ||
exact?: boolean; | ||
[k: string]: any; | ||
} | ||
>; | ||
|
||
/** | ||
* The name of any function used to wrap components, e.g. Mobx `observer` function. | ||
* | ||
* If this isn't set, components wrapped by these functions will be skipped. | ||
*/ | ||
componentWrapperFunctions?: Array< | ||
| string | ||
| { | ||
property: string; | ||
object?: string; | ||
[k: string]: any; | ||
} | ||
>; | ||
|
||
/** | ||
* Components used as alternatives to <form> for forms, eg. <Form endpoint={ url } />. | ||
*/ | ||
formComponents?: Array< | ||
| string | ||
| { | ||
name: string; | ||
formAttribute: string; | ||
} | ||
>; | ||
|
||
/** | ||
* Components used as alternatives to <a> for linking, eg. <Link to={ url } />. | ||
*/ | ||
linkComponents?: Array< | ||
| string | ||
| { | ||
name: string; | ||
linkAttribute: string; | ||
} | ||
>; | ||
} |
Oops, something went wrong.