Skip to content
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

Switch from JSHint to ESLint #122

Merged
merged 1 commit into from
Jul 10, 2019
Merged

Switch from JSHint to ESLint #122

merged 1 commit into from
Jul 10, 2019

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Jul 9, 2019

This switches us from JSHint to ESLint, improving the quality and consistency of our code. (We also use ESLint elsewhere at Airtable.)

To break down this change:

  • We made several cleanups before this commit to ease the transition. See #95, #96, #97, #98, #99, #101 (and a fix in #107), #105, #109, #118, #119, #120
  • Install eslint
  • Add .eslintrc.json and .eslintignore (and a slightly-different .eslintrc.json in test)
  • Remove JSHint. Involved uninstalling the package, removing it from the gruntfile, and removing jshint ignores.
  • Update the lint task in package.json
  • Update return into return void 0 for consistent returns in callbackToPromise
  • Add one // eslint-disable-line comment in a single test file
  • Run eslint --fix ., automatically fixing all of the remaining warnings and errors

The whitespace-free version of this diff is much easier to review.

This switches us from JSHint to ESLint, improving the quality and
consistency of our code. (We also use ESLint elsewhere at Airtable.)

To break down this change:

* We made several cleanups before this commit to ease the transition.
  See [#95][1], [#96][2], [#97][3], [#98][4], [#99][5], [#101][6] (and a
  fix in [#107][7]), [#105][8], [#109][9], [#118][10], [#119][11],
  [#120][12]
* Installed `eslint`
* Add `.eslintrc.json` and `.eslintignore` (and a slightly-different
  `.eslintrc.json` in `test`)
* Remove JSHint. Involved uninstalling the package, removing it from the
  gruntfile, and removing `jshint ignore`s.
* Update the `lint` task in `package.json`
* Update `return` into `return void 0` for consistent returns in
  `callbackToPromise`
* Add one `// eslint-disable-line` comment in a single test file
* Run `eslint --fix .`, automatically fixing all of the remaining
  warnings and errors

[1]: #95
[2]: #96
[3]: #97
[4]: #98
[5]: #99
[6]: #101
[7]: #107
[8]: #105
[9]: #109
[10]: #118
[11]: #119
[12]: #120
@EvanHahn EvanHahn requested review from jbbakst and kasrak July 9, 2019 19:51
@EvanHahn EvanHahn merged commit 52eb624 into master Jul 10, 2019
@EvanHahn EvanHahn deleted the eslint branch July 10, 2019 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants