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(docs/examples/cbdc): applied auto-formatting to CBDC example code #3052

Conversation

petermetz
Copy link
Contributor

Just ran yarn lint on main and it applied these formatting changes
so I'm applying the changes to make sure others don't have to deal with
the auto-formatter littering their commits with automated changes like
these.

The bigger story here is that this somehow passed the CI which makes me
suspect that we forgot to add a check to the lint action that would
verify that post-lint there are no files changed compared to the git
revision that is being linted, so figuring this out is a to-do still and
should go into it's own pull request later on.

Signed-off-by: Peter Somogyvari [email protected]

Pull Request Requirements

  • Rebased onto upstream/main branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.
  • Have git sign off at the end of commit message to avoid being marked red. You can add -s flag when using git commit command. You may refer to this link for more information.
  • Follow the Commit Linting specification. You may refer to this link for more information.

Character Limit

  • Pull Request Title and Commit Subject must not exceed 72 characters (including spaces and special characters).
  • Commit Message per line must not exceed 80 characters (including spaces and special characters).

A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.

@petermetz petermetz enabled auto-merge (rebase) March 3, 2024 08:58
petermetz added a commit to petermetz/cacti that referenced this pull request Mar 3, 2024
Also upgraded the ESLint related packages such as the typescript parser
plugin and all the other plugins or configuration management packages
related to ESLint in general.

The reason why it's important that we keep up to date with ESLint is
because newer versions of Typescript are not getting backported to older
versions of ESLint fast enough (if at all) so to be able to reliably
lint our newer Typescript code, we need to keep up to date with ESLint
as well.

In addition to the dependency upgrades we are also applying the automatic
formatter's changes that it started making after the upgrade.

To-do for later: Consolidate the ESLint versions used among the different
components of the project because right now we still have a few packages
that declare much older versions of ESLint such as 3.x and 4.x.

Depends on hyperledger-cacti#3052 because that pull request also applies some of the
automatic formatting changes that were forgotten in an earlier pull request.

Signed-off-by: Peter Somogyvari <[email protected]>
Copy link
Contributor

@izuru0 izuru0 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jagpreetsinghsasan jagpreetsinghsasan left a comment

Choose a reason for hiding this comment

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

LGTM

petermetz added a commit to petermetz/cacti that referenced this pull request Mar 4, 2024
Also upgraded the ESLint related packages such as the typescript parser
plugin and all the other plugins or configuration management packages
related to ESLint in general.

The reason why it's important that we keep up to date with ESLint is
because newer versions of Typescript are not getting backported to older
versions of ESLint fast enough (if at all) so to be able to reliably
lint our newer Typescript code, we need to keep up to date with ESLint
as well.

In addition to the dependency upgrades we are also applying the automatic
formatter's changes that it started making after the upgrade.

To-do for later: Consolidate the ESLint versions used among the different
components of the project because right now we still have a few packages
that declare much older versions of ESLint such as 3.x and 4.x.

Depends on hyperledger-cacti#3052 because that pull request also applies some of the
automatic formatting changes that were forgotten in an earlier pull request.

Signed-off-by: Peter Somogyvari <[email protected]>
Just ran `yarn lint` on `main` and it applied these formatting changes
so I'm applying the changes to make sure others don't have to deal with
the auto-formatter littering their commits with automated changes like
these.

The bigger story here is that this somehow passed the CI which makes me
suspect that we forgot to add a check to the lint action that would
verify that post-lint there are no files changed compared to the git
revision that is being linted, so figuring this out is a to-do still and
should go into it's own pull request later on.

Signed-off-by: Peter Somogyvari <[email protected]>
@petermetz petermetz force-pushed the style-example-docs-cbdc-linter-auto-format branch from acf5456 to 2964c78 Compare March 4, 2024 15:35
@petermetz petermetz merged commit 2d8d23f into hyperledger-cacti:main Mar 4, 2024
131 of 147 checks passed
@petermetz petermetz deleted the style-example-docs-cbdc-linter-auto-format branch March 4, 2024 15:48
petermetz added a commit to petermetz/cacti that referenced this pull request Mar 4, 2024
Also upgraded the ESLint related packages such as the typescript parser
plugin and all the other plugins or configuration management packages
related to ESLint in general.

The reason why it's important that we keep up to date with ESLint is
because newer versions of Typescript are not getting backported to older
versions of ESLint fast enough (if at all) so to be able to reliably
lint our newer Typescript code, we need to keep up to date with ESLint
as well.

In addition to the dependency upgrades we are also applying the automatic
formatter's changes that it started making after the upgrade.

To-do for later: Consolidate the ESLint versions used among the different
components of the project because right now we still have a few packages
that declare much older versions of ESLint such as 3.x and 4.x.

Depends on hyperledger-cacti#3052 because that pull request also applies some of the
automatic formatting changes that were forgotten in an earlier pull request.

Signed-off-by: Peter Somogyvari <[email protected]>
petermetz added a commit that referenced this pull request Mar 4, 2024
Also upgraded the ESLint related packages such as the typescript parser
plugin and all the other plugins or configuration management packages
related to ESLint in general.

The reason why it's important that we keep up to date with ESLint is
because newer versions of Typescript are not getting backported to older
versions of ESLint fast enough (if at all) so to be able to reliably
lint our newer Typescript code, we need to keep up to date with ESLint
as well.

In addition to the dependency upgrades we are also applying the automatic
formatter's changes that it started making after the upgrade.

To-do for later: Consolidate the ESLint versions used among the different
components of the project because right now we still have a few packages
that declare much older versions of ESLint such as 3.x and 4.x.

Depends on #3052 because that pull request also applies some of the
automatic formatting changes that were forgotten in an earlier pull request.

Signed-off-by: Peter Somogyvari <[email protected]>
petermetz added a commit to petermetz/cacti that referenced this pull request Mar 10, 2024
Also upgraded the ESLint related packages such as the typescript parser
plugin and all the other plugins or configuration management packages
related to ESLint in general.

The reason why it's important that we keep up to date with ESLint is
because newer versions of Typescript are not getting backported to older
versions of ESLint fast enough (if at all) so to be able to reliably
lint our newer Typescript code, we need to keep up to date with ESLint
as well.

In addition to the dependency upgrades we are also applying the automatic
formatter's changes that it started making after the upgrade.

To-do for later: Consolidate the ESLint versions used among the different
components of the project because right now we still have a few packages
that declare much older versions of ESLint such as 3.x and 4.x.

Depends on hyperledger-cacti#3052 because that pull request also applies some of the
automatic formatting changes that were forgotten in an earlier pull request.

Signed-off-by: Peter Somogyvari <[email protected]>
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.

3 participants