Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

eslint + prettier - jshint #1101

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

Closed
wants to merge 4 commits into from
Closed

eslint + prettier - jshint #1101

wants to merge 4 commits into from

Conversation

avocadowastaken
Copy link
Contributor

See #742, #1096

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact cla@fb.com if you have any questions.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@avocadowastaken
Copy link
Contributor Author

I didn't modify code to not create merge conflicts.

Preferred eslint rules marked as warn.

Run npm run format && npm run lint:fix to see the beauty.

"ecmaVersion": 6,
"sourceType": "script"
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't this file override the parent eslintrc and remove the custom rules you set up? If the only difference is adding env.browser then I think it's safe to merge in

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL!

@leebyron
Copy link
Collaborator

leebyron commented Mar 7, 2017

This is awesome, nice work

@avocadowastaken
Copy link
Contributor Author

Do not forget to yarn format this after merge 😊

@leebyron
Copy link
Collaborator

leebyron commented Mar 7, 2017

I'd rather not include all the warnings - from past usage I've found warnings get ignored and just pile up over time. I think the eslintrc should either turn things off or make them errors with no need for a "lint:warn" npm script

Some examples of rules that are broken pervasively in this codebase and are safe to turn off:

  • vars-on-top
  • no-var
  • consistent-return
  • no-param-reassign

@avocadowastaken
Copy link
Contributor Author

Some examples of rules that are broken pervasively in this codebase and are safe to turn off:

Done.

I think the eslintrc should either turn things off or make them errors

Agree, I kept "worthy" rules as a warns for discussion.

leebyron added a commit that referenced this pull request Mar 8, 2017
commit 324c2795417bc908c92dbf1b6327e15a4daaf4bf
Author: Lee Byron <lee@leebyron.com>
Date:   Tue Mar 7 21:14:34 2017 -0800

    Convert warns to off/error, fix sources

commit 498c0c654bbfbbf70d951164c1c7a38a3a750d01
Merge: b20892d 357ee52
Author: Lee Byron <lee@leebyron.com>
Date:   Tue Mar 7 20:36:44 2017 -0800

    Merge branch 'eslint' of https://github.com/umidbekkarimov/immutable-js into umidbekkarimov-eslint

commit 357ee52
Author: Umidbek Karimov <uma.karimov@gmail.com>
Date:   Tue Mar 7 23:06:17 2017 +0400

    Regenerage `yarn.lock` file.

commit d2bcb51
Merge: f3d4115 82c7b87
Author: Umidbek Karimov <uma.karimov@gmail.com>
Date:   Tue Mar 7 23:03:54 2017 +0400

    Merge branch 'master' into eslint

commit f3d4115
Author: Umidbek Karimov <uma.karimov@gmail.com>
Date:   Tue Mar 7 22:51:43 2017 +0400

    Turn off `vars-on-top`, `no-var`, `consistent-return`, `no-param-reassign` eslint rules.

commit dbc2820
Author: Umidbek Karimov <uma.karimov@gmail.com>
Date:   Tue Mar 7 17:55:38 2017 +0400

    eslint + prettier - jshint
@leebyron leebyron mentioned this pull request Mar 8, 2017
15 tasks
@avocadowastaken
Copy link
Contributor Author

Closing this from bb2fbf1

@avocadowastaken avocadowastaken deleted the eslint branch March 8, 2017 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.