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
This commit is contained in:
parent
30dc2990c3
commit
4488fc1d0d
1 changed files with 19 additions and 0 deletions
19
prettier.config.js
Normal file
19
prettier.config.js
Normal file
|
|
@ -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',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue