mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 02:33:02 +00:00
merge new into master
This commit is contained in:
98
node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.d.ts
generated
vendored
Normal file
98
node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.d.ts
generated
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
import * as estree from 'estree';
|
||||
import { Rule, Linter } from 'eslint';
|
||||
|
||||
type ReactHooksFlatConfig = {
|
||||
plugins: {
|
||||
react: any;
|
||||
};
|
||||
rules: Linter.RulesRecord;
|
||||
};
|
||||
declare const plugin: {
|
||||
meta: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
rules: {
|
||||
'exhaustive-deps': {
|
||||
meta: {
|
||||
type: "suggestion";
|
||||
docs: {
|
||||
description: string;
|
||||
recommended: true;
|
||||
url: string;
|
||||
};
|
||||
fixable: "code";
|
||||
hasSuggestions: true;
|
||||
schema: {
|
||||
type: "object";
|
||||
additionalProperties: false;
|
||||
enableDangerousAutofixThisMayCauseInfiniteLoops: boolean;
|
||||
properties: {
|
||||
additionalHooks: {
|
||||
type: "string";
|
||||
};
|
||||
enableDangerousAutofixThisMayCauseInfiniteLoops: {
|
||||
type: "boolean";
|
||||
};
|
||||
experimental_autoDependenciesHooks: {
|
||||
type: "array";
|
||||
items: {
|
||||
type: "string";
|
||||
};
|
||||
};
|
||||
requireExplicitEffectDeps: {
|
||||
type: "boolean";
|
||||
};
|
||||
};
|
||||
}[];
|
||||
};
|
||||
create(context: Rule.RuleContext): {
|
||||
CallExpression: (node: estree.CallExpression) => void;
|
||||
};
|
||||
};
|
||||
'rules-of-hooks': {
|
||||
meta: {
|
||||
type: "problem";
|
||||
docs: {
|
||||
description: string;
|
||||
recommended: true;
|
||||
url: string;
|
||||
};
|
||||
schema: {
|
||||
type: "object";
|
||||
additionalProperties: false;
|
||||
properties: {
|
||||
additionalHooks: {
|
||||
type: "string";
|
||||
};
|
||||
};
|
||||
}[];
|
||||
};
|
||||
create(context: Rule.RuleContext): {
|
||||
'*'(node: any): void;
|
||||
'*:exit'(node: any): void;
|
||||
CallExpression(node: estree.CallExpression & Rule.NodeParentExtension): void;
|
||||
Identifier(node: estree.Identifier & Rule.NodeParentExtension): void;
|
||||
'CallExpression:exit'(node: estree.CallExpression & Rule.NodeParentExtension): void;
|
||||
FunctionDeclaration(node: estree.FunctionDeclaration & Rule.NodeParentExtension): void;
|
||||
ArrowFunctionExpression(node: estree.ArrowFunctionExpression & Rule.NodeParentExtension): void;
|
||||
};
|
||||
};
|
||||
};
|
||||
configs: {
|
||||
recommended: {
|
||||
plugins: string[];
|
||||
rules: Linter.RulesRecord;
|
||||
};
|
||||
'recommended-latest': {
|
||||
plugins: string[];
|
||||
rules: Linter.RulesRecord;
|
||||
};
|
||||
flat: {
|
||||
recommended: ReactHooksFlatConfig;
|
||||
"recommended-latest": ReactHooksFlatConfig;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export { plugin as default };
|
||||
58309
node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js
generated
vendored
Normal file
58309
node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
58134
node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js
generated
vendored
Normal file
58134
node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user