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