theodi / comma-chameleon

A desktop CSV editor for data publishers
https://comma-chameleon.io/
MIT License
280 stars 27 forks source link

GitHub collaboration resources #174

Closed quadrophobiac closed 7 years ago

chris48s commented 7 years ago

At the moment, the linting rules that JSHint is currently enforcing don't 'agree' with the code style guide linked.

As an example, JSHint is configured to require semicolons (this is the default for JSHint, but you can turn it off ), whereas the 'standard js' coding style says you should not use semicolons and rely on ASI.

As another example, JSHint currently requires strict comparisons in all situations (again, the default for JSHint) but the proposed conventions allow obj == null (again this is configurable ).

I'm aware that I set up the JSHint config (I mainly just went with the defaults), but I don't raise this because I want to start a big debate about semicolons. GitHub has enough of those already ;) Being an electron app, it is probably better to move into line with the electron community conventions - I just think that part of adopting style guidelines should be updating the existing codebase and linting rules (or tools ) to meet/enforce those guidelines.

pezholio commented 7 years ago

I think Standard.js would be a good shout for this 👍

Stephen-Gates commented 7 years ago

Standard.js seems perfect given the list of users includes Electron, NPM, GOV.UK and more.

chris48s commented 7 years ago

So I think the steps to adopting that should be:

quadrophobiac commented 7 years ago

Hey everyone - thanks so much for the input on this, really great discussion and especially thanks to you @chris48s for speccing out what should be done. I'll get those into tickets and into the backlog!