Separate Configuration code into a different function #4
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Problem
This kind of code is adequate for separate into another function:
templatestringparser/index.js
Lines 19 to 24 in 29fec42
If the current way to manage configuration logic if the options grow in number the code would be larger and you are on risk of breaking the Single Responsibility Principle. Also it makes less obvious the purpose of the function.
Proposal
Make configuration lines move to another function. The logic can be in
settings
function but I suggest a new function instead.The text was updated successfully, but these errors were encountered: