-
Notifications
You must be signed in to change notification settings - Fork 0
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
Wr/spread base flags #441
Wr/spread base flags #441
Conversation
QA notes: setup: sf-plugin/only-extend-SfCommand✅ warn if not extending SfCommand directly sf-plugin/spread-base-flagsI was reading the WI again and I think it was meant to cover ✅ warn if extending |
sf-plugin/spread-base-flags✅ cmd extends from abstract class Wrapper extends SfCommand<LalaResult> {}
export default class Lala extends Wrapper {
...
} ✅ same scenario from above but define |
…nds-on-flags` rules (#440) * feat: add no default and depends on flag configuration rule * chore: edge case * chore: fix circular error * docs: generate docs * chore: fix [0] * chore: fix [0] (2) * Wr/spread base flags (#441) * feat: add only extend from SfCommand * feat: add spread super command flags prop * chore: update messages to include super class name * chore: identify SfCommand parent class * chore: move from error to warn on rollout * chore: ..flags, ...baseFlags * chore: update comment
@W-15837411@
warning to encourage inheriting from
SfCommand
directlyerror when not spreading parent class' flags
warn
for these rules until they can be fixed in the offending pluginshttps://github.com/salesforcecli/eslint-plugin-sf-plugin/actions/runs/9976522635/job/27569016725?pr=441