@eslint-react/core 1.16.2-next.6 → 1.16.2-next.8

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 CHANGED
@@ -250,7 +250,7 @@ declare function isCallFromReactMember(pragmaMemberName: string, name: string):
250
250
  * @param settings ESLint React settings
251
251
  * @returns Whether the identifier is initialized from React
252
252
  */
253
- declare function isInitializedFromReact(name: string, initialScope: Scope, settings: Partial<Pick<ESLintReactSettings, "importSource" | "skipImportCheck">>): boolean;
253
+ declare function isInitializedFromReact(name: string, initialScope: Scope, settings: Partial<Pick<ESLintReactSettings, "importSource" | "strictImportCheck">>): boolean;
254
254
 
255
255
  declare function isReactAPIWithName(name: string): ReturnType<typeof isFromReact>;
256
256
  declare function isReactAPIWithName(name: string, member: string): ReturnType<typeof isFromReactMember>;
package/dist/index.d.ts CHANGED
@@ -250,7 +250,7 @@ declare function isCallFromReactMember(pragmaMemberName: string, name: string):
250
250
  * @param settings ESLint React settings
251
251
  * @returns Whether the identifier is initialized from React
252
252
  */
253
- declare function isInitializedFromReact(name: string, initialScope: Scope, settings: Partial<Pick<ESLintReactSettings, "importSource" | "skipImportCheck">>): boolean;
253
+ declare function isInitializedFromReact(name: string, initialScope: Scope, settings: Partial<Pick<ESLintReactSettings, "importSource" | "strictImportCheck">>): boolean;
254
254
 
255
255
  declare function isReactAPIWithName(name: string): ReturnType<typeof isFromReact>;
256
256
  declare function isReactAPIWithName(name: string, member: string): ReturnType<typeof isFromReactMember>;
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ var birecord__default = /*#__PURE__*/_interopDefault(birecord);
38
38
 
39
39
  // src/component/component-collector.ts
40
40
  function isInitializedFromReact(name, initialScope, settings) {
41
- if (settings.skipImportCheck) return true;
41
+ if (!settings.strictImportCheck) return true;
42
42
  if (name.toLowerCase() === "react") return true;
43
43
  const { importSource = "react" } = settings;
44
44
  const maybeLatestDef = tools.O.flatMapNullable(VAR__namespace.findVariable(name, initialScope), (v) => v.defs.at(-1));
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import birecord from 'birecord';
10
10
 
11
11
  // src/component/component-collector.ts
12
12
  function isInitializedFromReact(name, initialScope, settings) {
13
- if (settings.skipImportCheck) return true;
13
+ if (!settings.strictImportCheck) return true;
14
14
  if (name.toLowerCase() === "react") return true;
15
15
  const { importSource = "react" } = settings;
16
16
  const maybeLatestDef = O.flatMapNullable(VAR.findVariable(name, initialScope), (v) => v.defs.at(-1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "1.16.2-next.6",
3
+ "version": "1.16.2-next.8",
4
4
  "description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -42,12 +42,12 @@
42
42
  "birecord": "^0.1.1",
43
43
  "short-unique-id": "^5.2.0",
44
44
  "ts-pattern": "^5.5.0",
45
- "@eslint-react/ast": "1.16.2-next.6",
46
- "@eslint-react/jsx": "1.16.2-next.6",
47
- "@eslint-react/tools": "1.16.2-next.6",
48
- "@eslint-react/shared": "1.16.2-next.6",
49
- "@eslint-react/var": "1.16.2-next.6",
50
- "@eslint-react/types": "1.16.2-next.6"
45
+ "@eslint-react/ast": "1.16.2-next.8",
46
+ "@eslint-react/jsx": "1.16.2-next.8",
47
+ "@eslint-react/shared": "1.16.2-next.8",
48
+ "@eslint-react/tools": "1.16.2-next.8",
49
+ "@eslint-react/types": "1.16.2-next.8",
50
+ "@eslint-react/var": "1.16.2-next.8"
51
51
  },
52
52
  "devDependencies": {
53
53
  "tsup": "^8.3.5"