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

chore(eslint): add unicorn/prevent abbreviations rule #2865

Merged
merged 11 commits into from
Sep 20, 2023

Conversation

csouchet
Copy link
Member

@csouchet csouchet commented Sep 19, 2023

To avoid to have to many changes by enabling plugin:unicorn/recommended, I choose to enable some rule one-by-one.

Part of #2824

⚠️  For the code coverage, it was already the case before this PR.

Covers #2742

@csouchet csouchet added chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) refactoring Code refactoring labels Sep 19, 2023
@github-actions
Copy link

github-actions bot commented Sep 19, 2023

♻️ PR Preview 9313b6f has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Sep 19, 2023

♻️ PR Preview 9313b6f has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@csouchet csouchet marked this pull request as ready for review September 19, 2023 11:54
@csouchet csouchet requested a review from tbouffard September 19, 2023 11:54
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

Most changes are OK and the usage of explicit names instead of abbreviations make things clearer.
❌ A release script must be updated
ℹ️ I have mentioned suggestions to go even further

scripts/documentation.mjs Outdated Show resolved Hide resolved
dev/ts/pages/diagram-navigation.ts Outdated Show resolved Hide resolved
dev/ts/pages/diagram-navigation.ts Outdated Show resolved Hide resolved
dev/ts/shared/controls.ts Outdated Show resolved Hide resolved
rollup.config.mjs Outdated Show resolved Hide resolved
Comment on lines +27 to +28
readonly sourceReferenceId?: string,
readonly targetReferenceId?: string,
Copy link
Member

Choose a reason for hiding this comment

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

thought: renaming these properties is valid, this in an internal class 😸

test/e2e/diagram.navigation.fit.test.ts Outdated Show resolved Hide resolved
test/e2e/diagram.navigation.fit.test.ts Outdated Show resolved Hide resolved
test/integration/BpmnVisualization.test.ts Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

thought: changes here are valid as these are internal classes

@csouchet csouchet requested a review from tbouffard September 20, 2023 09:48
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

LGTM, great improvements!

// only the ctrl key
const isZoomWheelEvent = evt.ctrlKey && !evt.altKey && !evt.shiftKey && !evt.metaKey;
const isZoomWheelEvent = event.ctrlKey && !event.altKey && !event.shiftKey && !event.metaKey;
Copy link
Member

@tbouffard tbouffard Sep 20, 2023

Choose a reason for hiding this comment

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

praise: 👍🏿

rollup.config.mjs Outdated Show resolved Hide resolved
@csouchet csouchet force-pushed the 2742-add_unicorn/prevent-abbreviations_rule branch from 7884540 to 9313b6f Compare September 20, 2023 14:54
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

77.4% 77.4% Coverage
0.0% 0.0% Duplication

@csouchet csouchet merged commit 226f9d4 into master Sep 20, 2023
@csouchet csouchet deleted the 2742-add_unicorn/prevent-abbreviations_rule branch September 20, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) refactoring Code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants