Skip to content

The open alternative to Salesforce, designed for AI.

No console eslint (#2251)

Alfred Louis183d6a1d1a16
diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml
index c8b2e8de3fb..496b8e4343b 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 00000000000..53a455b90f8
--- /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',
+ }
+};