Add eslint

This commit is contained in:
Tom MacWright
2016-02-09 15:44:32 -05:00
parent a7309ef786
commit 2c6077968b
2 changed files with 45 additions and 33 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "eslint-config-unstyled"
}
+13 -4
View File
@@ -4,8 +4,15 @@
"description": "Utilities and tilelive integration for the MBTiles format.", "description": "Utilities and tilelive integration for the MBTiles format.",
"url": "http://github.com/mapbox/node-mbtiles", "url": "http://github.com/mapbox/node-mbtiles",
"author": "Mapbox (https://www.mapbox.com)", "author": "Mapbox (https://www.mapbox.com)",
"keywords": ["map", "mbtiles"], "keywords": [
"licenses": [{ "type": "BSD" }], "map",
"mbtiles"
],
"licenses": [
{
"type": "BSD"
}
],
"main": "./lib/mbtiles", "main": "./lib/mbtiles",
"repository": { "repository": {
"type": "git", "type": "git",
@@ -24,12 +31,14 @@
"sphericalmercator": "~1.0.1" "sphericalmercator": "~1.0.1"
}, },
"devDependencies": { "devDependencies": {
"tape": "~3.0.0" "tape": "~3.0.0",
"eslint": "~1.00.0",
"eslint-config-unstyled": "^1.1.0"
}, },
"engines": { "engines": {
"node": ">= 0.10.0" "node": ">= 0.10.0"
}, },
"scripts": { "scripts": {
"test": "tape test/*.js" "test": "eslint lib && tape test/*.js"
} }
} }