From 183d6a1d1a16bf613c8d6eab43550b65ea030db5 Mon Sep 17 00:00:00 2001 From: Alfred Louis Date: Tue, 7 Nov 2023 05:50:06 +0700 Subject: [PATCH] No console eslint (#2251) * chore: add new eslint config file for ci * add test console log * merge the lint steps * Fix according to PR --------- Co-authored-by: Charles Bochet --- .github/workflows/ci-front.yaml | 2 +- front/.eslintrc-ci.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 front/.eslintrc-ci.js diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index c8b2e8de3f..496b8e4343 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 0000000000..53a455b90f --- /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', + } +};