A eslint plugin to process PHP markup
npm install eslint-plugin-php-markup ... ?> to other text.
sh
npm install --save-dev eslint-plugin-php-markup
`
Usage
Add php-markup to the plugins section of your .eslintrc configuration file.
BTW, it works like a charm together with eslint-plugin-html!
`js
{
// ...
"plugins": [
"html",
"php-markup"
],
"settings": {
"php/php-extensions": [".php"],
"php/markup-replacement": {"php": "", "=": "0"},
"php/keep-eol": false,
"php/remove-whitespace": false,
"php/remove-empty-line": false,
"php/remove-php-lint": false
},
// ...
}
``