Skip to content

Commit 1e2f853

Browse files
Add prettier
1 parent ec2d2e8 commit 1e2f853

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

prettier.config.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
printWidth: 100, // https://github.com/airbnb/javascript#19.13
3+
tabWidth: 2, // https://github.com/airbnb/javascript#19.1
4+
useTabs: false, // https://github.com/airbnb/javascript#19.1
5+
semi: true, // https://github.com/airbnb/javascript#21.1
6+
singleQuote: true, // https://github.com/airbnb/javascript#6.1
7+
quoteProps: 'as-needed', // https://github.com/airbnb/javascript#3.6
8+
jsxSingleQuote: false, // https://github.com/airbnb/javascript/tree/master/react#quotes
9+
trailingComma: 'all', // https://github.com/airbnb/javascript#20.2
10+
bracketSpacing: true, // https://github.com/airbnb/javascript#19.12
11+
jsxBracketSameLine: false, // https://github.com/airbnb/javascript/tree/master/react#alignment
12+
arrowParens: 'always', // https://github.com/airbnb/javascript#8.4
13+
overrides: [
14+
{
15+
files: '.editorconfig',
16+
options: { parser: 'yaml' },
17+
},
18+
{
19+
files: 'LICENSE',
20+
options: { parser: 'markdown' },
21+
},
22+
],
23+
};

0 commit comments

Comments
 (0)