Skip to content

Eslint error loading custom import #1451

Closed
@FacundoGFlores

Description

@FacundoGFlores

I am using the adal-angular package and algo expose library. The thing is I need to import the AuthenticationContext

var AuthenticationContext = require('expose?AuthenticationContext!adal-angular');

but create-react-app webpack can not compile it because there is a flag for handling this kind of things:

import/no-webpack-loader-syntax

inside the eslint-config-react-app.

So I had to change it to:

'import/no-webpack-loader-syntax': 'warn'

How can I prevent this behaviour not changing the node_module?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions