Skip to content

Commit

Permalink
Merge pull request #64 from erik-sth/Add-Tests
Browse files Browse the repository at this point in the history
Added codeql analyser and eslint.
  • Loading branch information
erik-sth authored Dec 15, 2023
2 parents aee9f81 + 0dcfae2 commit f38a151
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module.exports = {
plugins: ['@typescript-eslint'],
rules: {
indent: ['error', 4],
'linebreak-style': ['error', 'windows'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
},
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/Eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ESLint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run ESLint
run: npx eslint . --ext .ts

0 comments on commit f38a151

Please sign in to comment.