Skip to content

Commit

Permalink
Fix dependencies, add eslint CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tensojka committed Aug 26, 2024
1 parent 109924a commit 9dc810b
Show file tree
Hide file tree
Showing 7 changed files with 610 additions and 523 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ESLint

on:
push:
paths:
- 'frontend/**'
pull_request:
paths:
- 'frontend/**'

jobs:
eslint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint
6 changes: 6 additions & 0 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ module.exports = {
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "./tsconfig.json",
},
plugins: ["@typescript-eslint", "react"],
rules: {},
settings: {
react: {
version: "detect", // Automatically detect the React version
},
},
};
17 changes: 0 additions & 17 deletions frontend/.eslintrc.json

This file was deleted.

Binary file modified frontend/bun.lockb
Binary file not shown.
Loading

0 comments on commit 9dc810b

Please sign in to comment.