Subwaytime / vite-aliases

Alias auto generation for Vite
https://www.npmjs.com/package/vite-aliases
MIT License
210 stars 12 forks source link

Plugin is forcing 4 spaces indentation when writing tsconfig #55

Closed AmrAbdulrahman closed 1 year ago

AmrAbdulrahman commented 1 year ago

Plugin is forcing 4 spaces indentation when writing tsconfig.

What I suggest is to fix this is

  1. either interpret the current indentation from tsconfig
  2. or add an option for formatting { indentation: 'tabs' | number }

I am happy to open a MR if we agree on this.

AmrAbdulrahman commented 1 year ago

@Subwaytime your input is appreciated here on which way is preferred from your POV.

AmrAbdulrahman commented 1 year ago

Link to MR: https://github.com/Subwaytime/vite-aliases/pull/56

Subwaytime commented 1 year ago

Hey there! This is an amazing idea, didnt think about it! 👍

Will checkout your PR tomorrow as i have got some time for open source work then !

Subwaytime commented 1 year ago

merged in with #56

AmrAbdulrahman commented 1 year ago

@Subwaytime let's please release 0.11.0 🙏