Skip to content
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

Merged
merged 7 commits into from
Aug 9, 2024

Conversation

marcel-bitfly
Copy link
Contributor

Copy link

cloudflare-workers-and-pages bot commented Aug 8, 2024

Deploying beaconchain with  Cloudflare Pages  Cloudflare Pages

Latest commit: ea6a6e1
Status: ✅  Deploy successful!
Preview URL: https://f4c3ef7b.beaconchain.pages.dev
Branch Preview URL: https://beds-128-add-perfectionist-r.beaconchain.pages.dev

View logs

Copy link
Contributor

@MauserBitfly MauserBitfly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcel-bitfly marcel-bitfly force-pushed the BEDS-128/add-perfectionist-rules branch 2 times, most recently from e6ec426 to 7d72b3e Compare August 9, 2024 08:00
MarcelBitfly added 3 commits August 9, 2024 10:00
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
@marcel-bitfly marcel-bitfly force-pushed the BEDS-128/add-perfectionist-rules branch from 7d72b3e to 51eb4a0 Compare August 9, 2024 08:00
Comment on lines +8 to +10
const {
currency, setCurrency, withLabel,
} = useCurrency()
Copy link
Contributor Author

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

Suggested change
const {
currency, setCurrency, withLabel,
} = useCurrency()
const {
currency,
setCurrency,
withLabel,
} = useCurrency()

@marcel-bitfly marcel-bitfly force-pushed the BEDS-128/add-perfectionist-rules branch from f729ee8 to 34a33dd Compare August 9, 2024 09:38
MarcelBitfly and others added 3 commits August 9, 2024 12:16
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
@marcel-bitfly marcel-bitfly force-pushed the BEDS-128/add-perfectionist-rules branch from d5a529a to d078761 Compare August 9, 2024 10:25
Copy link
Contributor

@MauserBitfly MauserBitfly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcel-bitfly marcel-bitfly merged commit 4d32087 into staging Aug 9, 2024
2 checks passed
@marcel-bitfly marcel-bitfly deleted the BEDS-128/add-perfectionist-rules branch August 9, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants