Skip to content

Commit

Permalink
Merge pull request #3 from gdsc-nits-org/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rishinhk004 authored Sep 28, 2024
2 parents 75a8125 + af7a352 commit ba30278
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# ESLint is a tool for identifying and reporting on patterns
# found in ECMAScript/JavaScript code.
# More details at https://github.com/eslint/eslint
# and https://eslint.org

name: ESLint

on:
push:
branches:
- main
- dev

pull_request:
types: [opened, synchronize, reopened]

issue_comment:
types: [created, edited, deleted]

jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21.4.0

- name: Install dependencies
run: npm install

- name: Run ESLint
run: npm run lint
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"lint": "eslint . --ext .jsx --ext .js --fix",
"pretty": "prettier --write .",
"precommit": "lint-staged",
"preinstall": "npx only-allow pnpm",
"prepare": "simple-git-hooks"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200

0 comments on commit ba30278

Please sign in to comment.