diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..7e713b3 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,33 @@ +module.exports = { + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended-type-checked" + ], + "overrides": [ + { + "env": { + "node": true + }, + "files": [ + ".eslintrc.{js,cjs}" + ], + "parserOptions": { + "sourceType": "script" + } + } + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module", + "project": true + }, + "plugins": [ + "@typescript-eslint" + ], + "rules": {} +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 05e44d4..c83e59f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: branches: - master pull_request: - types: [opened, synchronize, reopened] + types: [ opened, synchronize, reopened ] jobs: sonarcloud: name: SonarCloud @@ -26,27 +26,6 @@ jobs: - name: Run tests run: npm run test:headless - - name: Cache stryker incremental file - uses: actions/cache@v3 - with: - key: stryker-cache - path: ./reports/stryker-incremental.json - - - name: Run stryker run - run: npm run test:mutation - env: - STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} - - - uses: actions/upload-artifact@v3 - if: always() - with: - name: stryker-report - path: reports/mutation - retention-days: 30 - - - name: Convert mutation issues to sonarcloud generic issues - run: jq -f stryker-tool/mutation-report-to-sonar.jq reports/mutation/mutation.json > mutation-sonar.json - - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index e9df7e0..45819fb 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,7 @@