Closed tristen closed 5 years ago
Carto-cam should be using this (though is not yet), so we should export lint-gazetteer 👍
@dasulit oh yes! cool. Any objection to creating a separate package/repo for this and leaving this project to just export place data?
cc/ @mourner
Hm, exporting as a separate package does seem a bit odd to me since the source of truth for the gazetteer spec lives here, ideally that spec and this linter would come together. I'm open to going that route if this is an immediate blocker to you, though.
As an alternate suggestion, can we not run geojsonhint/json-lint in lint-gazetteer
, and just have checking for valid json/geojson be the responsibility of the consumer?
As an alternate suggestion, can we not run geojsonhint/json-lint in lint-gazetteer, and just have checking for valid json/geojson be the responsibility of the consumer?
Ah yeah, that's a good suggestion. Let's do that 👍
Exporting lint-gazetteer means a few packages (@mapbox/geojsonhint, json-lint) are added as dependencies when gazetteer is installed. The drawback is when you just want to use gazetteer for place data, you get a bunch more stuff.
@dasulit do you know the backstory here? I did a quick organization search for its use and I don't see it used anywhere. If it's necessary, maybe we could set it up as its own
gazetteer-lint
package that tests here require.