Skip to content
Permalink
Browse files
Add Prettier configuration file (prettier.config.js) (#3713)
* Create prettier.config.js

* Add comment with .editorconfig

* Remove duplicate settings handled by .editorconfig

* Correct printWidth

* Update prettier.config.js to remove "unknown option" editorconfig: true
  • Loading branch information
DoctorDerek committed May 13, 2021
1 parent 30dc299 commit 4488fc1d0dee8c2d363582600dcc107e311e226d
Showing with 19 additions and 0 deletions.
  1. +19 −0 prettier.config.js
@@ -0,0 +1,19 @@
module.exports = {
// These settings are duplicated in .editorconfig:
tabWidth: 2, // indent_size = 2
useTabs: false, // indent_style = space
endOfLine: 'lf', // end_of_line = lf
semi: false, // default: true
singleQuote: true, // default: false
printWidth: 100, // default: 80
trailingComma: 'es5',
bracketSpacing: true,
overrides: [
{
files: '*.js',
options: {
parser: 'flow',
},
},
],
}

0 comments on commit 4488fc1

Please sign in to comment.