forked from sovity/edc-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.js
42 lines (40 loc) · 878 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
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = {
tabWidth: 2,
useTabs: false,
singleQuote: true,
semi: true,
arrowParens: 'always',
trailingComma: 'all',
bracketSameLine: true,
printWidth: 80,
bracketSpacing: false,
proseWrap: 'always',
attributeGroups: [
'$ANGULAR_STRUCTURAL_DIRECTIVE',
'^(id|name)$',
'^class$',
'$DEFAULT',
'^aria-',
'$ANGULAR_INPUT',
'$ANGULAR_TWO_WAY_BINDING',
'$ANGULAR_OUTPUT',
],
// @trivago/prettier-plugin-sort-imports
importOrder: [
// this import needs to be on top or tests fail
'^zone.js/testing$',
// third parties first
'^@angular/(.*)$',
'^rxjs(/(.*))?$',
'<THIRD_PARTY_MODULES>',
// rest after
'^[./]',
],
importOrderParserPlugins: [
'typescript',
'classProperties',
'decorators-legacy',
],
importOrderSeparation: false,
importOrderSortSpecifiers: true,
};