From d046c4297a04b6eecadf01093382b72bb1b71032 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 28 Jun 2016 20:58:49 +0100 Subject: Replace jshint with eslint --- package.json | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 80f62f0..492757c 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "duck": "~0.1.11", "uglify-js": "~2.4.8", "temp": "~0.7.0", - "jshint": "^2.5.2" + "eslint": "2.13.1", + "eslint-config-airbnb-base": "3.0.1" }, "browser": { "./lib/unzip.js": "./browser/unzip.js", @@ -43,9 +44,26 @@ "mammoth": "bin/mammoth" }, "scripts": { - "pretest": "jshint lib tests", + "pretest": "eslint lib tests", "test": "mocha tests --recursive", "prepublish": "make mammoth.browser.min.js" }, - "license": "BSD-2-Clause" + "license": "BSD-2-Clause", + "eslintConfig": { + "extends": "eslint:recommended", + + "rules": { + "indent": ["error", 4], + "no-unused-vars": ["error", {"args": "none"}], + "object-curly-spacing": ["error", "never"] + }, + + "globals": { + "Buffer": false, + "console": true, + "exports": true, + "module": true, + "require": false + } + } } -- cgit v1.2.3