-
Notifications
You must be signed in to change notification settings - Fork 8.6k
DEV: align bin/lint to use lefthook #34247
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
Conversation
spec failure unrelated |
At this point, it seems like lints:
parallel: true
files: git ls-files --cached
commands: &lint_commands
rubocop:
glob: "*.rb"
run: bundle exec rubocop
prettier:
run: pnpm lint:prettier
eslint:
run: pnpm lint:js
ember-template-lint:
run: pnpm lint:hbs
stylelint:
run: pnpm lint:css
yaml-syntax:
glob: "*.{yaml,yml}"
# database.yml is an erb file not a yaml file
exclude: "database.yml"
run: bundle exec yaml-lint {files}
i18n-lint:
glob: "**/{client,server}.en.yml"
run: bundle exec ruby script/i18n_lint.rb {files}
glint:
run: pnpm glint -p jsconfig.json --noEmit
lint-staged:
parallel: true
files: git diff --name-only --cached
commands: *lint_commands
lint-recent:
parallel: true
files: "git log -50 --name-only --pretty=format:"
commands: *lint_commands
|
I hear you @pento, no objection to pulling more out of bin/lint into lefthook, but fundamentally we are never going to get a clear help like:
lefthook has an awkward CLI with awkward help.
I am fine for bin/lint to be an alias, this a feature here. |
That's a fair point, the ability to show a custom help message is a big benefit. |
Uh oh!
There was an error while loading. Please reload this page.