user742736 user742736 - 1 year ago 183
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:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download