Remove jshint completely
This commit is contained in:
@@ -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
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
.DS_Store
|
||||
.gitignore
|
||||
.rvmrc
|
||||
.jshintrc
|
||||
.eslintrc
|
||||
.travis.yml
|
||||
.rspec
|
||||
Gemfile
|
||||
|
||||
@@ -32,7 +32,6 @@ inst.create = create;
|
||||
|
||||
inst.Visitor = Visitor;
|
||||
|
||||
/*jshint -W040 */
|
||||
/* istanbul ignore next */
|
||||
let $Handlebars = global.Handlebars;
|
||||
/* istanbul ignore next */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*jshint -W004 */
|
||||
const escape = {
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
/* jshint ignore:start */
|
||||
/* istanbul ignore next */
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export default handlebars;
|
||||
/* jshint ignore:end */
|
||||
|
||||
Reference in New Issue
Block a user