summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-10 02:07:23 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-10 02:36:36 +1100
commit54c4a6a66778466630cca7a9223c760942c7ab70 (patch)
tree384ffc472ca9c8282abbd0a4a39f8c4693331062 /package.json
parent382bfe27205d5ade172fa088fcab0b2e123838e4 (diff)
downloadfengari-54c4a6a66778466630cca7a9223c760942c7ab70.tar.gz
fengari-54c4a6a66778466630cca7a9223c760942c7ab70.tar.bz2
fengari-54c4a6a66778466630cca7a9223c760942c7ab70.zip
package.json: Add eslint; remove jshint config
Diffstat (limited to 'package.json')
-rw-r--r--package.json39
1 files changed, 33 insertions, 6 deletions
diff --git a/package.json b/package.json
index 527debf..526a650 100644
--- a/package.json
+++ b/package.json
@@ -8,6 +8,7 @@
},
"scripts": {
"build": "webpack",
+ "lint": "eslint src/",
"test": "tape tests/*.js tests/test-suite/*.js | faucet",
"test-inprogress": "tape tests/test-suite/inprogress/*.js | faucet"
},
@@ -32,6 +33,7 @@
"babel-core": "^6.26.0",
"babel-loader": "^7.1.1",
"babel-preset-env": "^1.6.0",
+ "eslint": "^4.13.0",
"faucet": "^0.0.1",
"tape": "^4.8.0",
"webpack": "^3.5.5"
@@ -42,11 +44,36 @@
"strftime": "^0.10.0",
"tmp": "^0.0.33"
},
- "jshintConfig": {
- "node": true,
- "esversion": 6,
- "indent": false,
- "unused": true,
- "white": false
+ "eslintConfig": {
+ "env": {
+ "browser": true,
+ "es6": true,
+ "node": true
+ },
+ "extends": "eslint:recommended",
+ "rules": {
+ "indent": [
+ "error",
+ 4,
+ {"SwitchCase": 1}
+ ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "no-console": 0,
+ "no-empty": [
+ 2,
+ { "allowEmptyCatch": true }
+ ],
+ "no-unused-vars": [
+ 2,
+ { "args": "none" }
+ ],
+ "semi": [
+ "error",
+ "always"
+ ]
+ }
}
}