Grunt task to run geojsonhint
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tasks
.jshintrc
Gruntfile.js
README.md
package.json

README.md

grunt-geojsonhint

Grunt task to run geojsonhint.

Usage

Install the plugin: npm install grunt-geojsonhint --save-dev, add it to your Gruntfile.js: grunt.loadNpmTasks('grunt-geojsonhint');, add a target for the files you want to lint:

geojsonhint: {
	files: [
		'node_modules/geojsonhint/test/data/good/*.geojson'
	]
}

Example Gruntfile.js:

module.exports = function (grunt) {
	grunt.initConfig({
		geojsonhint: {
			good: [
				'node_modules/geojsonhint/test/data/good/*.geojson'
			],
			bad: [
				'node_modules/geojsonhint/test/data/bad/*.geojson'
			]
		}
	});

	grunt.loadNpmTasks('grunt-geojsonhint');

	grunt.registerTask('default', ['geojsonhint']);
}