Last active
July 19, 2020 04:31
-
-
Save kyktommy/c4ca9f5405c9bcbc703987a8c3f37528 to your computer and use it in GitHub Desktop.
javascript prettier config
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
{ | |
"arrowParens": "avoid", | |
"trailingComma": "none", | |
"jsxBracketSameLine": true, | |
"printWidth": 100, | |
"singleQuote": true, | |
"semi": false, | |
"tabWidth": 2 | |
} |
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
// install vscode prettier plugin, | |
// or install prettier command, | |
// prettier --write "**/*.js" | |
module.exports = { | |
arrowParens: 'avoid', | |
trailingComma: 'none', | |
jsxBracketSameLine: true, | |
printWidth: 100, | |
singleQuote: true, | |
semi: false, | |
tabWidth: 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment