tailwindcss/prettier.config.js
Dr. Derek Austin 4488fc1d0d
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
2021-05-13 09:07:24 -04:00

20 lines
446 B
JavaScript

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',
},
},
],
}