Skip to content

Instantly share code, notes, and snippets.

@VinayakBagaria
Created May 24, 2020 18:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save VinayakBagaria/5fe491f8782221f53d1eba425675ab27 to your computer and use it in GitHub Desktop.
Save VinayakBagaria/5fe491f8782221f53d1eba425675ab27 to your computer and use it in GitHub Desktop.
General Configs
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