Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Add ESLint rule to use "const" instead of "let" where possible #296

Merged
merged 2 commits into from
Jul 16, 2019

Conversation

bbecquet
Copy link
Contributor

@bbecquet bbecquet commented Jul 16, 2019

Not sure it's a priority, but here is a linting proposition related to this comment

@amatissart amatissart requested review from amatissart and removed request for amatissart July 16, 2019 08:22
GuillaumeGomez
GuillaumeGomez previously approved these changes Jul 16, 2019
@GuillaumeGomez
Copy link
Contributor

There is an error on CI.

@bbecquet
Copy link
Contributor Author

@GuillaumeGomez should be ok now, something I had to change manually. Two variables declared on the same line, one const and one let. Maybe a case for https://eslint.org/docs/rules/one-var later :D

@GuillaumeGomez
Copy link
Contributor

Hum. I think it needs a debate for the multiple variable declaration (I don't like it personally). But the current code is good so let's merge!

@GuillaumeGomez GuillaumeGomez merged commit 02ac2b3 into Qwant:master Jul 16, 2019
@bbecquet bbecquet deleted the eslint-prefer-const branch July 16, 2019 15:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants