Created
May 24, 2020 18:10
-
-
Save VinayakBagaria/5fe491f8782221f53d1eba425675ab27 to your computer and use it in GitHub Desktop.
General Configs
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
module.exports = { | |
/* | |
Print spaces b/w brackets in obj literals | |
true - Example: { foo: bar }. | |
false - Example: {foo: bar}. | |
*/ | |
bracketSpacing: true, | |
/* | |
use single quotes instead of double. | |
*/ | |
singleQuote: true, | |
/* | |
put > of a multi-line jsx element being alone on next line | |
*/ | |
jsxBracketSameLine: false, | |
/* | |
trailing commas wherever valid in ES5, like in objs and arrays | |
*/ | |
trailingComma: 'es5', | |
// Specify the line length that the printer will wrap on | |
printWidth: 80, | |
tabWidth: 2, | |
// Omit parens when possible. Example: x => x | |
arrowParens: 'avoid', | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment