springload / madewithwagtail

A showcase of sites and apps made with Wagtail CMS, the easy to use, open source Django content management system
http://madewithwagtail.org
MIT License
84 stars 21 forks source link

Setup linters #102

Closed loicteixeira closed 6 years ago

loicteixeira commented 6 years ago

Add Linters dependencies & config for Python and JS. Waiting on https://github.com/prettier/prettier/pull/3038 for SASS.

I'll add the steps to the CI after merging.

holloway commented 6 years ago

@loicteixeira It's unclear whether Prettier will adopt the Indenting CSS PR.

They ran a Twitter poll for 30 hours among likely Prettier users who, if they used Prettier, couldn't use the indenting style, and the results were that 9% of about 800 people use the indenting style despite Prettier lacking the feature (presumably they disable Prettier CSS/Sass formatting).

They also seemed to reject far larger polls of about 3400 users where 30% of devs said they prefer an indenting style, based on unsubstantiated suspicions by one dev of theirs.

So it's a very odd situation, and the PR is in limbo right now. It's unclear what threshold needs to be met to accept it, and although the code is complete I wouldn't wait on it.

Sad!

loicteixeira commented 6 years ago

As discussed offline, we will look at either using Prettier with the default indenting style (without the PR mentioned above merged) or something else as it is unclear when/if the PR will be merged unfortunately.

loicteixeira commented 6 years ago

@thibaudcolas:

Edit: I can't quite get the CSS linting to work 😞

loicteixeira commented 6 years ago

Merging without CSS linting as I can't quite get it to work but need to get on something else. I'll create a separate issue to revisit.

thibaudcolas commented 6 years ago

🎉

For me VS Code respects the settings defined for https://github.com/springload/draftjs_exporter, I might have a plugin doing that though not sure.