A personalized Prettier config from the depths of hell.
Install the package, along with Pretter:
npm install --save-dev prettier prettier-config-infernal
Create a .prettierrc.json
file in the root of your project:
"prettier-config-infernal"
This config enforces the following formatting rules:
- Tabs for indentation
- Double quotes for strings
- LF line endings - you should change this if you're on Windows
- Trailing commas
- Arrow parentheses
- Print width of 100 characters - works nicely on my 2k monitor with 2 windows side-by-side
The config includes a couple of overrides for specific file types, which are listed below.
- 4 spaces for indentation - tabs tend to break YAML files
This project is licensed under the MIT License - see the LICENSE file for details.