@eslint-react/shared 2.3.2-next.7 → 2.3.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.ts +3 -10
- package/dist/index.js +2 -8
- package/package.json +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { unit } from "@eslint-react/eff";
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import * as tseslint from "@typescript-eslint/utils/ts-eslint";
|
|
4
4
|
import { ReportDescriptor } from "@typescript-eslint/utils/ts-eslint";
|
|
5
|
-
import { PartialDeep } from "type-fest";
|
|
6
5
|
|
|
7
6
|
//#region src/_id.d.ts
|
|
8
7
|
/**
|
|
@@ -22,12 +21,6 @@ declare class IdGenerator {
|
|
|
22
21
|
next(): string;
|
|
23
22
|
}
|
|
24
23
|
//#endregion
|
|
25
|
-
//#region src/_require.d.ts
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
declare const _require: NodeJS.Require;
|
|
30
|
-
//#endregion
|
|
31
24
|
//#region src/types.d.ts
|
|
32
25
|
/**
|
|
33
26
|
* Rule severity.
|
|
@@ -276,7 +269,7 @@ declare function isESLintReactSettings(settings: unknown): settings is ESLintRea
|
|
|
276
269
|
* Coerces unknown input to ESLintSettings type
|
|
277
270
|
* @param settings The settings object to coerce
|
|
278
271
|
*/
|
|
279
|
-
declare const coerceESLintSettings: (settings: unknown) =>
|
|
272
|
+
declare const coerceESLintSettings: (settings: unknown) => Partial<ESLintSettings>;
|
|
280
273
|
/**
|
|
281
274
|
* Decodes and validates ESLint settings, using defaults if invalid
|
|
282
275
|
* @param settings The settings object to decode
|
|
@@ -286,7 +279,7 @@ declare const decodeESLintSettings: (settings: unknown) => ESLintSettings;
|
|
|
286
279
|
* Coerces unknown input to ESLintReactSettings type
|
|
287
280
|
* @param settings The settings object to coerce
|
|
288
281
|
*/
|
|
289
|
-
declare const coerceSettings: (settings: unknown) =>
|
|
282
|
+
declare const coerceSettings: (settings: unknown) => Partial<ESLintReactSettings>;
|
|
290
283
|
/**
|
|
291
284
|
* Decodes and validates ESLint React settings, using defaults if invalid
|
|
292
285
|
* @param settings The settings object to decode
|
|
@@ -323,4 +316,4 @@ declare module "@typescript-eslint/utils/ts-eslint" {
|
|
|
323
316
|
}
|
|
324
317
|
}
|
|
325
318
|
//#endregion
|
|
326
|
-
export { CompatibleConfig, CompatiblePlugin, CompatibleRule, DEFAULT_ESLINT_REACT_SETTINGS, DEFAULT_ESLINT_SETTINGS, ESLintReactSettings, ESLintReactSettingsNormalized, ESLintReactSettingsSchema, ESLintSettings, ESLintSettingsSchema, GITHUB_URL, IdGenerator, NPM_SCOPE, RE_ANNOTATION_JSX, RE_ANNOTATION_JSX_FRAG, RE_ANNOTATION_JSX_IMPORT_SOURCE, RE_ANNOTATION_JSX_RUNTIME, RE_CAMEL_CASE, RE_COMPONENT_NAME, RE_COMPONENT_NAME_LOOSE, RE_CONSTANT_CASE, RE_HOOK_NAME, RE_HTML_TAG, RE_JAVASCRIPT_PROTOCOL, RE_JS_EXT, RE_JS_IDENTIFIER, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_REGEXP_STR, RE_SNAKE_CASE, RE_TS_EXT, RuleConfig, RuleContext, RuleFeature, RulePolicy, RuleSuggest, SettingsConfig, Severity, SeverityLevel, SeverityName, WEBSITE_URL,
|
|
319
|
+
export { CompatibleConfig, CompatiblePlugin, CompatibleRule, DEFAULT_ESLINT_REACT_SETTINGS, DEFAULT_ESLINT_SETTINGS, ESLintReactSettings, ESLintReactSettingsNormalized, ESLintReactSettingsSchema, ESLintSettings, ESLintSettingsSchema, GITHUB_URL, IdGenerator, NPM_SCOPE, RE_ANNOTATION_JSX, RE_ANNOTATION_JSX_FRAG, RE_ANNOTATION_JSX_IMPORT_SOURCE, RE_ANNOTATION_JSX_RUNTIME, RE_CAMEL_CASE, RE_COMPONENT_NAME, RE_COMPONENT_NAME_LOOSE, RE_CONSTANT_CASE, RE_HOOK_NAME, RE_HTML_TAG, RE_JAVASCRIPT_PROTOCOL, RE_JS_EXT, RE_JS_IDENTIFIER, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_REGEXP_STR, RE_SNAKE_CASE, RE_TS_EXT, RuleConfig, RuleContext, RuleFeature, RulePolicy, RuleSuggest, SettingsConfig, Severity, SeverityLevel, SeverityName, WEBSITE_URL, coerceESLintSettings, coerceSettings, decodeESLintSettings, decodeSettings, defineSettings, getConfigAdapters, getReactVersion, getSettingsFromContext, isESLintReactSettings, isESLintSettings, isRegExp, normalizeSettings, report, toRegExp };
|
package/dist/index.js
CHANGED
|
@@ -28,13 +28,6 @@ var IdGenerator = class {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/_require.ts
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
|
-
const _require = module.createRequire(process.cwd() + path.sep);
|
|
37
|
-
|
|
38
31
|
//#endregion
|
|
39
32
|
//#region src/config-adapters.ts
|
|
40
33
|
function getConfigAdapters(pluginName, plugin) {
|
|
@@ -142,6 +135,7 @@ const RE_HOOK_NAME = /^use/u;
|
|
|
142
135
|
|
|
143
136
|
//#endregion
|
|
144
137
|
//#region src/react-version.ts
|
|
138
|
+
const _require = module.createRequire(process.cwd() + path.sep);
|
|
145
139
|
function getReactVersion(fallback) {
|
|
146
140
|
try {
|
|
147
141
|
return match(_require("react")).with({ version: P.select(P.string) }, identity).otherwise(() => fallback);
|
|
@@ -284,4 +278,4 @@ function getSettingsFromContext(context) {
|
|
|
284
278
|
const defineSettings = identity;
|
|
285
279
|
|
|
286
280
|
//#endregion
|
|
287
|
-
export { DEFAULT_ESLINT_REACT_SETTINGS, DEFAULT_ESLINT_SETTINGS, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, IdGenerator, NPM_SCOPE, RE_ANNOTATION_JSX, RE_ANNOTATION_JSX_FRAG, RE_ANNOTATION_JSX_IMPORT_SOURCE, RE_ANNOTATION_JSX_RUNTIME, RE_CAMEL_CASE, RE_COMPONENT_NAME, RE_COMPONENT_NAME_LOOSE, RE_CONSTANT_CASE, RE_HOOK_NAME, RE_HTML_TAG, RE_JAVASCRIPT_PROTOCOL, RE_JS_EXT, RE_JS_IDENTIFIER, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_REGEXP_STR, RE_SNAKE_CASE, RE_TS_EXT, WEBSITE_URL,
|
|
281
|
+
export { DEFAULT_ESLINT_REACT_SETTINGS, DEFAULT_ESLINT_SETTINGS, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, IdGenerator, NPM_SCOPE, RE_ANNOTATION_JSX, RE_ANNOTATION_JSX_FRAG, RE_ANNOTATION_JSX_IMPORT_SOURCE, RE_ANNOTATION_JSX_RUNTIME, RE_CAMEL_CASE, RE_COMPONENT_NAME, RE_COMPONENT_NAME_LOOSE, RE_CONSTANT_CASE, RE_HOOK_NAME, RE_HTML_TAG, RE_JAVASCRIPT_PROTOCOL, RE_JS_EXT, RE_JS_IDENTIFIER, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_REGEXP_STR, RE_SNAKE_CASE, RE_TS_EXT, WEBSITE_URL, coerceESLintSettings, coerceSettings, decodeESLintSettings, decodeSettings, defineSettings, getConfigAdapters, getReactVersion, getSettingsFromContext, isESLintReactSettings, isESLintSettings, isRegExp, normalizeSettings, report, toRegExp };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3-beta.1",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -33,13 +33,12 @@
|
|
|
33
33
|
"@typescript-eslint/utils": "^8.46.3",
|
|
34
34
|
"ts-pattern": "^5.9.0",
|
|
35
35
|
"zod": "^4.1.12",
|
|
36
|
-
"@eslint-react/eff": "2.3.
|
|
36
|
+
"@eslint-react/eff": "2.3.3-beta.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@tsconfig/node22": "^22.0.2",
|
|
40
40
|
"@types/picomatch": "^4.0.2",
|
|
41
|
-
"tsdown": "^0.16.
|
|
42
|
-
"type-fest": "^5.2.0",
|
|
41
|
+
"tsdown": "^0.16.1",
|
|
43
42
|
"@local/configs": "0.0.0"
|
|
44
43
|
},
|
|
45
44
|
"engines": {
|