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

Build: Introduce stricter typechecking #868

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

jackw
Copy link
Collaborator

@jackw jackw commented Apr 10, 2024

What this PR does / why we need it:
Noticed that after the move to using tsconfig base configs that we're lacking some useful typescript compiler options to keep our code cleaner. Namely:

    "noUnusedLocals": true,
    "noUnusedParameters": true,

which prevent unused variables and params which I find somewhat confusing when scanning code.

This PR adds a selection of the strictest options to this codebase with the intention that we can eventually use that config to keep our code in a more healthy state.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/create-plugin@4.6.2-canary.868.05615c5.0
npm install @grafana/plugin-e2e@1.1.1-canary.868.05615c5.0
# or 
yarn add @grafana/create-plugin@4.6.2-canary.868.05615c5.0
yarn add @grafana/plugin-e2e@1.1.1-canary.868.05615c5.0

@jackw jackw added patch Increment the patch version when merged release Create a release when this pr is merged labels Apr 10, 2024
@jackw jackw self-assigned this Apr 10, 2024
@jackw jackw requested a review from a team as a code owner April 10, 2024 09:40
@jackw jackw requested review from leventebalogh and sunker and removed request for a team April 10, 2024 09:40
Copy link

github-actions bot commented Apr 10, 2024

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new patch release.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

Copy link
Collaborator

@leventebalogh leventebalogh left a comment

Choose a reason for hiding this comment

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

Nice 🚀

Copy link
Contributor

@sunker sunker left a comment

Choose a reason for hiding this comment

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

Great initiative!

@jackw jackw merged commit ab15469 into main Apr 17, 2024
23 checks passed
@jackw jackw deleted the jackw/ts-config-no-unused branch April 17, 2024 07:39
@grafana-plugins-platform-bot
Copy link

🚀 PR was released in @grafana/create-plugin@4.6.2, @grafana/plugin-e2e@1.1.1 🚀

@grafana-plugins-platform-bot grafana-plugins-platform-bot bot added the released This issue/pull request has been released. label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants