Show HN: GeoLint, an ESLint-style linter for GeoJSON

1 pointsposted 8 hours ago
by appleappleapple

2 Comments

nateb2022

7 hours ago

Currently using https://github.com/placemark/check-geojson for this usecase right now.

Noticed your code includes a custom JSON parser, which seems to silently overwrite duplicate keys, which is absolutely something a linter should warn about.

And instead of using fast-glob, I'd recommend https://superchupu.dev/tinyglobby or better yet, use node:fs and node:fs/promises which are built in to modern node already.

And I noticed your package.json includes some bizarre fields,

  - "types": "./dist/index.d.ts" is unnecessary since you're an ESM module and require Node >22
  - "./package.json": "./package.json" is a Node 12-14 ESM workaround

appleappleapple

7 hours ago

Good looking out, great suggestions. This is one of my first times building an npm package so I appreciate the detailed look here