We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My grunt file is super simple:
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-jsxhint'); /* Project configuration */ grunt.initConfig({ options: { jshintrc: '.jshintrc', ignores: [], additionalSuffixes: ['.js', '.ios.js'] }, jshint: { all: ['./app/index.ios.js'] } }); /* Test Tasks */ grunt.registerTask('test', ['jshint']); };
When I do a grunt test, I get the following errors.
grunt test
But when I installed npm install -g jsxhint I can do a test and see the proper result
npm install -g jsxhint
The text was updated successfully, but these errors were encountered:
I figured out what was wrong with my Gruntfile.
You need to load the task in: grunt.loadNpmTasks('grunt-jsxhint');
grunt.loadNpmTasks('grunt-jsxhint');
After grunt.initConfig({}) has been set, or else it won't be able to pull any grunt config properties
grunt.initConfig({})
This would look like this:
module.exports = function(grunt) { /* Project configuration */ grunt.initConfig({ options: { jshintrc: '.jshintrc', ignores: [], additionalSuffixes: ['.js', '.ios.js'] }, jshint: { all: ['./app/index.ios.js'] } }); grunt.loadNpmTasks('grunt-jsxhint'); /* Test Tasks */ grunt.registerTask('test', ['jshint']); };
Sorry, something went wrong.
No branches or pull requests
My grunt file is super simple:
When I do a
grunt test
, I get the following errors.But when I installed
npm install -g jsxhint
I can do a test and see the proper resultThe text was updated successfully, but these errors were encountered: