Questions tagged [jshint]

An innovative tool created by the community to identify mistakes and possible issues in JavaScript code, while also ensuring coding standards are met.

How can parameters be sent without using the .jshintrc file with the gulp-jshint package?

Currently in the process of transitioning a grunt project to a gulp project. In the existing gruntfile, there is a section for the jshint task that looks like this: jshint: { options: { trailing:true, evil:false, indent:4, ...

Updating a single .jshintrc option for a folder

My project has a .jshintrc file at the root, containing the following settings: { "node": true, "smarttabs": true, "undef": true, "unused": true } While these settings work well for node-related code in my project, they are not suitable for brows ...

Error encountered with :jshint-junit-reporter

After creating a demo for jshint with Grunt, the code is as follows: module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('jshint-junit-reporter'); grunt.initConfig({ jshint: { a ...

Checking JavaScript files with TSLint

After spending many hours attempting to make this work, I still haven't had any success... I am wondering: How can I utilize TSLint for a .js file? The reason behind this is my effort to create the best possible IDE for developing numerous JavaScript scr ...

JShint malfunctioning

My attempt to install jshint using npm with the command npm install -g jshint didn't seem to work correctly. Even after I reinstalled node due to previous issues, running the command again yielded no results in the terminal. The output from my install ...

This function appears to have an excessive number of statements, totaling 41 in total

Currently, I am using this controller: .controller('ctrl', function($scope, $rootScope, $timeout, $alert, $location, $tooltip, $popover, BetSlipFactory, AccordionsFactory, AuthFac ...

The JSHint error message that appeared was looking for an identifier but found the reserved word 'import' instead

I am encountering a warning message in vscode: There is an 'import' statement that is causing an issue. The error message reads: Expected an identifier and instead saw 'import' (a reserved word). (W024)jshint(W024) Here is the code snippet in question: ...

Having trouble executing/locating JSHint

Just starting out with Grunt and struggling to set up a configuration file. I'm encountering some issues while trying to run JSHint as it can't seem to locate the file. Here is how my directory structure looks: ./htdocs/[js, css, sass, images, ...