-
Notifications
You must be signed in to change notification settings - Fork 73
Conversation
Do you think we could include |
FYI prettier seems to go nuts:
|
yes! done
👌 done. Also note for vscode users, if they have the trunk vscode extension installed it'll just work
Since you use prettier plugins in 2 subdirectories, and prettier works by looking for plugins installed in the nearest node_modules to what it's linting, you need to |
@cyriltovena I think this is good to go if you want to try it out again. I'm also improving the tool on our end for the next release for a few rough edges this exposed:
Thanks! |
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
let's give it a go.
Was contributed as part of grafana#407, not kept up-to-date since.
Was contributed as part of #407, not kept up-to-date since.
Enable trunk superlinter
Was contributed as part of grafana/phlare#407, not kept up-to-date since.
Trunk (docs) is a tool to run dozens of linters, formatters, static analyzers, and security checking tools.
This PR turns on 21 linters. About ~6 of them were already in use, the rest are new. Trunk handles the installation, versioning, hermeticity, and upgrading of them.
It has a bunch of features that no similar projects have (unified reporting, batching, caching, pre-existing issue detection on PRs, git-aware, git hooks management, & more). If you'd like to try for yourself w/ this PR:
curl https://get.trunk.io -fsSL | bash
I've integrated some of the checks Trunk doesn't yet have, or which are specific to this repo:
check/go/mod
'goreleaser check
Trunk is a plugin-able system, so these other integrations can happen if this PR lands:
helm lint
tk fmt
There are a couple things to discuss too:
.trunk/config
instead of your repo root and as long as the linter is run through trunk, it'll pick it up. This is optional, you can also put linter configs in the root, up to you.For now, this just adds the trunk config files, there for optional use either by folks using
trunk check
andtrunk fmt
from the trunk command line tool, or via the trunk vscode extension.full disclosure: Trunk is my project, and I'm trying to spread the word, but I legit think it will help phlare a lot!