Created
November 2, 2019 00:03
-
-
Save JoshM1994/bdf2f4df8a2493a3afbf783289c7bfaf to your computer and use it in GitHub Desktop.
Prettier configuration for most JS projects
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
/** | |
# | |
# JS prettier.config.js | |
# ____ ___ _ _ ___ _____ _____ ____ ___ _____ | |
# | _ \ / _ \ | \ | |/ _ \_ _| | ____| _ \_ _|_ _| | |
# | | | | | | | | \| | | | || | | _| | | | | | | | | |
# | |_| | |_| | | |\ | |_| || | | |___| |_| | | | | | |
# |____/ \___/ |_| \_|\___/ |_| |_____|____/___| |_| | |
# | |
# | |
*/ | |
module.exports = { | |
printWidth: 120, | |
singleQuote: true, | |
trailingComma: 'all', | |
bracketSpacing: true, | |
jsxBracketSameLine: false, | |
tabWidth: 4, | |
semi: true, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment