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

Upgrade typescript, prettier, et al to continue to modernise build environment #2519

Merged
merged 4 commits into from
Oct 24, 2023

Conversation

smallsaucepan
Copy link
Member

Upgrading typescript, prettier and a couple of other development libraries. Aims to modernise build environment. Tried to keep actual business logic code changes to a minimum. Largely succeeded as most changes are punctuation, or in a few cases tightening of type definitions.

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Have read How To Contribute.
  • Run npm test at the sub modules where changes have occurred.
  • Run npm run lint to ensure code style at the turf module level.

Submitting a new TurfJS Module.

n/a

…ey both need to be done for any code changes). Fix some no-op type definitions i.e. X extends any, and enforce templated property types as having to extend GeoJsonProperties throughout.
… = GeoJsonProperties problem in geojson-rbush. Also fix a couple of floating point precision related issues that eslint now apparently catches!
…ve changed) to avoid widespread, minor formatting changes (trailing commas mostly).
Copy link
Collaborator

@twelch twelch left a comment

Choose a reason for hiding this comment

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

Thanks for keeping this PR slim. I imagine there was more it could have taken on. See my few comments but otherwise I approve.

packages/turf-bbox-clip/index.ts Show resolved Hide resolved
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^4.8.0",
"@typescript-eslint/parser": "^4.8.0",
"@types/node": "18.11.9",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the intention to lock the version for this particular dependency? Just curious.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ran in to problems straying too far from this version. For example at time of committing 18.18.6 falls over. Could maybe loosen to patch ~ level updates, though want to understand more how the relationship works between this and whatever depends on it first.

@smallsaucepan
Copy link
Member Author

Thanks for taking a look @twelch

@smallsaucepan smallsaucepan merged commit e5afd5c into Turfjs:master Oct 24, 2023
3 checks passed
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.

3 participants