@kachkaev/prettier-config
v2.1.4
Published
Works with [Prettier](https://www.npmjs.com/package/prettier) v3, Compatible with PNPM, Yarn and NPM. Uses default options. Includes:
Readme
@kachkaev → prettier config
Works with Prettier v3, Compatible with PNPM, Yarn and NPM. Uses default options. Includes:
Adding to project
Install the package:
## If you use NPM npm install -D @kachkaev/prettier-config ## If you use PNPM pnpm add -D @kachkaev/prettier-config ## If you use Yarn yarn add -D @kachkaev/prettier-configOpen
package.jsonand add the following line:{ "...": "...", "prettier": "@kachkaev/prettier-config" }Create
.prettierignore. For example,## Ignore all files (but still allow sub-folder scanning) * !*/ ## Allow certain file types !*.css !*.js !*.json !*.jsx !*.md !*.mdx !*.ts !*.tsx !*.yaml !*.yml ## Allow certain files without extensions !.husky/* ## Disallow autogenerated files that are not mentioned in root .gitignore .husky/_/ pnpm-lock.yamlOptionally, configure package scripts and a pre-commit hook to make sure that all project files are always formatted. See example in
njt→package.json.
