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 <charles@twenty.com>
This commit is contained in:
Alfred Louis 2023-11-07 05:50:06 +07:00 committed by GitHub
parent daa6d2ca01
commit 183d6a1d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -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

16
front/.eslintrc-ci.js Normal file
View File

@ -0,0 +1,16 @@
module.exports = {
overrides: [
{
files: ['*.stories.tsx', '*.test.ts'],
rules: {
'no-console': 'off',
}
},
],
extends: [
'./.eslintrc.js'
],
rules: {
'no-console': 'error',
}
};