user742736 user742736 - 10 months ago 82
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?


Answer Source

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