Skip to content
New issue

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

Downloading JSHint static tool and creating the necessary file JSHintConifg.jshintrc #55

Draft
wants to merge 1 commit into
base: f24
Choose a base branch
from

Conversation

dmohanadi
Copy link

@dmohanadi dmohanadi commented Oct 27, 2024

-Downloaded JSHint through npm install --save-dev jshint in the command line which created all the necessary files for the tool to work.
-Created JSHintConifg.jshintrc file with
{
"undef": true,
"unused": true,
"globals": {
"isApproved": false
}
}

  • Updated package.json through adding:
    "jshint": "jshint ./src"
    in line 15 under "scripts" so we can use npm run jshint so the tool can identify all the undefined and unused variables in the src files specifically so there can be more focused linting.

The output of npm run jshint in the terminal is:
Screenshot 2024-10-27 at 1 48 16 AM

The installation of JSHint package
Screenshot 2024-10-27 at 8 23 12 PM

@dmohanadi dmohanadi self-assigned this Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant