Last active
June 9, 2020 14:58
-
-
Save danielwrobert/5a1204c5bd50bd5d11645bf0642ab75e to your computer and use it in GitHub Desktop.
My Prettier configuration files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"useTabs": true, | |
"tabWidth": 4, | |
"singleQuote": true, | |
"printWidth": 100 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"useTabs": true, | |
"tabWidth": 2, | |
"printWidth": 100, | |
"singleQuote": true, | |
"trailingComma": "es5", | |
"bracketSpacing": true, | |
"parenSpacing": true, | |
"jsxBracketSameLine": false, | |
"semi": true, | |
"arrowParens": "avoid" | |
} |
Change Log
- 2020/06/09:
- Remove
endOfLine
setting - Default value changed fromauto
tolf
in v2.0.0 - Remove
setting - Default value changed from
noneto
es5` in v2.0.0
- Remove
- 2019/07/01: Updated settings to remove items that are set to what is already the default.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The only difference between the two above files is the
"parenSpacing": true,
option. This is added via the wp-prettier fork by Automattic.To use this, you must install that fork of Prettier to your project. See directions in the README for that repo.
Be sure you're using the latest version (again, see README).