-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.js
More file actions
34 lines (33 loc) · 910 Bytes
/
prettier.config.js
File metadata and controls
34 lines (33 loc) · 910 Bytes
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
/** Prettier configuration and options. */
var prettierConfig = {
$schema: 'https://json.schemastore.org/prettierrc',
plugins: ['@trivago/prettier-plugin-sort-imports'],
importOrderParserPlugins: ['typescript', 'decorators-legacy'],
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
endOfLine: 'lf',
experimentalTernaries: false,
printWidth: 80,
proseWrap: 'always',
quoteProps: 'as-needed',
semi: true,
singleAttributePerLine: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
// Order of import declarations
importOrder: [
// Angular first.
'^@angular/(.*)$',
// Local application files second.
'^src/app/(.*)$',
// Third-party libraries third.
'^[./]',
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
};
module.exports = prettierConfig;