Skip to content

Commit 4488fc1

Browse files
authored
Add Prettier configuration file (prettier.config.js) (tailwindlabs#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
1 parent 30dc299 commit 4488fc1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

prettier.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
// These settings are duplicated in .editorconfig:
3+
tabWidth: 2, // indent_size = 2
4+
useTabs: false, // indent_style = space
5+
endOfLine: 'lf', // end_of_line = lf
6+
semi: false, // default: true
7+
singleQuote: true, // default: false
8+
printWidth: 100, // default: 80
9+
trailingComma: 'es5',
10+
bracketSpacing: true,
11+
overrides: [
12+
{
13+
files: '*.js',
14+
options: {
15+
parser: 'flow',
16+
},
17+
},
18+
],
19+
}

0 commit comments

Comments
 (0)