Skip to content

Add option to no-unassigned-import for allowed glob #671

Closed
renovatebot/renovate
#217
@kentcdodds

Description

@kentcdodds

When using the style and css webpack loaders, sometimes I want to be able to import a CSS file which will result in injecting the styles in the DOM (a side-effect) but this is acceptable in some use cases (I realize there are CSS modules, but importing things like bootstrap etc.)

So I suggest:

"import/no-unassigned-import": [2, {
  "allowed": ["*.css"]
}]

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions