-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indent #201
Comments
I think quite a few people in our space are using a 2-space indent, my preference would be to use 2 spaces. Is there a reason to choose 4-space indent? |
I think I prefer 2 spaces also, 4 looks a bit too much. @eliasCodes @jrans @nelsonic what is your preference? |
@SimonLab @Shouston3 2 please! |
My preference is 2 as well, but do any of us have a reason? |
@eliasCodes I find it nicer to write and easier to read |
@Shouston3 @SimonLab @eliasCodes @jrans (and anyone else interested...), |
I'd like to try this out, but I do use 4 space tabs everywhere... Think I'm out of luck? Whitespace is kind of one of those things... a "when in rome" deal. Could it be more adaptive? As in... "I see you use 4 space tabs... ill make sure that persists". |
@howardroark great question! We prefer |
If we end up having them, this is probably the best candidate I've seen to date for custom rules: #231 |
@iteles I think a custom rule would be something that the eslint parser doesn't currently support. It does support indent rules, the question is whether we want to allow it to be configurable (and whether that's even possible). |
@eliasCodes I think that for our purposes having a customisable indent is way beyond the scope of the |
@howardroark I think it'd be really nice to be able to write over the rules you want to ignore easily. I suggest you just take the rules object from the node module located at In the process you may come up with a neat way to customise the default which you can share 😄 |
@howardroark the purpose of creating this repo was to have a standard across our projects using fewer well-defined language features so that code would look the same regardless of who wrote it. |
Makes sense. I can just fork it anyway :) Thanks! |
So, even though DC suggests 4 spaces, the project accepts 2 and there are no plans of a configuration file, correct? To make everyone happy, could we not make it just a warning, instead of an error? |
@Fl4m3Ph03n1x good question/point! We prefer 2-space, but a warning might be better than an error... however having many warnings in the console each time we make a commit (when using pre-commit hooks) will get v. noisy. |
@nelsonic good point with with noise. I am all out of ideas then :P |
http://eslint.org/docs/rules/indent
4-space indent is reccommended by goodparts http://jslint.com/help.html but going with 2
The text was updated successfully, but these errors were encountered: