-
Notifications
You must be signed in to change notification settings - Fork 2.4k
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
add a more strict linter #433
Comments
check out eslint. after trying all of 'em, that's where several projects i work on have ended up. |
Yeah eslint also does the trick.. Anything other than quotes you had in mind @dasilvacontin? Although I feel most linters do the basic stuff equally well, some are more suiteable for specific things and custom styles. |
Glad you guys mentioned eslint, it's the one I had in mind. :) More things:
What are your thoughts about |
My thoughts about the differences: I like hinting about how "public" my functions are. Therefore I often tend to add an I dont have a strong preference about spaces in function declarations. Looking at the source atm, there's mostly spaces My two main reason for choosing the |
I don't have a preference about either style, but I like them to look the same. Will merge PR for those changes. :) |
I usually just note it in the function's documentation and that's all. Also, I like to name anonymous functions. Better stacktraces, as you mentioned, and more contribution-friendly code. :) |
Btw, #412 has fixed alot of mixed styles.. Personally havent had any experience with google closure compiler though, ref my question about the benefits compared to jshint (or eslint for that matter) |
I agree, and I would merge it if it didn't have conflicts.We could try adding eslint after I merge my v2.0 PR. |
We have strings with both
"
and'
. I'd like the repo to have a more uniform coding style, tbh.Thoughts, @phillipj?
The text was updated successfully, but these errors were encountered: