Skip to content

Commit

Permalink
chore: improve task comments for creating new lint rules (#4866)
Browse files Browse the repository at this point in the history
  • Loading branch information
bushuai authored Jan 9, 2025
1 parent c93dc5f commit 1a4e36f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,30 @@ gen-grammar *args='':
documentation:
RUSTDOCFLAGS='-D warnings' cargo documentation

# Creates a new lint rule in the given path, with the given name. Name has to be camel case.
# Creates a new js lint rule with the given name. Name has to be camel case.
new-js-lintrule rulename:
cargo run -p xtask_codegen -- new-lintrule --kind=js --category=lint --name={{rulename}}
just gen-lint
just documentation

# Creates a new lint rule in the given path, with the given name. Name has to be camel case.
# Creates a new js assist rule with the given name. Name has to be camel case.
new-js-assistrule rulename:
cargo run -p xtask_codegen -- new-lintrule --kind=js --category=assist --name={{rulename}}
just gen-lint
just documentation

# Creates a new lint rule in the given path, with the given name. Name has to be camel case.
# Creates a new json assist rule with the given name. Name has to be camel case.
new-json-assistrule rulename:
cargo run -p xtask_codegen -- new-lintrule --kind=json --category=assist --name={{rulename}}
just gen-lint
just documentation

# Creates a new css lint rule in the given path, with the given name. Name has to be camel case.
# Creates a new css lint rule with the given name. Name has to be camel case.
new-css-lintrule rulename:
cargo run -p xtask_codegen -- new-lintrule --kind=css --category=lint --name={{rulename}}
just gen-lint

# Creates a new css lint rule in the given path, with the given name. Name has to be camel case.
# Creates a new graphql lint rule with the given name. Name has to be camel case.
new-graphql-lintrule rulename:
cargo run -p xtask_codegen -- new-lintrule --kind=graphql --category=lint --name={{rulename}}
just gen-lint
Expand Down Expand Up @@ -167,4 +167,3 @@ new-changeset:
# Dry-run of the release
dry-run-release *args='':
knope release --dry-run {{args}}

0 comments on commit 1a4e36f

Please sign in to comment.