Title: ESLint + Prettier + tsconfig by wmertens · Pull Request #1825 · nodegit/nodegit · GitHub
Open Graph Title: ESLint + Prettier + tsconfig by wmertens · Pull Request #1825 · nodegit/nodegit
X Title: ESLint + Prettier + tsconfig by wmertens · Pull Request #1825 · nodegit/nodegit
Description: This PR touches a lot of files due to the npm run lint final commit. This is all done by prettier and eslint and should be safe. To see the changes without the auto-fixes, look at master...4f78356 Changes: Set up ESLint together with Prettier and a JSDoc formatting plugin Made npm run lint also auto-fix problems that ESLint finds Added a tsconfig.json file so that VSCode (and anything else using tsc to check for errors) can do live code analysis and provide better tab completion. This doesn't touch anything else, it's just a single file. Fixed some JSDoc entries so they were parseable by the Prettier plugin Fixed straightforward ESLint errors (lint commit) Changed some array.some() invocations that used side-effects with their for loop equivalent (lint++ commit) Ran npm run lint ESLint finds more problems than JSHint, and integrating with Prettier is faster than having the two separately, plus it automatically disables ESLint rules related to formatting which is automated by Prettier. The JSDoc plugin ensures that the JSDoc entries are consistently formatted, and helps with detecting unparseable descriptions (they won't format). Merging this will cause open PRs to have merge conflicts. To fix those, there are two options: Rebasing the branch on top of master, running npm run lint after every merge conflict fixup (preferred for clean branches) Cherry-picking the commit that adds eslint, running npm run lint and committing the result (easiest)
Open Graph Description: This PR touches a lot of files due to the npm run lint final commit. This is all done by prettier and eslint and should be safe. To see the changes without the auto-fixes, look at master...4f78356 ...
X Description: This PR touches a lot of files due to the npm run lint final commit. This is all done by prettier and eslint and should be safe. To see the changes without the auto-fixes, look at master...4f78356 ...
Opengraph URL: https://github.com/nodegit/nodegit/pull/1825
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:930f4fe6-758f-4c1e-df63-0d259a5feb84 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CE60:A87A4:3B049A:52C071:6970A6FE |
| html-safe-nonce | 76cf4b7662b9db544fee0427c4f5588c34a6091e3ca112dc57fbc94692e0857b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTYwOkE4N0E0OjNCMDQ5QTo1MkMwNzE6Njk3MEE2RkUiLCJ2aXNpdG9yX2lkIjoiMTAyMTAwNzM3OTc5MDA3OTc0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b60903eba092a9098a03e65213bfeb94e2c8376d2770eb42f6de92f4e9cd2b5c |
| hovercard-subject-tag | pull_request:586017278 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodegit/nodegit/pull/1825/files |
| twitter:image | https://avatars.githubusercontent.com/u/54934?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/54934?s=400&v=4 |
| og:image:alt | This PR touches a lot of files due to the npm run lint final commit. This is all done by prettier and eslint and should be safe. To see the changes without the auto-fixes, look at master...4f78356 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b06a4c45c45fd0bb038b3759265ea6e38211f45d18130bc65261990be6b5972a |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0e1c4964831785bd64cb22d82e7cf2391ae01f45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width