Monday, 18 November 2019

Feeling frustrated with the tedious setup of ESLint with Prettier for VSCode for every single project. Is it really that bad to install these globally? Or is there another way?

I can't seem to grasp how to get ESLint and Prettier to work together with the AirBnB style, they're constantly going back and forth with single vs double quotes for example.I want ESLint to keep me in line with the AirBnB styleguide and Prettier to automatically format things like indenting/padding lines.It feels like there's 100 guides on how to do this, and they all do it very differently and it seems like no matter what guide I use I get an error I have to fix myself.Once I find a solution that works I would really like to just have this setup when I start an npm init, is there a way to add some settings or a template like this to npm init?Alternatively, is it really such a bad idea to install ESLint and Prettier globally? I see it mentioned all over the place but I haven't seen a definitive "why".

Submitted November 18, 2019 at 06:22PM by g3t0nmyl3v3l

No comments:

Post a Comment