Search code examples
twigphpstormjscs

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?

Thanks


Solution

  • JSCS supports --extract option that allows linting embedded javascript (http://jscs.info/overview). But: