-
Notifications
You must be signed in to change notification settings - Fork 22
/
.prettierrc.js
38 lines (38 loc) · 928 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
33
34
35
36
37
38
/**
* @type {import('prettier').Config}
*/
module.exports = {
printWidth: 100,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: false,
arrowParens: 'avoid',
htmlWhitespaceSensitivity: 'ignore',
plugins: [require.resolve('prettier-plugin-organize-attributes')],
attributeGroups: [
'$ANGULAR_STRUCTURAL_DIRECTIVE',
'$ANGULAR_ELEMENT_REF',
'$ID',
'$DEFAULT',
'$CLASS',
'^\\[class\\.',
'$ANGULAR_ANIMATION',
'$ANGULAR_ANIMATION_INPUT',
'$ANGULAR_INPUT',
'$ANGULAR_TWO_WAY_BINDING',
'$ANGULAR_OUTPUT',
],
overrides: [
{
files: ['*.html'],
options: {parser: 'html'},
},
{
files: ['*.component.html', '*.template.html'],
options: {parser: 'angular'},
},
],
};