@eslint-react/shared 1.8.2-next.0 → 1.8.3-beta.1
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.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +20 -0
- package/dist/index.mjs +20 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -56,6 +56,7 @@ declare const HOST_HTML_COMPONENT_TYPES: readonly ["aside", "audio", "b", "base"
|
|
|
56
56
|
* @internal
|
|
57
57
|
*/
|
|
58
58
|
declare const HOST_SVG_COMPONENT_TYPES: readonly ["a", "animate", "animateMotion", "animateTransform", "circle", "clipPath", "defs", "desc", "discard", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "hatch", "hatchpath", "image", "line", "linearGradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "script", "set", "stop", "style", "svg", "switch", "symbol", "text", "textPath", "title", "tspan", "use", "view"];
|
|
59
|
+
declare const REACT_BUILD_IN_HOOKS: readonly ["useActionState", "useCallback", "useContext", "useDebugValue", "useDeferredValue", "useEffect", "useId", "useImperativeHandle", "useInsertionEffect", "useLayoutEffect", "useMemo", "useOptimistic", "useReducer", "useRef", "useState", "useSyncExternalStore", "useTransition"];
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
62
|
* Get the ESLint rule creator for a plugin.
|
|
@@ -1975,4 +1976,4 @@ declare const expandSettings: Memoized<(settings: ESLintReactSettings) => ESLint
|
|
|
1975
1976
|
*/
|
|
1976
1977
|
declare const DEFAULT_ESLINT_REACT_SETTINGS: ESLintReactSettings;
|
|
1977
1978
|
|
|
1978
|
-
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentExpanded, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, type ESLintReactSettings, type ESLintReactSettingsExpanded, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, NPM_SCOPE, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, expandSettings };
|
|
1979
|
+
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentExpanded, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, type ESLintReactSettings, type ESLintReactSettingsExpanded, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, expandSettings };
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ declare const HOST_HTML_COMPONENT_TYPES: readonly ["aside", "audio", "b", "base"
|
|
|
56
56
|
* @internal
|
|
57
57
|
*/
|
|
58
58
|
declare const HOST_SVG_COMPONENT_TYPES: readonly ["a", "animate", "animateMotion", "animateTransform", "circle", "clipPath", "defs", "desc", "discard", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "hatch", "hatchpath", "image", "line", "linearGradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "script", "set", "stop", "style", "svg", "switch", "symbol", "text", "textPath", "title", "tspan", "use", "view"];
|
|
59
|
+
declare const REACT_BUILD_IN_HOOKS: readonly ["useActionState", "useCallback", "useContext", "useDebugValue", "useDeferredValue", "useEffect", "useId", "useImperativeHandle", "useInsertionEffect", "useLayoutEffect", "useMemo", "useOptimistic", "useReducer", "useRef", "useState", "useSyncExternalStore", "useTransition"];
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
62
|
* Get the ESLint rule creator for a plugin.
|
|
@@ -1975,4 +1976,4 @@ declare const expandSettings: Memoized<(settings: ESLintReactSettings) => ESLint
|
|
|
1975
1976
|
*/
|
|
1976
1977
|
declare const DEFAULT_ESLINT_REACT_SETTINGS: ESLintReactSettings;
|
|
1977
1978
|
|
|
1978
|
-
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentExpanded, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, type ESLintReactSettings, type ESLintReactSettingsExpanded, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, NPM_SCOPE, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, expandSettings };
|
|
1979
|
+
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentExpanded, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, type ESLintReactSettings, type ESLintReactSettingsExpanded, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, expandSettings };
|
package/dist/index.js
CHANGED
|
@@ -188,6 +188,25 @@ var HOST_SVG_COMPONENT_TYPES = [
|
|
|
188
188
|
"use",
|
|
189
189
|
"view"
|
|
190
190
|
];
|
|
191
|
+
var REACT_BUILD_IN_HOOKS = [
|
|
192
|
+
"useActionState",
|
|
193
|
+
"useCallback",
|
|
194
|
+
"useContext",
|
|
195
|
+
"useDebugValue",
|
|
196
|
+
"useDeferredValue",
|
|
197
|
+
"useEffect",
|
|
198
|
+
"useId",
|
|
199
|
+
"useImperativeHandle",
|
|
200
|
+
"useInsertionEffect",
|
|
201
|
+
"useLayoutEffect",
|
|
202
|
+
"useMemo",
|
|
203
|
+
"useOptimistic",
|
|
204
|
+
"useReducer",
|
|
205
|
+
"useRef",
|
|
206
|
+
"useState",
|
|
207
|
+
"useSyncExternalStore",
|
|
208
|
+
"useTransition"
|
|
209
|
+
];
|
|
191
210
|
var getDocsUrl = (pluginName) => (ruleName) => {
|
|
192
211
|
if (pluginName === "x") return `${WEBSITE_URL}/docs/rules/${ruleName}`;
|
|
193
212
|
return `${WEBSITE_URL}/docs/rules/${pluginName}-${ruleName}`;
|
|
@@ -898,6 +917,7 @@ exports.GITHUB_URL = GITHUB_URL;
|
|
|
898
917
|
exports.HOST_HTML_COMPONENT_TYPES = HOST_HTML_COMPONENT_TYPES;
|
|
899
918
|
exports.HOST_SVG_COMPONENT_TYPES = HOST_SVG_COMPONENT_TYPES;
|
|
900
919
|
exports.NPM_SCOPE = NPM_SCOPE;
|
|
920
|
+
exports.REACT_BUILD_IN_HOOKS = REACT_BUILD_IN_HOOKS;
|
|
901
921
|
exports.RE_CAMEL_CASE = RE_CAMEL_CASE;
|
|
902
922
|
exports.RE_CONSTANT_CASE = RE_CONSTANT_CASE;
|
|
903
923
|
exports.RE_JAVASCRIPT_PROTOCOL = RE_JAVASCRIPT_PROTOCOL;
|
package/dist/index.mjs
CHANGED
|
@@ -182,6 +182,25 @@ var HOST_SVG_COMPONENT_TYPES = [
|
|
|
182
182
|
"use",
|
|
183
183
|
"view"
|
|
184
184
|
];
|
|
185
|
+
var REACT_BUILD_IN_HOOKS = [
|
|
186
|
+
"useActionState",
|
|
187
|
+
"useCallback",
|
|
188
|
+
"useContext",
|
|
189
|
+
"useDebugValue",
|
|
190
|
+
"useDeferredValue",
|
|
191
|
+
"useEffect",
|
|
192
|
+
"useId",
|
|
193
|
+
"useImperativeHandle",
|
|
194
|
+
"useInsertionEffect",
|
|
195
|
+
"useLayoutEffect",
|
|
196
|
+
"useMemo",
|
|
197
|
+
"useOptimistic",
|
|
198
|
+
"useReducer",
|
|
199
|
+
"useRef",
|
|
200
|
+
"useState",
|
|
201
|
+
"useSyncExternalStore",
|
|
202
|
+
"useTransition"
|
|
203
|
+
];
|
|
185
204
|
var getDocsUrl = (pluginName) => (ruleName) => {
|
|
186
205
|
if (pluginName === "x") return `${WEBSITE_URL}/docs/rules/${ruleName}`;
|
|
187
206
|
return `${WEBSITE_URL}/docs/rules/${pluginName}-${ruleName}`;
|
|
@@ -882,4 +901,4 @@ var DEFAULT_ESLINT_REACT_SETTINGS = {
|
|
|
882
901
|
version: "detect"
|
|
883
902
|
};
|
|
884
903
|
|
|
885
|
-
export { CustomAttributeSchema, CustomComponentSchema, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, NPM_SCOPE, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, expandSettings };
|
|
904
|
+
export { CustomAttributeSchema, CustomComponentSchema, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, expandSettings };
|