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

Chore: Fix eslint usage #293

Merged
merged 3 commits into from
Oct 5, 2021
Merged

Chore: Fix eslint usage #293

merged 3 commits into from
Oct 5, 2021

Conversation

AgnesToulet
Copy link
Contributor

@AgnesToulet AgnesToulet commented Oct 4, 2021

  • Move eslint into dev dependencies
  • Bump eslint from 7.13.0 to 7.32.0
  • Extends @grafana/eslint-config instead of having plugin rules
  • Fix eslint usage

@AgnesToulet AgnesToulet added type/dependencies Pull requests that update a dependency file type/chore labels Oct 4, 2021
Copy link
Contributor

@Clarity-89 Clarity-89 left a comment

Choose a reason for hiding this comment

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

Looks good, just a minor comment.

Comment on lines +48 to +49
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure we need these since we're not using react here, the same goes for jsdoc plugin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, we don't really need them, but they are required when using this "extends": ["@grafana/eslint-config"].

I honestly wondered if it was worth it or if we should use our own config and preferred to use the Grafana config and keep these extra dependencies. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see, I guess we can keep these extra dependencies, they're dev dependencies anyways, so we don't need to maintain a separate config for the image renderer.

@AgnesToulet AgnesToulet merged commit 94adcc9 into master Oct 5, 2021
@AgnesToulet AgnesToulet deleted the upgrade-eslint branch October 5, 2021 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/chore type/dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants