Skip to content

Add prettier formatter#1736

Open
cyberbuff wants to merge 7 commits intogchq:masterfrom
cyberbuff:formatter
Open

Add prettier formatter#1736
cyberbuff wants to merge 7 commits intogchq:masterfrom
cyberbuff:formatter

Conversation

@cyberbuff
Copy link
Copy Markdown

@cyberbuff cyberbuff commented Feb 25, 2024

Fixes #1726 Added prettier as per the GitHub Issue conversation

@cyberbuff cyberbuff closed this Feb 25, 2024
@cyberbuff cyberbuff reopened this Feb 25, 2024
Comment thread src/core/operations/DeriveEVPKey.mjs Fixed
Comment thread src/core/operations/DeriveEVPKey.mjs Fixed
Comment thread .eslintrc.json
],
"no-whitespace-before-property": "error",
"operator-linebreak": ["error", "after"],
"operator-linebreak": ["error", "before"],
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Changed operator-linebreak to before to go along with prettier formatting

Comment on lines +24 to +25
- name: Format & Lint
run: (npm run style || npm run lint) && git diff --exit-code
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Modified pull_request workflow to include prettier formatting. These checks cannot be made individually in separate steps because it changes the files. Hence doing it together and checking for any file changes

Comment thread Gruntfile.js
Comment on lines +229 to +231
options: {
fix: true
}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added option to fix any linting errors

@cyberbuff cyberbuff changed the title Add formatter Add prettier formatter Feb 25, 2024
@a3957273
Copy link
Copy Markdown
Member

I'm relatively concerned by the number of files changed by this PR. If I merge it, this will cause merge conflicts with the vast number of other PRs that are available right now.

I wonder if, perhaps, it's best to wait for me to try to process all of those and then do a single large 'style' pull request.

As a side note, you probably want to not style vendor files.

@a3957273
Copy link
Copy Markdown
Member

Hey! This pull request has gotten rather old and that's our fault. This project stopped being actively maintained for a while and it looks like your pull request has started to gather dust. Would you be able to update your branch to the latest version of CyberChef and we'll give it a review?

@cyberbuff
Copy link
Copy Markdown
Author

Hey @a3957273 Definitely. Let me fix this over the weekend and get back to you

@C85297 C85297 self-requested a review February 12, 2026 12:32
@C85297 C85297 added the tidying required Code improvements needed before merge label Feb 12, 2026
@mattnotmitt
Copy link
Copy Markdown
Collaborator

If we're thinking about picking this one up to land, can we hold off until #2187 lands? That would definitely kill any chance of that PR ever landing.

@C85297
Copy link
Copy Markdown
Member

C85297 commented Feb 13, 2026

Yes, thanks for pointing that out @mattnotmitt , I'll hold off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tidying required Code improvements needed before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Add Prettier

5 participants