summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.jshintrc52
-rw-r--r--.npmignore2
-rw-r--r--lib/handlebars.js1
-rw-r--r--lib/handlebars.runtime.js1
-rw-r--r--lib/handlebars/compiler/helpers.js4
-rw-r--r--lib/handlebars/compiler/javascript-compiler.js2
-rw-r--r--lib/handlebars/utils.js1
-rw-r--r--package.json1
-rw-r--r--src/parser-prefix.js1
-rw-r--r--src/parser-suffix.js1
10 files changed, 1 insertions, 65 deletions
diff --git a/.jshintrc b/.jshintrc
deleted file mode 100644
index 313015e..0000000
--- a/.jshintrc
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "predef": [
- "console",
- "require",
- "suite",
- "equal",
- "equals",
- "test",
- "testBoth",
- "raises",
- "deepEqual",
- "start",
- "stop",
- "ok",
- "strictEqual",
- "module",
- "define",
-
- "describe",
- "it",
- "afterEach",
- "beforeEach"
- ],
-
- "node" : true,
- "browser" : true,
- "esnext": true,
-
- "boss" : true,
- "curly": false,
- "debug": false,
- "devel": false,
- "eqeqeq": false,
- "eqnull": true,
- "evil": true,
- "forin": false,
- "immed": false,
- "laxbreak": true,
- "newcap": true,
- "noarg": true,
- "noempty": false,
- "nonew": false,
- "nomen": false,
- "onevar": false,
- "plusplus": false,
- "regexp": false,
- "undef": true,
- "unused": true,
- "sub": true,
- "strict": false,
- "white": false
-}
diff --git a/.npmignore b/.npmignore
index 6b8c8bf..41cf1f2 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,7 +1,7 @@
.DS_Store
.gitignore
.rvmrc
-.jshintrc
+.eslintrc
.travis.yml
.rspec
Gemfile
diff --git a/lib/handlebars.js b/lib/handlebars.js
index 3e566a7..3f3ba48 100644
--- a/lib/handlebars.js
+++ b/lib/handlebars.js
@@ -32,7 +32,6 @@ inst.create = create;
inst.Visitor = Visitor;
-/*jshint -W040 */
/* istanbul ignore next */
let $Handlebars = global.Handlebars;
/* istanbul ignore next */
diff --git a/lib/handlebars.runtime.js b/lib/handlebars.runtime.js
index e7b149b..75a6a7a 100644
--- a/lib/handlebars.runtime.js
+++ b/lib/handlebars.runtime.js
@@ -29,7 +29,6 @@ function create() {
let Handlebars = create();
Handlebars.create = create;
-/*jshint -W040 */
/* istanbul ignore next */
let root = typeof global !== 'undefined' ? global : window,
$Handlebars = root.Handlebars;
diff --git a/lib/handlebars/compiler/helpers.js b/lib/handlebars/compiler/helpers.js
index 31daf6d..fc0120c 100644
--- a/lib/handlebars/compiler/helpers.js
+++ b/lib/handlebars/compiler/helpers.js
@@ -33,7 +33,6 @@ export function stripComment(comment) {
}
export function preparePath(data, parts, locInfo) {
- /*jshint -W040 */
locInfo = this.locInfo(locInfo);
let original = data ? '@' : '',
@@ -64,7 +63,6 @@ export function preparePath(data, parts, locInfo) {
}
export function prepareMustache(path, params, hash, open, strip, locInfo) {
- /*jshint -W040 */
// Must use charAt to support IE pre-10
let escapeFlag = open.charAt(3) || open.charAt(2),
escaped = escapeFlag !== '{' && escapeFlag !== '&';
@@ -73,7 +71,6 @@ export function prepareMustache(path, params, hash, open, strip, locInfo) {
}
export function prepareRawBlock(openRawBlock, content, close, locInfo) {
- /*jshint -W040 */
if (openRawBlock.path.original !== close) {
let errorNode = {loc: openRawBlock.path.loc};
@@ -91,7 +88,6 @@ export function prepareRawBlock(openRawBlock, content, close, locInfo) {
}
export function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) {
- /*jshint -W040 */
// When we are chaining inverse calls, we will not have a close path
if (close && close.path && openBlock.path.original !== close.path.original) {
let errorNode = {loc: openBlock.path.loc};
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js
index 75e50d2..8830661 100644
--- a/lib/handlebars/compiler/javascript-compiler.js
+++ b/lib/handlebars/compiler/javascript-compiler.js
@@ -425,7 +425,6 @@ JavaScriptCompiler.prototype = {
//
// Push the data lookup operator
lookupData: function(depth, parts) {
- /*jshint -W083 */
if (!depth) {
this.pushStackLiteral('data');
} else {
@@ -436,7 +435,6 @@ JavaScriptCompiler.prototype = {
},
resolvePath: function(type, parts, i, falsy) {
- /*jshint -W083 */
if (this.options.strict || this.options.assumeObjects) {
this.push(strictLookup(this.options.strict, this, parts, type));
return;
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js
index f474f29..c522394 100644
--- a/lib/handlebars/utils.js
+++ b/lib/handlebars/utils.js
@@ -1,4 +1,3 @@
-/*jshint -W004 */
const escape = {
'&': '&',
'<': '&lt;',
diff --git a/package.json b/package.json
index bc4be68..7cff48f 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,6 @@
"grunt-contrib-concat": "0.x",
"grunt-contrib-connect": "0.x",
"grunt-contrib-copy": "0.x",
- "grunt-contrib-jshint": "0.x",
"grunt-contrib-requirejs": "0.x",
"grunt-contrib-uglify": "0.x",
"grunt-contrib-watch": "0.x",
diff --git a/src/parser-prefix.js b/src/parser-prefix.js
index a4ba487..e26b993 100644
--- a/src/parser-prefix.js
+++ b/src/parser-prefix.js
@@ -1,2 +1 @@
-/* jshint ignore:start */
/* istanbul ignore next */
diff --git a/src/parser-suffix.js b/src/parser-suffix.js
index 67e3348..6e4aa20 100644
--- a/src/parser-suffix.js
+++ b/src/parser-suffix.js
@@ -1,2 +1 @@
export default handlebars;
-/* jshint ignore:end */