Skip to content

Add prefer-const to eslint. Fix some other lint errors.#5634

Merged
sean-mcmanus merged 2 commits intomasterfrom
seanmcm/preferConst
Jun 15, 2020
Merged

Add prefer-const to eslint. Fix some other lint errors.#5634
sean-mcmanus merged 2 commits intomasterfrom
seanmcm/preferConst

Conversation

@sean-mcmanus
Copy link
Copy Markdown
Contributor

Most of these changes were automatically made by running "eslint ** --fix". "const" variables in TypeScript are still mutable (e.g. arrays can be pushed to), they just can't be re-assigned. See https://eslint.org/docs/rules/prefer-const .

@sean-mcmanus sean-mcmanus requested a review from a team June 10, 2020 19:22
@sean-mcmanus
Copy link
Copy Markdown
Contributor Author

I wasn't planning to check this in until the other existing PRs have gone in, to avoid breaking the PRs.

@sean-mcmanus sean-mcmanus merged commit 1f1b2b0 into master Jun 15, 2020
@sean-mcmanus sean-mcmanus deleted the seanmcm/preferConst branch June 15, 2020 21:45
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2020
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