Skip to content

Commit

Permalink
Add adjustment of default proposal parameters to FE (#130)
Browse files Browse the repository at this point in the history
* Add proposal that updates default prop params (see #127)

* Add display of generic proposal

* Fix dependencies, add eslint CI

* Update CI
  • Loading branch information
tensojka authored Aug 26, 2024
1 parent e79e3b0 commit 65e3c7b
Show file tree
Hide file tree
Showing 15 changed files with 759 additions and 582 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ESLint

on:
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: 22
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint
16 changes: 6 additions & 10 deletions .github/workflows/tsc.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: Typescript
name: Notification bot – Typescript compile

on:
push:
paths:
- '**.ts'
- '.github/'
- 'tsconfig.json'
- 'package.json'
pull_request:
paths:
- '**.ts'
- '.github/'
- 'tsconfig.json'
- 'package.json'
- 'notification-bot/**'

jobs:
compile:
runs-on: ubuntu-latest
defaults:
run:
working-directory: notification-bot
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
Expand All @@ -25,4 +21,4 @@ jobs:
with:
node-version: '22'
- name: Run tsc
run: cd notification-bot; npm install --save-dev; tsc --project .
run: npm install --save-dev; tsc --project .
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 65e3c7b

Please sign in to comment.