From ba94af0d06f0f0ee97f446d0c0fecdd0fce7ae54 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Fri, 5 Feb 2016 18:16:16 +0200 Subject: [PATCH] upgrade deps, update eslint --- .eslintrc | 38 -------------------------------------- package.json | 24 ++++++++++++++---------- test/validate.test.js | 4 ++-- 3 files changed, 16 insertions(+), 50 deletions(-) delete mode 100644 .eslintrc diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 2218e58..0000000 --- a/.eslintrc +++ /dev/null @@ -1,38 +0,0 @@ -{ - "rules": { - "no-use-before-define": [2, "nofunc"], - "no-lonely-if": 2, - "no-else-return": 2, - "no-new": 2, - "no-throw-literal": 2, - "no-self-compare": 2, - "no-void": 2, - "no-eq-null": 2, - - "quotes": [2, "single"], - "indent": 2, - "camelcase": 2, - "comma-style": 2, - "key-spacing": 2, - "new-cap": 2, - "no-empty": 2, - "no-multi-spaces": 2, - "wrap-iife": 2, - - "space-after-function-name": 2, - "space-in-parens": 2, - "space-before-blocks": 2, - "space-after-keywords": 2, - "space-unary-ops": 2, - "space-before-function-parentheses": [2, {"anonymous": "always", "named": "never"}], - "space-in-brackets": 2, - - "brace-style": 0, - "curly": 0, - "no-shadow": 0 - }, - "env": { - "node": true, - "browser": true - } -} diff --git a/package.json b/package.json index df9c555..75ccd59 100644 --- a/package.json +++ b/package.json @@ -37,20 +37,24 @@ }, "homepage": "https://github.com/mapbox/geobuf", "devDependencies": { - "benchmark": "~1.0.0", - "browserify": "^11.0.1", - "coveralls": "~2.11.2", - "eslint": "^0.17.1", + "benchmark": "~2.1.0", + "browserify": "^13.0.0", + "coveralls": "~2.11.6", + "eslint": "^1.10.3", + "eslint-config-mourner": "^1.0.1", "geojson-fixtures": "0.6.1", "in-publish": "^2.0.0", - "istanbul": "~0.3.11", - "mkdirp": "^0.5.0", - "tap": "~0.7.1", + "istanbul": "~0.4.2", + "mkdirp": "^0.5.1", + "tap": "~5.4.2", "uglifyjs": "^2.4.10" }, "dependencies": { - "concat-stream": "^1.4.7", - "pbf": "^1.3.2", - "shapefile": "~0.3.0" + "concat-stream": "^1.5.1", + "pbf": "^1.3.5", + "shapefile": "~0.3.1" + }, + "eslintConfig": { + "extends": "mourner" } } diff --git a/test/validate.test.js b/test/validate.test.js index 8102f79..77d7730 100644 --- a/test/validate.test.js +++ b/test/validate.test.js @@ -31,7 +31,7 @@ test('roundtrip a line with potential accumulating error', function (t) { // line of 0.00000049 * 40 = 0.0000196 over the full length. var feature = { 'type': 'MultiPolygon', - 'coordinates': [[[ ]]] + 'coordinates': [[[]]] }; var points = 40; // X coordinates [0, 1.00000049, 2.00000098, 3.00000147, 4.00000196, ..., @@ -54,7 +54,7 @@ test('roundtrip a circle with potential accumulating error', function (t) { // Generate an approximate circle with 16 points around. var feature = { 'type': 'MultiPolygon', - 'coordinates': [[[ ]]] + 'coordinates': [[[]]] }; var points = 16; for (var i = 0; i <= points; i++) {