diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index c8b2e8de3..496b8e434 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -145,7 +145,7 @@ jobs: - name: Front / Install Dependencies run: cd front && yarn - name: Front / Run linter - run: cd front && yarn lint + run: cd front && yarn lint --config .eslintrc-ci.js front-jest: needs: front-yarn-install runs-on: ubuntu-latest diff --git a/front/.eslintrc-ci.js b/front/.eslintrc-ci.js new file mode 100644 index 000000000..53a455b90 --- /dev/null +++ b/front/.eslintrc-ci.js @@ -0,0 +1,16 @@ +module.exports = { + overrides: [ + { + files: ['*.stories.tsx', '*.test.ts'], + rules: { + 'no-console': 'off', + } + }, + ], + extends: [ + './.eslintrc.js' + ], + rules: { + 'no-console': 'error', + } +};