forked from dynatrace-oss/barista
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prettier.config.js
30 lines (30 loc) · 886 Bytes
/
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
26
27
28
29
30
module.exports = {
proseWrap: 'always',
endOfLine: 'lf',
printWidth: 80,
singleQuote: true,
trailingComma: 'all',
htmlWhitespaceSensitivity: 'css',
overrides: [
{
files: ['.stylelintrc'],
options: { parser: 'json' },
},
{ files: '*.ts.lint', options: { parser: 'typescript' } },
{
// Add angular specific parser for all our angular templates
files: [
'libs/barista-components/**/*.html',
'apps/{barista-design-system,components-e2e,demos,dev,universal,fluid-dev}/**/*.html',
],
options: { parser: 'angular' },
},
{
// For the web components use the Lighting Web Components prettier parser
// extends the html parser and adds LWC-specific syntax
// for unquoted template attributes
files: ['libs/fluid-elements/**/*.html'],
options: { parser: 'lwc' },
},
],
};