We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm thinking we could do this:
linters = new { ["prettier"] = new builtins.Prettier { vars { ["check_extra_args"] = "--foo" } } }
which would be defined in the builtin like this:
import "../hk.pkl" class Prettier extends hk.Step { glob = new { "**/*.{js,jsx,ts,tsx,css,scss,less,html,json,jsonc,yaml,markdown,markdown.mdx,graphql,handlebars,svelte,astro,htmlangular}" } check = """prettier --check{{vars["check_extra_args"]}} {{ files }}""" fix = """prettier --write{{vars["fix_extra_args"]}} {{ files }}""" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm thinking we could do this:
which would be defined in the builtin like this:
The text was updated successfully, but these errors were encountered: