From 84956361470b7fcde6f96923f26813f1fbaf65fc Mon Sep 17 00:00:00 2001 From: Nikos Kalogridis Date: Tue, 23 Oct 2018 13:28:02 +0300 Subject: [PATCH] Fix for Object.freeze --- lib/index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index f058a56..c447c91 100644 --- a/lib/index.js +++ b/lib/index.js @@ -46,7 +46,7 @@ function jslinter(update) { var jslint = compileJSLint( jsLintProgram.replace( "export default Object.freeze(function jslint(", - "function jslint(" + "const jslint = Object.freeze(function jslint(" ) ); var result = jslint(jsLintProgram); diff --git a/package.json b/package.json index 3e5df3f..a7244fa 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "code-quality", "static-analysis" ], - "version": "1.2.6", + "version": "1.2.7", "author": "Nikos Kalogridis", "bin": { "jslint": "./bin/jslint.js"