-
Notifications
You must be signed in to change notification settings - Fork 407
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
Only use own properties in query string serializer #105
Merged
EvanHahn
merged 1 commit into
master
from
only_use_own_properties_in_query_string_serializer
May 6, 2019
Merged
Only use own properties in query string serializer #105
EvanHahn
merged 1 commit into
master
from
only_use_own_properties_in_query_string_serializer
May 6, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before (URI parameters decoded for readability): function Person(name) { this.name = name; } Person.prototype.species = 'human'; objectToQueryParamString({me: new Person('Cher')}) // => 'me[name]=Cher&me[species]=human' After: objectToQueryParamString({me: new Person('Cher')}) // => 'me[name]=Cher' This adds test coverage for this helper. ESLint is the main motivation for this change, where our existing code will throw a [`guard-for-in` error][1]. [1]: https://eslint.org/docs/rules/guard-for-in
kasrak
approved these changes
Apr 30, 2019
EvanHahn
pushed a commit
that referenced
this pull request
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][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
pushed a commit
that referenced
this pull request
Jul 10, 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][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] * 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 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
PeterPan627
added a commit
to PeterPan627/airtable.js
that referenced
this pull request
May 28, 2023
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] * 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 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]: Airtable/airtable.js#95 [2]: Airtable/airtable.js#96 [3]: Airtable/airtable.js#97 [4]: Airtable/airtable.js#98 [5]: Airtable/airtable.js#99 [6]: Airtable/airtable.js#101 [7]: Airtable/airtable.js#107 [8]: Airtable/airtable.js#105 [9]: Airtable/airtable.js#109 [10]: Airtable/airtable.js#118 [11]: Airtable/airtable.js#119 [12]: Airtable/airtable.js#120
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before (URI parameters decoded for readability):
After:
This adds test coverage for this helper.
ESLint is the main motivation for this change, where our existing code will throw a
guard-for-in
error.