adonisjs / discussion

Discussing about new features and sharing random thoughts: ⚠️ Not every request will be accepted
51 stars 5 forks source link

Allow semicolons with flag #28

Closed nrempel closed 7 years ago

nrempel commented 7 years ago

How do you feel about allowing semicolons with a flag or as an option?

This could use https://github.com/Flet/semistandard.

It's the same rules as standard but uses semicolons. I'm all for opinionated linting rules but personally I much prefer semicolons. The rest of the standard rules are fine for me (anything consistent).

thetutlage commented 7 years ago

You can use whatever you want in your project, Adonisjs doesn't stops you.

nrempel commented 7 years ago

Thanks, I do currently use semicolons and other linting rules.

What I meant to say was allow the code generator to produce semi colons.

chrisrickard commented 7 years ago

+1, I think it's a matter of preference - and for a project built for peeps to use, it would be great if it was an option for Ace generated code.

watzon commented 7 years ago

Idk, seems like a lot of work for little return to me. I understand having your own coding style, but maybe it would make more sense to create a provider (if possible) that overrides the default templates and replaces them with templates that include semi-colons?

thetutlage commented 7 years ago

I call it Javascript Fatigue, we just go too far with these things. The only reason I choose https://standardjs.com is coz it doesn't comes with a config file and hence you cannot customize it.

I am not imposing my styles on others, but instead of adding a new feature to adonis-cli which dynamically generates the blueprint by taking 20 options from the user, I will better focus on building something that is useful.

nrempel commented 7 years ago

Agreed. Decision fatigue is important to avoid. I'll close this issue.