A prettier plugin for sorting PHPDoc
npm install prettier-plugin-phpdocA prettier plugin that formats PHPDoc and the types used in them.
``sh`
npm install --save-dev prettier-plugin-phpdoc
`js`
module.exports = {
plugins: ['./node_modules/prettier-plugin-phpdoc/dist/index.js'],
};
- wrapText: (default: false) Whether to wrap text in PHPDoc after it crosses printWidthexpandNull
- : (default: false) Whether to expand ?int (and other types) to null|int`