Linting
From MoodleDocs
In Moodle development code linters are used to help ensure consistent coding conventions and help prevent common errors in code.
PHP (PHP_CodeSniffer)
PHP code in Moodle is linted by PHP_CodeSniffer using the rules in the Code-checker plugin.
Javascript (ESLint)
Since Moodle 3.2, Javascript code has been linted by eslint.
CSS/SCSS/Less (stylelint)
Since Moodle 3.2, CSS code has been linted by stylelint.