-
Notifications
You must be signed in to change notification settings - Fork 11
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
style(eslint): add plugin perfectionist
#683
Conversation
Deploying beaconchain with Cloudflare Pages
|
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
e6ec426
to
7d72b3e
Compare
…ments` See: BIDS-128
editor.formatOnSave has to be `false`, as we are not using a formatter, but a `linter for formatting`. This way we could only trigger `linting` only before merging stuff. Which would shorten our compute time. See: https://eslint.style/guide/faq#how-to-auto-format-on-save See: BEDS-128
7d72b3e
to
51eb4a0
Compare
const { | ||
currency, setCurrency, withLabel, | ||
} = useCurrency() |
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.
fyi: should be like that, but atm could not get autofixed, as the rule:
https://eslint.style/rules/js/object-property-newline#object-property-newline
lacks a proper destructuring logic
const { | |
currency, setCurrency, withLabel, | |
} = useCurrency() | |
const { | |
currency, | |
setCurrency, | |
withLabel, | |
} = useCurrency() |
f729ee8
to
34a33dd
Compare
Putting items on new lines should make editing more `efficient` and make it easier to check for changes when reviewing See: BEDS-128
With sharing the same `delimiter` between `js` and `ts` `types` and `interfaces` could be copied to create an `object` See: BEDS-128
New feature in vue. Fewer code. See: BEDS-128
d5a529a
to
d078761
Compare
See: BIDS-128
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
See: https://perfectionist.dev/guide/introduction
See: BEDS-128