@eslint-react/shared 1.33.0 → 1.34.0-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 +3 -13
- package/dist/index.d.ts +3 -13
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
2
|
import { _ } from '@eslint-react/eff';
|
|
3
|
+
import * as tseslint from '@typescript-eslint/utils/ts-eslint';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* The NPM scope for this project.
|
|
@@ -2336,22 +2337,11 @@ type RuleDeclaration = [RuleSeverity, Record<string, unknown>?] | RuleSeverity;
|
|
|
2336
2337
|
* @since 0.0.1
|
|
2337
2338
|
*/
|
|
2338
2339
|
type RulePreset = Record<string, RuleDeclaration>;
|
|
2339
|
-
/**
|
|
2340
|
-
* Rule creator function.
|
|
2341
|
-
* @since 0.0.1
|
|
2342
|
-
* @internal
|
|
2343
|
-
*/
|
|
2344
|
-
type RuleCreator = Parameters<ReturnType<typeof ESLintUtils.RuleCreator>>[0]["create"];
|
|
2345
2340
|
/**
|
|
2346
2341
|
* Rule context.
|
|
2347
2342
|
* @since 0.0.1
|
|
2348
2343
|
*/
|
|
2349
|
-
type RuleContext =
|
|
2350
|
-
/**
|
|
2351
|
-
* Rule options.
|
|
2352
|
-
* @since 0.0.1
|
|
2353
|
-
*/
|
|
2354
|
-
type RuleOptions = Parameters<RuleCreator>[1];
|
|
2344
|
+
type RuleContext<MessageIds extends string = string, Options extends readonly unknown[] = readonly unknown[]> = tseslint.RuleContext<MessageIds, Options>;
|
|
2355
2345
|
/**
|
|
2356
2346
|
* Rule namespace.
|
|
2357
2347
|
* @since 0.0.1
|
|
@@ -2363,4 +2353,4 @@ type RuleNamespace = "x" | "dom" | "web-api" | "hooks-extra" | "naming-conventio
|
|
|
2363
2353
|
*/
|
|
2364
2354
|
type RuleFeature = "CFG" | "CHK" | "DBG" | "FIX" | "MOD" | "TSC";
|
|
2365
2355
|
|
|
2366
|
-
export { type CustomComponent, type CustomComponentNormalized, type CustomComponentProp, type CustomComponentPropNormalized, CustomComponentPropSchema, CustomComponentSchema, type CustomHooks, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type
|
|
2356
|
+
export { type CustomComponent, type CustomComponentNormalized, type CustomComponentProp, type CustomComponentPropNormalized, CustomComponentPropSchema, CustomComponentSchema, type CustomHooks, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getId, getReactVersion, getSettingsFromContext, isInEditorEnv, isInGitHooksOrLintStaged, toNormalizedSettings, unsafeDecodeSettings };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
2
|
import { _ } from '@eslint-react/eff';
|
|
3
|
+
import * as tseslint from '@typescript-eslint/utils/ts-eslint';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* The NPM scope for this project.
|
|
@@ -2336,22 +2337,11 @@ type RuleDeclaration = [RuleSeverity, Record<string, unknown>?] | RuleSeverity;
|
|
|
2336
2337
|
* @since 0.0.1
|
|
2337
2338
|
*/
|
|
2338
2339
|
type RulePreset = Record<string, RuleDeclaration>;
|
|
2339
|
-
/**
|
|
2340
|
-
* Rule creator function.
|
|
2341
|
-
* @since 0.0.1
|
|
2342
|
-
* @internal
|
|
2343
|
-
*/
|
|
2344
|
-
type RuleCreator = Parameters<ReturnType<typeof ESLintUtils.RuleCreator>>[0]["create"];
|
|
2345
2340
|
/**
|
|
2346
2341
|
* Rule context.
|
|
2347
2342
|
* @since 0.0.1
|
|
2348
2343
|
*/
|
|
2349
|
-
type RuleContext =
|
|
2350
|
-
/**
|
|
2351
|
-
* Rule options.
|
|
2352
|
-
* @since 0.0.1
|
|
2353
|
-
*/
|
|
2354
|
-
type RuleOptions = Parameters<RuleCreator>[1];
|
|
2344
|
+
type RuleContext<MessageIds extends string = string, Options extends readonly unknown[] = readonly unknown[]> = tseslint.RuleContext<MessageIds, Options>;
|
|
2355
2345
|
/**
|
|
2356
2346
|
* Rule namespace.
|
|
2357
2347
|
* @since 0.0.1
|
|
@@ -2363,4 +2353,4 @@ type RuleNamespace = "x" | "dom" | "web-api" | "hooks-extra" | "naming-conventio
|
|
|
2363
2353
|
*/
|
|
2364
2354
|
type RuleFeature = "CFG" | "CHK" | "DBG" | "FIX" | "MOD" | "TSC";
|
|
2365
2355
|
|
|
2366
|
-
export { type CustomComponent, type CustomComponentNormalized, type CustomComponentProp, type CustomComponentPropNormalized, CustomComponentPropSchema, CustomComponentSchema, type CustomHooks, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type
|
|
2356
|
+
export { type CustomComponent, type CustomComponentNormalized, type CustomComponentProp, type CustomComponentPropNormalized, CustomComponentPropSchema, CustomComponentSchema, type CustomHooks, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getId, getReactVersion, getSettingsFromContext, isInEditorEnv, isInGitHooksOrLintStaged, toNormalizedSettings, unsafeDecodeSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0-beta.1",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@typescript-eslint/utils": "^8.26.1",
|
|
39
39
|
"picomatch": "^4.0.2",
|
|
40
40
|
"ts-pattern": "^5.6.2",
|
|
41
|
-
"@eslint-react/eff": "1.
|
|
41
|
+
"@eslint-react/eff": "1.34.0-beta.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/picomatch": "^3.0.2",
|