diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index af6a923..a2105f3 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -20,10 +20,22 @@ jobs: with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.6.3 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + cache-dependency-path: frontend/pnpm-lock.yaml + + - name: Install dependencies + run: pnpm install --frozen-lockfile + working-directory: frontend - - name: Lint Code Base - uses: github/super-linter@v4 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: "main" - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run ESLint + run: pnpm lint + working-directory: frontend diff --git a/README.md b/README.md index ab17dc7..9d1c61f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# OneHealth Frontend Mapping application +# heiplanet Frontend Mapping application # Description -The OneHealth Mapping project shows the predictions and predicted susceptibility in the future of different diseases by Infectious disease/Climate models from the group, across different regions in the map. +The heiplanet Mapping project shows the predictions and predicted susceptibility in the future of different diseases by Infectious disease/Climate models from the group, across different regions in the map. This repository contains the frontend for the Climate Map. The user can browse for models with the Model Selector, and change the year to see future suspcetibility predictions diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index 34a820f..6778687 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -5,7 +5,15 @@ import globals from "globals"; import tseslint from "typescript-eslint"; export default tseslint.config( - { ignores: ["dist"] }, + { + ignores: [ + "dist", + "tests", + "src/scripts", + "src/static/Header.tsx", + "src/component/General/LandOnlyMap.tsx", + ], + }, { extends: [js.configs.recommended, ...tseslint.configs.recommended], files: ["**/*.{ts,tsx}"], diff --git a/frontend/index.html b/frontend/index.html index 6b90af3..435a788 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ -