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

feat(js): add option ignoreStringLiterals #401

Merged

Conversation

remcohaszing
Copy link
Contributor

Description

This adds a new option ignoreStringLiterals to the quotes rule. When ignoreStringLiterals is enabled, only template literals are reported, not string literals.

Linked Issues

Closes #400

Additional context

N/A

When `ignoreStringLiterals` is enabled, only template literals are
reported, not string literals.

Closes eslint-stylistic#400
@antfu antfu enabled auto-merge May 18, 2024 14:55
Copy link

codecov bot commented May 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.80%. Comparing base (1d3d47c) to head (c471aa8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #401   +/-   ##
=======================================
  Coverage   99.80%   99.80%           
=======================================
  Files         118      118           
  Lines       27525    27533    +8     
  Branches     4645     4647    +2     
=======================================
+ Hits        27471    27479    +8     
  Misses         54       54           

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

@antfu antfu added this pull request to the merge queue May 18, 2024
Merged via the queue into eslint-stylistic:main with commit 1b6d563 May 18, 2024
11 checks passed
@github-actions github-actions bot mentioned this pull request May 18, 2024
@remcohaszing remcohaszing deleted the quotes-ignore-string-literals branch May 18, 2024 15:13
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.

quotes: add option to ignore string literals
2 participants