Skip to content

Commit 1c92cff

Browse files
authored
Merge pull request #1 from sjhallo07/copilot/add-jshint-config-and-update-workflow
Fix JSHint linting errors by adding config and excluding node_modules
2 parents 37c93a4 + a42f439 commit 1c92cff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ jobs:
5555
- name: Run Linter
5656
run: |
5757
# This command finds all JavaScript files recursively and runs JSHint on them
58-
find ./server/database -name "*.js" -exec jshint {} +
58+
find ./server/database -name "*.js" -not -path "*/node_modules/*" -exec jshint {} +
5959
echo "Linted all the js files successfully"

.jshintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"node": true,
3+
"esversion": 8
4+
}

0 commit comments

Comments
 (0)