Skip to content

Commit

Permalink
feat: create prettier config file
Browse files Browse the repository at this point in the history
  • Loading branch information
gurpreetatwal committed Dec 31, 2019
1 parent 088a575 commit f28a1cc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

/**
* @see https://prettier.io/docs/en/options.html
*/
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true, // default: false
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'all', // default: none
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
vueIndentScriptAndStyle: false,
endOfLine: 'lf', // default: auto
};

0 comments on commit f28a1cc

Please sign in to comment.