Skip to content

Invalid naming of imports, results in ESLint errors #649

@lucksp

Description

@lucksp

Plugin Version

6.17.2

App ID

No response

Email

No response

Platform(s)

React Native

What did you do?

as per React Native integration docs, importing your SDK results in ESLint errors:

import appsFlyer, {
  AppsFlyerPurchaseConnector,
  AppsFlyerPurchaseConnectorConfig,
  StoreKitVersion,
} from 'react-native-appsflyer';
  • appsFlyer import:

No default export found in imported module "react-native-appsflyer". eslint import/default

  • AppsFlyerPurchaseConnector, AppsFlyerPurchaseConnectorConfig, StoreKitVersion, imports:

{ named import } not found in 'react-native-appsflyer' eslint import/named

What did you expect to happen?

your SDK has correct exports & related Type definitions

What happened instead?

Image Image

Any other relevant information

As a workaround, I add to the top of the file:
/* eslint-disable import/default /
/
eslint-disable import/named */

However, this is the exception, not the rule, as I am not going to modify my ESLint rules unless necessary

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions