aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-06-28 20:58:49 +0100
committerMichael Williamson <mike@zwobble.org>2016-06-28 20:58:49 +0100
commitd046c4297a04b6eecadf01093382b72bb1b71032 (patch)
treed90fc8dde051f2dba93c41f77506f472269124ba /package.json
parentf557dc7de5fd0dff3a08808e7c4d9736970e6349 (diff)
Replace jshint with eslint
Diffstat (limited to 'package.json')
-rw-r--r--package.json24
1 files changed, 21 insertions, 3 deletions
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
+ }
+ }
}