-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Frontend: Update to Eslint 9 #94823
Frontend: Update to Eslint 9 #94823
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's with the modifications to .go
files? 🤔
You don't need to specify the type again while you are defining the items in map. The type can be inferred from the variable definition. They are unnecessary. And somehow maybe eslint, or some other tool triggered a cleanup. So we have these changes. |
edit: i don't think it can be eslint... but i would like to know how it got here 😅 |
@ashharrison90 I agree that we should remove those |
A fine question! It appears to have happened when I merged main into this branch. 😕 |
It's caused by the git hook Switching to main and running As there is no go format check in CI it will only surface when someone touches the file and uses the git hooks. I've reverted them in 365c055. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
@@ -90,6 +91,7 @@ | |||
"@react-types/shared": "3.25.0", | |||
"@rtk-query/codegen-openapi": "^1.2.0", | |||
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1", | |||
"@stylistic/eslint-plugin-ts": "^2.9.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we actually use this anywhere? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a peer dependency of the grafana/eslint-config.
What is this feature?
This PR updates the codebase to use Eslint 9.
Massive thanks to @ashharrison90 for the support/answering all my random questions. 🏅
Why do we need this feature?
So we stay up to date with dependencies and stop using a deprecated version of eslint.
Who is this feature for?
Grafana devs / contributors
Which issue(s) does this PR fix?:
Related: grafana/plugin-tools/issues/879
Special notes for your reviewer:
Please check that: