generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
32 lines (30 loc) · 846 Bytes
/
.prettierrc.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
26
27
28
29
30
31
32
// https://prettier.io/docs/en/options.html
// https://prettier.io/docs/en/options.html#parser
// https://github.wdf.sap.corp/ux-engineering/tools-suite/blob/master/docs/dev-guide/formatting.md
/* Override the shared config in individual packages if required like this:
module.exports = {
...require("@company/prettier-config"),
semi: false
};
*/
module.exports = {
arrowParens: 'always',
singleQuote: true,
semi: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'none',
bracketSpacing: true,
jsxBracketSameLine: true,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
printWidth: 120,
useTabs: false,
tabWidth: 4,
overrides: [
{
files: [ '*.yaml', '*.yml', '*.json'],
options: { tabWidth: 2}
}
]
};