Open jasikpark opened 9 months ago
Ah yes, that sounds reasonable, we should check to see if the import/export is typeonly. Should be an easy fix
can you elaborate on the 2nd point? Im not entirely sure what you mean
I want to do import type * as React from "react" and not be warned, but to be warned for actual code, is that a reasonable option to support?
This should be fixed in 1.0.3
via https://github.com/thepassle/eslint-plugin-barrel-files/pull/4
Is it possible to allow namespace imports for certain libraries?
I want to allow namespace imports from react
only. because most examples use import * as React from 'react'
We could add a allowList configuration option, should be straightforward enough to implement, would you be willing to create a PR?
Sure, I will try to implement it and create a PR. Thanks for your response
I want to do
import type * as React from "react"
and not be warned, but to be warned for actual code, is that a reasonable option to support?How do you measure if this plugin has changes in bundle size / build time / HMR refresh time?