nkzw-tech / athena-crisis

Athena Crisis is an Advance Wars inspired modern-retro turn-based tactical strategy game. Athena Crisis is open core technology.
https://athenacrisis.com/open-source
Other
1.37k stars 105 forks source link

build: enable consistent type imports rule #24

Closed ad1992 closed 1 month ago

ad1992 commented 1 month ago

Enabled the consistent-type-imports so its clear from imports whether type is being imported.

I have auto fixed the codebase, however I am happy to revert if that is unnecessary and change the rule to throw warning instead.

cc @cpojer

cpojer commented 1 month ago

Thanks for the contribution! I looked at this rule previously but chose not to enable it. Here is what I landed on before:

So in the end, what is the upside? Is it only a minor change in how modules are bundled, or is there something big I'm missing that makes this behavior better than the current situation?

cpojer commented 1 month ago

I asked on Twitter: https://x.com/cpojer/status/1794462636219801852

Then a GitHub issue was surfaced in which a TS team member said:

The intention is for you not to use import type unless you need to.

Let's not move forward with this.

ad1992 commented 1 month ago

Hi @cpojer sorry I was busy so couldn't back on this one. This is just a user preference and has nothing to do with bundling as the typings will be removed irrsepective of how its imported. Hence I agree with your reasonings and since its not needed in the codebase so better to close it.