install and configure prettier globally code example Example: install prettier globaly yarn add --dev --exact prettier