summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-08-18 10:57:21 +1000
committerdaurnimator <quae@daurnimator.com>2017-08-18 10:57:21 +1000
commit1007332a6854f66c0cbf60f477e064f615faaa74 (patch)
treeef3ee727fae605e517c82b71ff38370588e7ba85
parent7ebe292cc79f580246d365cd0da93f80294b48f0 (diff)
downloadfengari-1007332a6854f66c0cbf60f477e064f615faaa74.tar.gz
fengari-1007332a6854f66c0cbf60f477e064f615faaa74.tar.bz2
fengari-1007332a6854f66c0cbf60f477e064f615faaa74.zip
Move jshint config to package.json
-rw-r--r--.jshintrc7
-rw-r--r--package.json7
-rw-r--r--src/defs.js1
-rw-r--r--src/lauxlib.js1
-rw-r--r--src/ldebug.js1
-rw-r--r--src/ldo.js1
-rw-r--r--src/lfunc.js2
-rw-r--r--src/llimit.js1
-rw-r--r--src/lobject.js1
-rw-r--r--src/lopcodes.js1
-rw-r--r--src/lstate.js1
-rw-r--r--src/ltable.js1
-rw-r--r--src/ltm.js1
-rw-r--r--src/lua.js1
-rw-r--r--src/luaconf.js1
-rw-r--r--src/lualib.js1
-rw-r--r--src/lundump.js1
-rw-r--r--src/lvm.js1
18 files changed, 8 insertions, 23 deletions
diff --git a/.jshintrc b/.jshintrc
deleted file mode 100644
index 77a397d..0000000
--- a/.jshintrc
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "node": true,
- "esversion": 6,
- "indent": false,
- "unused": true,
- "white": false
-}
diff --git a/package.json b/package.json
index e09b3a5..8aaa972 100644
--- a/package.json
+++ b/package.json
@@ -40,5 +40,12 @@
"sprintf-js": "^1.1.1",
"strftime": "^0.10.0",
"tmp": "0.0.31"
+ },
+ "jshintConfig": {
+ "node": true,
+ "esversion": 6,
+ "indent": false,
+ "unused": true,
+ "white": false
}
}
diff --git a/src/defs.js b/src/defs.js
index a125c34..4d5de3b 100644
--- a/src/defs.js
+++ b/src/defs.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const assert = require('assert');
diff --git a/src/lauxlib.js b/src/lauxlib.js
index 68a975d..be11ba0 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const lua = require('./lua.js');
diff --git a/src/ldebug.js b/src/ldebug.js
index 1c55264..3637b5d 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const assert = require('assert');
diff --git a/src/ldo.js b/src/ldo.js
index 426422a..9a1de38 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const assert = require('assert');
diff --git a/src/lfunc.js b/src/lfunc.js
index 7bf4769..b07b803 100644
--- a/src/lfunc.js
+++ b/src/lfunc.js
@@ -1,5 +1,5 @@
-/*jshint esversion: 6 */
"use strict";
+
const assert = require('assert');
const defs = require('./defs.js');
diff --git a/src/llimit.js b/src/llimit.js
index 31862d0..18824b2 100644
--- a/src/llimit.js
+++ b/src/llimit.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const LUAI_MAXCCALLS = 200;
diff --git a/src/lobject.js b/src/lobject.js
index 32fdba5..895e310 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -1,4 +1,3 @@
- /*jshint esversion: 6 */
"use strict";
const assert = require('assert');
diff --git a/src/lopcodes.js b/src/lopcodes.js
index ad555d7..ae4dbb1 100644
--- a/src/lopcodes.js
+++ b/src/lopcodes.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const OpCodes = [
diff --git a/src/lstate.js b/src/lstate.js
index 6cd906d..d09bebd 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const assert = require('assert');
diff --git a/src/ltable.js b/src/ltable.js
index 53a5d79..f7b1167 100644
--- a/src/ltable.js
+++ b/src/ltable.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const assert = require('assert');
diff --git a/src/ltm.js b/src/ltm.js
index 88f25fb..632efe7 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const assert = require('assert');
diff --git a/src/lua.js b/src/lua.js
index 07edaf1..84414de 100644
--- a/src/lua.js
+++ b/src/lua.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const defs = require("./defs.js");
diff --git a/src/luaconf.js b/src/luaconf.js
index 5bb3550..8e7885c 100644
--- a/src/luaconf.js
+++ b/src/luaconf.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const llimit = require('./llimit.js');
diff --git a/src/lualib.js b/src/lualib.js
index a509dc8..50ca433 100644
--- a/src/lualib.js
+++ b/src/lualib.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const lua = require("./lua.js");
diff --git a/src/lundump.js b/src/lundump.js
index 17cdc70..61697b6 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const assert = require('assert');
diff --git a/src/lvm.js b/src/lvm.js
index f974693..1adea8d 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -1,4 +1,3 @@
-/*jshint esversion: 6 */
"use strict";
const assert = require('assert');