5.0.2 • Published 1 year ago
@crashmax/prettier-config v5.0.2
@crashmax/prettier-config
Here is my personal Prettier config.
Install
npm install @crashmax/prettier-config -D
yarn add @crashmax/prettier-config -D
pnpm add @crashmax/prettier-config -D
Usage
// .prettierrc.cjs
module.exports = require('@crashmax/prettier-config')
Copy the ignore file to your project folder
If you want to extend the ignore file, run the following command in the root of your project folder:
# unix
cp node_modules/@crashmax/prettier-config/.prettierignore .prettierignore
# windows
copy node_modules/@crashmax/prettier-config/.prettierignore .prettierignore
It will copy the .prettierignore
from @crashmax/prettier-config
to your project root folder.
Scripts
Some commonly used scripts in package.json
.
{
"scripts": {
"format": "prettier --write \"**/*.{js,ts,tsx,json}\""
}
}
Related
- Prettier - an opinionated code formatter.
- Prettier - Sharing configurations - Document on sharing prettier configurations.
- Prettier - Ignore Code - Use
.prettierignore
to ignore certain files and folders completely. - prettier-plugin-sort-imports - A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.
- prettier-plugin-multiline-arrays - Prettier plugin to force array elements to wrap onto new lines.
5.0.2
1 year ago
5.0.1
2 years ago
5.0.0
2 years ago
4.1.0
2 years ago
4.0.0
2 years ago
3.2.1
2 years ago
3.2.0
2 years ago
3.1.0
2 years ago
3.0.1
2 years ago
3.0.0-beta.1
2 years ago
3.0.0-beta.0
2 years ago
3.0.0-beta.3
2 years ago
3.0.0-beta.2
2 years ago
3.0.0
2 years ago
3.0.0-beta.5
2 years ago
3.0.0-beta.4
2 years ago
3.0.0-beta.6
2 years ago
2.2.1
3 years ago
2.2.0
3 years ago
2.0.5
3 years ago
2.1.0
3 years ago
2.0.4
3 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago