Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add lint check into CI #11

Merged
merged 3 commits into from
Jul 24, 2019
Merged

Add lint check into CI #11

merged 3 commits into from
Jul 24, 2019

Conversation

louis-bompart
Copy link
Collaborator

To ensure an opinionated code formatting, running prettier --check on the CI will prevent any commit to get validated by the CI if the code does not respect the prettier configuration.

@@ -17,7 +17,8 @@
"css": "node ./scripts/css.js",
"dev": "node ./scripts/dev.server.js",
"watchTest": "karma start ./config/karma.config.js",
"lint": "prettier --write src/**/* tests/**/*",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tu devrais changer le script qui est rouler dans le pre-commit hook aussi plus bas ligne 27

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oups je l'ai pas vu en effet. C'est updated 👌

Copy link
Collaborator

@mikegron mikegron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouin tu peux ignorer les trucs auto-generated comme package-lock.json ? Sinon j'ai l'impression que sa vas spammer a chaque fois :P

@louis-bompart
Copy link
Collaborator Author

Ouin tu peux ignorer les trucs auto-generated comme package-lock.json ? Sinon j'ai l'impression que sa vas spammer a chaque fois :P

L'issue avec ca @mikegron c'est que imaginons User A fais un npm install depuis un linux, ca va le générer en LF. User B fais un npm install depuis un windows, ca va le générer en CRLF, ce qui génère du changement.

@louis-bompart louis-bompart requested a review from mikegron July 23, 2019 19:24
Copy link
Collaborator

@mikegron mikegron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@louis-bompart louis-bompart merged commit 737a2c0 into coveo:master Jul 24, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants