From 1007332a6854f66c0cbf60f477e064f615faaa74 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 18 Aug 2017 10:57:21 +1000 Subject: Move jshint config to package.json --- .jshintrc | 7 ------- package.json | 7 +++++++ src/defs.js | 1 - src/lauxlib.js | 1 - src/ldebug.js | 1 - src/ldo.js | 1 - src/lfunc.js | 2 +- src/llimit.js | 1 - src/lobject.js | 1 - src/lopcodes.js | 1 - src/lstate.js | 1 - src/ltable.js | 1 - src/ltm.js | 1 - src/lua.js | 1 - src/luaconf.js | 1 - src/lualib.js | 1 - src/lundump.js | 1 - src/lvm.js | 1 - 18 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 .jshintrc 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'); -- cgit v1.2.3-70-g09d2