Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update eslint and minimal ruleset #896

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Update eslint and minimal ruleset #896

merged 1 commit into from
Jan 12, 2022

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented Jan 7, 2022

This updates eslint and related plugins to latest package versions. It also brings the eslint config into line with default config published by the VS Code Extension yo template.

Most of the code is compliant with the eslint rulsets, with the exception of naming convention for fields and variables. Where we could update the naming, we did. Where we could not eslint disable lines were added.

This updates eslint and related plugins to latest package versions. It also brings the eslint config into line with default config published by the VS Code Extension yo template.

Most of the code is compliant with the eslint rulsets, with the exception of naming convention for fields and variables. Where we could update the naming, we did. Where we could not eslint disable lines were added.
@jpogran jpogran self-assigned this Jan 7, 2022
@jpogran jpogran added the enhancement New feature or request label Jan 7, 2022
@jpogran jpogran linked an issue Jan 7, 2022 that may be closed by this pull request
@jpogran
Copy link
Contributor Author

jpogran commented Jan 7, 2022

This partially address #849 in that it adds some default ruleset. It does not go as far as we want to yet.

@jpogran jpogran requested a review from a team January 10, 2022 16:00
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

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

Thank you for updating the packages and adding more linting rules.

@typescript-eslint/naming-convention got me thinking. I don't particularly appreciate having eslint-disable comments in the code and wondered why we need that much. The LSP spec is using camelcase for all attributes on the RPC calls, but we missed doing this for our custom commands :/
For future commands, we might want to use camelcase for the JSON attributes in the go code and revisit our existing commands at some point.

@jpogran
Copy link
Contributor Author

jpogran commented Jan 12, 2022

Yep. We missed the chance before, and changing now would require a tandem client/ls release. Which is not easy now but will be when platform specific extension lands.

@jpogran jpogran merged commit f097cd5 into main Jan 12, 2022
@jpogran jpogran deleted the update_eslint branch January 12, 2022 17:37
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set ESLint and Typescript project rules
2 participants