Skip to content

PhpStorm error: phpcs: Expected at least 1 space after "<"; 0 found #839

Answered by fredden
badtiger asked this question in Q&A
Discussion options

You must be logged in to vote

That doesn't look like valid JavaScript to me. Maybe it's JSX? PHP_CodeSniffer does not support JSX.

Using PHP_CodeSniffer on JavaScript is discouraged, and won't be supported in the future. I recommend that you use a linter which supports the language that you are writing in. PHP_CodeSniffer works just fine for PHP.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by badtiger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants