Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Plugin to remove spaces in hash#360

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ryanb wants to merge1 commit intoruby-syntax-tree:main
base:main
Choose a base branch
Loading
fromryanb:compact-hash-plugin

Conversation

ryanb
Copy link

@ryanbryanb commentedApr 5, 2023
edited
Loading

This adds a plugin calledstrip_hash which removes spaces at the beginning and end of hash literals. For example, instead of{ foo: "bar" } it generates{foo: "bar"}. This helps distinguish hashes from blocks and brings it more in-line withstandard formatter. It is also similar to the deafult Prettier formatting for JS objects.

I understand if you want to keep the built-in plugins to a minimum. I'm just not sure how to accomplish this with an external plugin without monkey patching which is brittle.

Whatever the case, feel free to rename this, or reject it if it's not in line with the project.

Update: I renamed this fromcompact_hash tostrip_hash to parallelString#strip method.

@ryanbryanbforce-pushed thecompact-hash-plugin branch 2 times, most recently from218904d tob79d921CompareApril 5, 2023 16:55
@ryanbryanbforce-pushed thecompact-hash-plugin branch 2 times, most recently fromdde31da to61f2fe4CompareMarch 18, 2024 17:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@ryanb

[8]ページ先頭

©2009-2025 Movatter.jp