@its-tailtime/prettier-config
v1.0.3
Published
A prettier shareable config for JS & TS projects
Downloads
29
Readme
prettier-config
A Prettier shareable config for JS & TS projects.
Why use a separate shareable config and not just embed your .prettierrc config in the ESLint config?
From eslint-plugin-prettier:
Note: While it is possible to pass options to Prettier via your ESLint configuration file, it is not recommended because editor extensions such as prettier-atom and prettier-vscode will read .prettierrc, but won't read settings from ESLint, which can lead to an inconsistent experience.
The most important reason is that eslint only operates on json & js/ts-like files - not scss or anything else.
Installation
Run the following command (this will also install dependencies):
pnpm add --save-dev @its-tailtime/prettier-configThen, create a .prettierrc file at the root of your repository containing the following (with the double quotes - and yes, it looks weird):
"@its-tailtime/prettier-config"