forked from iamturns/eslint-config-airbnb-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prettier.config.js
25 lines (24 loc) · 1.01 KB
/
prettier.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Some settings automatically inherited from .editorconfig
module.exports = {
printWidth: 100, // https://github.com/airbnb/javascript#19.13
tabWidth: 2, // https://github.com/airbnb/javascript#19.1
useTabs: false, // https://github.com/airbnb/javascript#19.1
semi: true, // https://github.com/airbnb/javascript#21.1
singleQuote: true, // https://github.com/airbnb/javascript#6.1
quoteProps: 'as-needed', // https://github.com/airbnb/javascript#3.6
jsxSingleQuote: false, // https://github.com/airbnb/javascript/tree/master/react#quotes
trailingComma: 'all', // https://github.com/airbnb/javascript#20.2
bracketSpacing: true, // https://github.com/airbnb/javascript#19.12
jsxBracketSameLine: false, // https://github.com/airbnb/javascript/tree/master/react#alignment
arrowParens: 'always', // https://github.com/airbnb/javascript#8.4
overrides: [
{
files: '.editorconfig',
options: { parser: 'yaml' },
},
{
files: 'LICENSE',
options: { parser: 'markdown' },
},
],
};