You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far, in order to keep it fast, we don't parse files provided to the style-validate binary. It works well with HTML files and some other files we're using in other projects but parsing complex class names like className={isDisabled ? "disabled" : "active"} is a legitimate use case.
Let's first try to use the current engine with regexes, and if it doesn't work we'll have to provide a more powerful parser.
Also, we could use duktape or v8 in order to support scripting in javascript, that would keep the codebase as is, but it might come with a big impact on performances, especially on large projects with +5.000 files.
The text was updated successfully, but these errors were encountered:
So far, in order to keep it fast, we don't parse files provided to the
style-validate
binary. It works well with HTML files and some other files we're using in other projects but parsing complex class names likeclassName={isDisabled ? "disabled" : "active"}
is a legitimate use case.Let's first try to use the current engine with regexes, and if it doesn't work we'll have to provide a more powerful parser.
Also, we could use duktape or v8 in order to support scripting in javascript, that would keep the codebase as is, but it might come with a big impact on performances, especially on large projects with +5.000 files.
The text was updated successfully, but these errors were encountered: