From 6267db051e94a918c0026800eb0bbeb2ebacc45a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nj=C3=A5l=20Telst=C3=B8?= Date: Fri, 20 Oct 2023 10:39:50 +0200 Subject: [PATCH 1/4] Added eslint github action --- .github/workflows/integration.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..2d5fbea --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,14 @@ +name: frontend-integration +run-name: ${{ github.actor }} Frontend Integration + +on: [push] +jobs: + run-eslint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '18' + - run: npm install + - run: eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 From 00b8e77dae3d5c875c4398f424321038ec243d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nj=C3=A5l=20Telst=C3=B8?= Date: Fri, 20 Oct 2023 10:41:28 +0200 Subject: [PATCH 2/4] Eslint github action syntax fix --- .github/workflows/integration.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 2d5fbea..0783517 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -4,11 +4,11 @@ run-name: ${{ github.actor }} Frontend Integration on: [push] jobs: run-eslint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: '18' - - run: npm install - - run: eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '18' + - run: npm install + - run: eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 From d32e3be51b10dceb77ac4fa87ba2776bb7f0a087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nj=C3=A5l=20Telst=C3=B8?= Date: Fri, 20 Oct 2023 10:44:55 +0200 Subject: [PATCH 3/4] integration.yml fix --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 0783517..888ea2d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -11,4 +11,4 @@ jobs: with: node-version: '18' - run: npm install - - run: eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 + - run: npm run lint From c6f6a9c15e67ca1aaa2664a4683c563e9b4fe5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nj=C3=A5l=20Telst=C3=B8?= Date: Fri, 20 Oct 2023 10:49:14 +0200 Subject: [PATCH 4/4] Testing eslint integration --- src/main.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index 671f400..8abf816 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -9,11 +9,11 @@ import './index.css' import ModalProvider from './context/modal/ModalProvider.tsx' import Content from './structure/Content.tsx' -ReactModal.setAppElement("#root") +ReactModal.setAppElement"#root") ReactDOM.createRoot(document.getElementById('root')!).render( - +