Linting
From MoodleDocs
In Moodle development code linters are used to help ensure consistent coding conventions and help prevent common errors in code.
Linters
PHP (PHP_CodeSniffer)
PHP code in Moodle is linted by PHP_CodeSniffer.
Rules
The rules defined as part of the Code-checker plugin.
Javascript (ESLint)
Javascript code is linted with eslint.
Rules
ESlint rules are defined within Moodle
Ignores
CSS/SCSS/Less (stylelint)
CSS code has been linted by stylelint.