KonstantinSimeonov / tsx-control-statements

Control flow JSX/TSX elements that get compiled to plain old javascript.
Do What The F*ck You Want To Public License
93 stars 9 forks source link

'tsx-control-statements' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies #244

Open jimmykane opened 1 year ago

jimmykane commented 1 year ago
'tsx-control-statements' should be listed in the project's dependencies, not devDependencies  import/no-extraneous-dependencies

As the title describes.

But it should be at dev.

Any solution or pointers?

KonstantinSimeonov commented 1 year ago

big yikes

potential workaround:

// in your own file (let's say "src/components/control.tsx"), do:

// eslint-disable-next-line
export * from "tsx-control-statements"

// then, in your files:

import { If } from "src/components/control"

On a second thought, this might crash spectacularly. Don't have the bandwidth to address this rn, but I'll think on it