-
Notifications
You must be signed in to change notification settings - Fork 405
Code cleanup #275
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
Code cleanup #275
Conversation
|
I hate how hard it is to review whitespace-heavy patches. Here's the secret "diff that ignores whitespace" link: |
|
Hey @geoffp I see you've been busy today! Thanks for taking the lead on this - I am happy that we'll be in a more consistent place once done. As far as eye bleeding goes, the only thing that stood out to me so far was I am not accustomed to a space after the for - but I can get used to it - leave it this way. |
|
I wasn't for doing it that way at first, myself, but I was eventually persuaded by somebody or other's best practices this or that. Probably Crockford. I find it's kind of nice to visually distinguish this and |
|
pulled this down and running now. There are a LOT of eslint errors. some are good. some seem a bit crazy. will research tweaks and discuss |
… editorconfig did not seem to support it, so the two tools would create contention. I can live with "misaligned" variables. ask me about work sometime
|
@geoffp I loosened the rules for two lints on c7609d7 Can you think of a convincing reason not to just turn these off? I feel comfortable with utilizing the conventions eslint is complaining about. I also shortened the eslint consecutive variable declaration indent - because editorconfig did not seem to support it, so the two tools would create contention. 0714855 so now we get the following, which I can live with I don't want to all var's have to be at the beginning of a function, but I wonder if there is a setting to prevent consecutive declarations? |
|
Reassigned you to review what I did |
…2tha-e/patternlab-node into e2tha-e-replacing-eval-with-JSON.parse
|
Yeah, it seems like eslint can get pretty much as bonkers as you want. Definitely not the kind of thing where you'd just enable every rule! I like at least that it gets you thinking about what's okay to do and what's dangerous, even if some of it is pretty paranoid. No, I'm cool with turning those rules off completely. On consecutive variable declarations, there's this: http://eslint.org/docs/1.10.3/rules/one-var |
deleted jslintrc file Addresses #274
Conflicts: Gruntfile.js builder/parameter_hunter.js
Addresses #274 .
This PR is for code review as we develop our code formatting standards. We are re-doing white space, fixing errors, and removing superfluous iifes.
I'm reformatting JS files to pass lint as I go, based on my editor's integrated eslint feedback. @bmuenzenmeyer, would you please give the reformatted JS a look and tell me what's in there that hurts your eyes?