3.0.0 • Published 2 months ago

@vic1707/prettier v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Prettier config

to use this package install it with

npm install --save-dev @vic1707/prettier prettier

and add this line to your package.json

"prettier": "@vic1707/prettier"

You will also need a .prettierignore file to exclude files from being formatted

**/package.json
**/package-lock.json
**/coverage
**/dist
**/node_modules

The package.json, package-lock.json, yarn.lock etc... files are excluded because the package manager reformats them on install/update and their rules are different from prettier's.

Here are the scripts I use to lint my code:

{
    "format": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx,scss,css,json,yml}\" -c",
    "format:fix": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx,scss,css,json,yml}\""
}

Original repo can be found here: https://github.com/vic1707/devconfig

3.0.0

2 months ago

2.0.1

6 months ago

2.0.0

8 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

2 years ago