From 965fc3ce1a1fb0d8c312b5caa6989589d9e90c9a Mon Sep 17 00:00:00 2001 From: Aasim Attia Date: Mon, 4 Dec 2023 20:01:29 +0200 Subject: [PATCH] eslint: Align ci with config --- .github/workflows/ci-front.yaml | 2 +- front/{.eslintrc-ci.js => .eslintrc-ci.cjs} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename front/{.eslintrc-ci.js => .eslintrc-ci.cjs} (77%) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 496b8e4343b9f..56c8517f3956c 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 --config .eslintrc-ci.js + run: cd front && yarn lint --config .eslintrc-ci.cjs front-jest: needs: front-yarn-install runs-on: ubuntu-latest diff --git a/front/.eslintrc-ci.js b/front/.eslintrc-ci.cjs similarity index 77% rename from front/.eslintrc-ci.js rename to front/.eslintrc-ci.cjs index fc647a59a8fd0..9d6e8e9795dbe 100644 --- a/front/.eslintrc-ci.js +++ b/front/.eslintrc-ci.cjs @@ -1,4 +1,4 @@ -export default { +module.exports = { overrides: [ { files: ['*.stories.tsx', '*.test.ts'], @@ -8,7 +8,7 @@ export default { }, ], extends: [ - './.eslintrc.js' + './.eslintrc.cjs' ], rules: { 'no-console': 'error',