Skip to content

Commit

Permalink
feat: added eslinnt workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adeojoemmanuel committed Aug 19, 2023
1 parent 71bc105 commit d35a6eb
Show file tree
Hide file tree
Showing 5 changed files with 2,247 additions and 22 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
env:
es2021: true
browser: true

extends:
- eslint:recommended

parserOptions:
ecmaVersion: 2021
sourceType: module
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint # name of the action (displayed in the github interface)

on: # event list
pull_request: # on a pull request to each of these branches
branches:
- development
- staging
- production

env: # environment variables (available in any part of the action)
NODE_VERSION: 16

jobs: # list of things to do
linting:
name: Linting # job name (unique id)
runs-on: ubuntu-latest # on which machine to run
steps: # list of steps
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}

- name: Code Checkout
uses: actions/checkout@v2

- name: Install Dependencies
run: npm ci

- name: Code Linting
run: npm run lint
Loading

0 comments on commit d35a6eb

Please sign in to comment.