@eslint-react/shared 3.0.0-next.37 → 3.0.0-next.39
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 -3
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -215,11 +215,11 @@ declare const RE_HOOK_NAME: RegExp;
|
|
|
215
215
|
/**
|
|
216
216
|
* Known impure functions
|
|
217
217
|
*/
|
|
218
|
-
declare const
|
|
218
|
+
declare const IMPURE_FUNCS: ReadonlyMap<string, ReadonlySet<string>>;
|
|
219
219
|
/**
|
|
220
220
|
* Known impure global constructors used with `new`
|
|
221
221
|
*/
|
|
222
|
-
declare const
|
|
222
|
+
declare const IMPURE_CTORS: ReadonlySet<string>;
|
|
223
223
|
//#endregion
|
|
224
224
|
//#region src/define-rule-listener.d.ts
|
|
225
225
|
/**
|
|
@@ -407,4 +407,4 @@ declare module "@typescript-eslint/utils/ts-eslint" {
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
//#endregion
|
|
410
|
-
export { CompatibleConfig, CompatiblePlugin, CompatibleRule, CompilationMode, DEFAULT_ESLINT_REACT_SETTINGS, DEFAULT_ESLINT_SETTINGS, ESLintReactSettings, ESLintReactSettingsNormalized, ESLintReactSettingsSchema, ESLintSettings, ESLintSettingsSchema, GITHUB_URL,
|
|
410
|
+
export { CompatibleConfig, CompatiblePlugin, CompatibleRule, CompilationMode, DEFAULT_ESLINT_REACT_SETTINGS, DEFAULT_ESLINT_SETTINGS, ESLintReactSettings, ESLintReactSettingsNormalized, ESLintReactSettingsSchema, ESLintSettings, ESLintSettingsSchema, GITHUB_URL, IMPURE_CTORS, IMPURE_FUNCS, 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, RegExpLike, type ReportFixFunction, RuleConfig, RuleContext, RuleFeature, type RuleFix, type RuleFixer, RulePolicy, RuleSuggest, SettingsConfig, Severity, SeverityLevel, SeverityName, WEBSITE_URL, coerceESLintSettings, coerceSettings, decodeESLintSettings, decodeSettings, defineRuleListener, defineSettings, getConfigAdapters, getReactVersion, getSettingsFromContext, isESLintReactSettings, isESLintSettings, isRegExp, normalizeSettings, report, toRegExp };
|
package/dist/index.js
CHANGED
|
@@ -141,7 +141,7 @@ const RE_HOOK_NAME = /^use/u;
|
|
|
141
141
|
/**
|
|
142
142
|
* Known impure functions
|
|
143
143
|
*/
|
|
144
|
-
const
|
|
144
|
+
const IMPURE_FUNCS = new Map([
|
|
145
145
|
["Atomics", new Set([
|
|
146
146
|
"add",
|
|
147
147
|
"and",
|
|
@@ -379,7 +379,7 @@ const IMPURE_FUNCTIONS = new Map([
|
|
|
379
379
|
/**
|
|
380
380
|
* Known impure global constructors used with `new`
|
|
381
381
|
*/
|
|
382
|
-
const
|
|
382
|
+
const IMPURE_CTORS = new Set([
|
|
383
383
|
"AbortController",
|
|
384
384
|
"Audio",
|
|
385
385
|
"AudioContext",
|
|
@@ -601,4 +601,4 @@ function getSettingsFromContext(context) {
|
|
|
601
601
|
const defineSettings = identity;
|
|
602
602
|
|
|
603
603
|
//#endregion
|
|
604
|
-
export { DEFAULT_ESLINT_REACT_SETTINGS, DEFAULT_ESLINT_SETTINGS, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL,
|
|
604
|
+
export { DEFAULT_ESLINT_REACT_SETTINGS, DEFAULT_ESLINT_SETTINGS, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, IMPURE_CTORS, IMPURE_FUNCS, 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, defineRuleListener, 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": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.39",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@typescript-eslint/utils": "canary",
|
|
34
34
|
"ts-pattern": "^5.9.0",
|
|
35
35
|
"zod": "^3.25.0 || ^4.0.0",
|
|
36
|
-
"@eslint-react/eff": "3.0.0-next.
|
|
36
|
+
"@eslint-react/eff": "3.0.0-next.39"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@tsconfig/node24": "^24.0.4",
|