79787986

Date: 2025-10-11 11:56:34
Score: 0.5
Natty:
Report link

I hacked the eslint-plugin-php-markup package to make it work. The hacked code are available at here: https://github.com/dannyniu/eslint-plugin-php-markup along with a short guide on how to configure the eslint.config.mjs, here's an excerpt:

...
import html from "eslint-plugin-html";
import php from "eslint-plugin-php-markup";
...
... { files: ["**/*.php"],
  plugins: { html, php },
  processor: php.processor,
  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
  },
} ...
...
Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: DannyNiu