Use the js_sniffs.xml ruleset to run all these sniffs, eg phpcs -v --standard=js_sniffs.xml
- comparison operator usage
- control signature
- control structure spacing
- disallow inline if
- disallow size functions in loops
- disallow tab indent
- file comment
- for loop declaration
- function closing brace space
- function opening brace space
- inline comment
- inline control structure
- line endings
- logical operator spacing
- long condition closing comment
- lower case constant
- multiple statement alignment
- operator bracket
- operator spacing
- post statement comment
- semicolon spacing
- superfluous whitespace
- switch declaration
- unnecessary string concat