我有问题的馀烬-cli 0.0.28。我所有的初始化程序都无法加载。我得到了以下错误。
未定义的ReferenceError:模块
为每个初始化程序创建的每个jshit.js文件都会引发错误。
示例:
define("fp-mobile/initializers/authentication.jshint",
[],
function() {
"use strict";
### This is the line that is blowing up.
module('JSHint - fp-mo
grunt --版本
grunt-cli v0.1.8
grunt v0.4.1
$ npm -v
1.2.18
$ node -v
v0.10.6
当我运行grunt init来创建Gruntfile.js时,我得到错误:
$ grunt init
A valid Gruntfile could not be found. Please see the getting started guide for
more information on how to configure grunt: http://gruntjs.com/getting-started
Fatal error: Un
在下面的日志中,我收到错误"Cannot read property‘gulpfile.js’of undefined“
var gulp = require('gulp');
var args = require('yargs').argv;
var $ = require('gulp-load-plugins')({lazy:true});
gulp.task('vet',function(){
log('Analyzing source with JSHint and JSCS');
我在循环中创建了两个匿名函数,但是jshint只在anon函数引用未传递给它的变量时才发出警告。
为什么会这样呢?
(function(){
for(var i=0; i<5; ++i){
var age = 9001;
//This has a jshint warning, as it uses age
var cutoffs = [1800,12000].map(function(cutoff){
return cutoff < age;
});
//but this doesn't cause a warnin
我的gulp应用程序似乎工作得很好,但是由于某些原因,jQuery没有被执行。我对古普不熟悉,我搞不懂这个问题。
这是我的gulpfile.js
var gulp = require('gulp');
var sass = require('gulp-sass');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var concat = require('gulp-concat');
var uglify
问题:
我创建了一个react应用程序。这给了我一个错误
Line 13: Expected an assignment or function call and instead saw an expression no-unused-expressions
这是导致错误的代码。
renderList = movies => {
if (movies) {
return movies.map((movie, index) => {
<div>Hi</div>;
});
}
};
有人能帮我修改
我最近安装了jshint。
我试着跑:
jshint /var/lib/jenkins/workspace/project/src/ --reporter=jslint > /home/user/Desktop/jshint.xml --exclude pattern
jshint --help
-exclude STRING Exclude files matching the given filename pattern
(same as .jshintignore)
--exclude-path STRINGPass in a c