Skip to content

refactor: unescape quotes #1184

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

Merged
merged 1 commit into from
Feb 20, 2025
Merged

refactor: unescape quotes #1184

merged 1 commit into from
Feb 20, 2025

Conversation

nfischer
Copy link
Member

This swaps out quote characters to limit how often we need to escape strings. This is just to improve code readability.

Almost all of the changes could be done without changes to .eslintrc, however this amends the lint rule to also permit backtick strings which can be useful to eliminate a few extra instances of quote escaping.

Fixes issue #788
Test: npm run lint

This swaps out quote characters to limit how often we need to escape
strings. This is just to improve code readability.

Almost all of the changes could be done without changes to .eslintrc,
however this amends the lint rule to also permit backtick strings which
can be useful to eliminate a few extra instances of quote escaping.

Fixes issue #788
Test: npm run lint
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.28%. Comparing base (d9d7f4d) to head (35f0dfc).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1184   +/-   ##
=======================================
  Coverage   97.28%   97.28%           
=======================================
  Files          36       36           
  Lines        1364     1364           
=======================================
  Hits         1327     1327           
  Misses         37       37           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nfischer nfischer merged commit 03d2f20 into master Feb 20, 2025
20 checks passed
@nfischer nfischer deleted the refactor-unescape-quotes branch February 20, 2025 06:58
nfischer added a commit that referenced this pull request Feb 22, 2025
No change to logic. This simplifies a test case to more closely match
issue #175.

This also removes a nearby eslint suppression which is no longer
necessary after PR #1184.

Fixes #175
nfischer added a commit that referenced this pull request Feb 22, 2025
No change to logic. This simplifies a test case to more closely match
issue #175.

This also removes a nearby eslint suppression which is no longer
necessary after PR #1184.

Fixes #175
nfischer added a commit that referenced this pull request Feb 22, 2025
No change to logic. This simplifies a test case to more closely match
issue #175.

This also removes a nearby eslint suppression which is no longer
necessary after PR #1184.

Fixes #175
nfischer added a commit that referenced this pull request Feb 22, 2025
No change to logic. This adds documentation for the test case for
handling newlines.

This also removes a nearby eslint suppression which is no longer
necessary after PR #1184.

Fixes #175
nfischer added a commit that referenced this pull request Feb 22, 2025
No change to logic. This adds documentation for the test case for
handling newlines.

This also removes a nearby eslint suppression which is no longer
necessary after PR #1184.

Fixes #175
kmashint pushed a commit to kmashint/shelljs that referenced this pull request Apr 10, 2025
No change to logic. This adds documentation for the test case for
handling newlines.

This also removes a nearby eslint suppression which is no longer
necessary after PR shelljs#1184.

Fixes shelljs#175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant