user742736 user742736 - 6 months ago 43
Twig Question

PhpStorm + JSCS + TWIG with JavaScript. JSCS doesn't work

JSCS is installed correctly and I have tested it with a .js file.

When I am editing a .html.twig or .js.twig JSCS doesn't kick in.

PhpStorm detects that it's a HTML and JS file.

Is it possible for JSCS to work in PhpStorm when editing twig files?



JSCS supports --extract option that allows linting embedded javascript ( But: