Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Chore: refactor template literal feature detection in 'quotes' rule. #11125
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
What changes did you make? (Give an overview)
No behavior change. This change is a refactoring that extracts a helper function for detecting the usage of a template literal feature (which is used to determine if a template literal should be allowed by the 'quotes' rule). This refactoring separates that detection logic from the rest of the 'quotes' rule logic.
Is there anything you'd like reviewers to focus on?
@platinumazure thanks for the question. There's no problem. My goal was just to improve the code quality with a small refactoring. It came up because I was thinking about rule improvements that I could make in this area, and I thought this refactoring would make future changes easier.