score:26

Accepted answer

name this "component" only if you need call them in some part of the code.
e.g. using css-modules. this is only a regular css so load in this manner :

import '../styles/base.css'

but if you still want to keep this unused var you can edit your es-lint, and delete this rule. (not recommended)

score:1

you do not need "css from" since the css file is already connected to the jsx file. you only do that when using other jsx components, for example:

import somecomponent from '../somecomponent.jsx'

Related Query

More Query from same tag