-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path.prettierrc.cjs
More file actions
53 lines (47 loc) · 1.03 KB
/
.prettierrc.cjs
File metadata and controls
53 lines (47 loc) · 1.03 KB
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
43
44
45
46
47
48
49
50
51
52
53
'use strict';
const testing = [
'^ember-cli-htmlbars($|\\/)',
'^qunit',
'^ember-qunit',
'^@ember/test-helpers',
'^ember-exam',
'^ember-cli-mirage',
'^sinon',
'^ember-sinon-qunit',
'^(@[^\\/]+\\/)?[^\\/]+\\/test-support($|\\/)',
].join('|');
const emberCore = [
'^ember$',
'^@ember\\/',
'^ember-data($|\\/)',
'^@ember-data\\/',
'^@glimmer\\/',
'^require$',
].join('|');
const emberAddons = ['^@?ember-', '^@[^\\/]+\\/ember($|\\/|-)'].join('|');
const orbitPackages = ['^@orbit/(.*)$', '^[./]'].join('|');
const importOrder = [
testing,
emberCore,
emberAddons,
'<THIRD_PARTY_MODULES>',
orbitPackages,
];
const importOrderParserPlugins = ['typescript', 'decorators-legacy'];
module.exports = {
plugins: [
'@ianvs/prettier-plugin-sort-imports',
'prettier-plugin-ember-template-tag',
],
importOrder,
importOrderParserPlugins,
overrides: [
{
files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}',
options: {
singleQuote: true,
templateSingleQuote: false,
},
},
],
};