Skip to content

Commit

Permalink
Merge pull request #51 from CMU-313/standardJS-fixes
Browse files Browse the repository at this point in the history
Standard js fixes
  • Loading branch information
ogometz authored Nov 4, 2024
2 parents da8a888 + 456c3e5 commit e1026e0
Show file tree
Hide file tree
Showing 807 changed files with 125,178 additions and 107,207 deletions.
26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": "standard",
"rules": {
"camelcase": "off",
"no-tabs": "off",
"no-prototype-builtins": "off",
"new-cap": "off",
"n/no-deprecated-api": "off",
"no-mixed-spaces-and-tabs": "off",
"no-new": "off",
"array-callback-return": "off",
"no-unmodified-loop-condition": "off",
"no-global-assign": "off",
"no-return-assign": "off",
"no-return-in-global-scope": "off",
"no-global-return": "off"
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "script"
},
"env": {
"node": true
}
}

12 changes: 11 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ jobs:
with:
useLockFile: false

- name: Install Dependencies
run: npm install

- name: Install StandardJS Explicitly # Ensures StandardJS is present
run: npm install standard --save-dev

- name: Run ESLint # Runs ESLint with explicit config path
run: npx eslint . -c ./.eslintrc.json


- name: Setup for Redis
env:
SETUP: >-
Expand Down Expand Up @@ -84,4 +94,4 @@ jobs:
run: npm run coverage

- name: Test coverage
uses: coverallsapp/github-action@v2
uses: coverallsapp/github-action@v2
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ coverage
*.log
test/files/normalise.jpg.png
test/files/normalise-resized.jpg
package-lock.json
*.mongodb
link-plugins.sh
test.sh
Expand Down
Loading

0 comments on commit e1026e0

Please sign in to comment.