-
Notifications
You must be signed in to change notification settings - Fork 182
/
Copy path.prettierrc.js
37 lines (36 loc) · 922 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
'use strict'
module.exports = {
printWidth: 80, // default
tabWidth: 2, // default
useTabs: false, // default
semi: false,
singleQuote: true,
jsxSingleQuote: false, // default
trailingComma: 'es5',
bracketSpacing: true, // default
jsxBracketSameLine: false, // default
arrowParens: 'avoid', // default
endOfLine: 'lf',
plugins: ['@ianvs/prettier-plugin-sort-imports'],
importOrder: [
'^(react)(.*)$',
'<THIRD_PARTY_MODULES>',
'',
'^@opentrons/(.*)$',
'',
'^/(.*)/(?!assets)(.*)$',
'',
'^[./](?!.*\\.(png|jpg|jpeg|gif|svg|webm|mp4)$)',
'',
'<TYPES>',
'<TYPES>^(react)(.*)$',
'<TYPES><THIRD_PARTY_MODULES>',
'<TYPES>^@opentrons/(.*)$',
'<TYPES>^/(.*)/(?!assets)(.*)$',
'<TYPES>^[./]',
'',
'.*/assets/.*',
'.*\\.(png|jpg|jpeg|gif|svg|webm|mp4)$',
],
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
}