Skip to content

Commit

Permalink
Merge pull request mapbox#471 from mapbox/[email protected]
Browse files Browse the repository at this point in the history
bump geojsonhint version to 2.0.0 and ignore (newly introduced) hint …
  • Loading branch information
samanpwbb authored Jul 27, 2016
2 parents ba8d0aa + 1d658f6 commit c5b545b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"geojson-area": "^0.2.1",
"geojson-extent": "^0.3.2",
"geojson-normalize": "0.0.1",
"geojsonhint": "^1.2.0",
"geojsonhint": "^2.0.0beta",
"hat": "0.0.3",
"lodash.isequal": "^4.2.0",
"point-geometry": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = function(ctx) {

api.add = function (geojson) {
var featureCollection = normalize(geojson);
var errors = geojsonhint.hint(featureCollection);
var errors = geojsonhint.hint(featureCollection).filter(e => e.level !== 'warn');
if (errors.length) {
throw new Error(errors[0].message);
}
Expand Down

0 comments on commit c5b545b

Please sign in to comment.