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:
2
.github/workflows/ci-front.yaml
vendored
2
.github/workflows/ci-front.yaml
vendored
@ -145,7 +145,7 @@ jobs:
|
|||||||
- name: Front / Install Dependencies
|
- name: Front / Install Dependencies
|
||||||
run: cd front && yarn
|
run: cd front && yarn
|
||||||
- name: Front / Run linter
|
- name: Front / Run linter
|
||||||
run: cd front && yarn lint
|
run: cd front && yarn lint --config .eslintrc-ci.js
|
||||||
front-jest:
|
front-jest:
|
||||||
needs: front-yarn-install
|
needs: front-yarn-install
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
16
front/.eslintrc-ci.js
Normal file
16
front/.eslintrc-ci.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
module.exports = {
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['*.stories.tsx', '*.test.ts'],
|
||||||
|
rules: {
|
||||||
|
'no-console': 'off',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
],
|
||||||
|
extends: [
|
||||||
|
'./.eslintrc.js'
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
'no-console': 'error',
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user