-
Notifications
You must be signed in to change notification settings - Fork 33
/
.prettierrc.js
28 lines (28 loc) · 883 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
module.exports = {
$schema: 'http://json.schemastore.org/prettierrc',
trailingComma: 'all',
useTabs: false,
tabWidth: 2,
semi: true,
singleQuote: true,
quoteProps: 'consistent',
arrowParens: 'always',
bracketSpacing: true,
endOfLine: 'lf',
printWidth: 80,
plugins: [
require.resolve('prettier-plugin-packagejson'),
require.resolve('prettier-plugin-jsdoc'),
require.resolve('prettier-plugin-sort-json'),
require.resolve('@ianvs/prettier-plugin-sort-imports'),
require.resolve('prettier-plugin-sh'),
],
importOrder: [
'<BUILTIN_MODULES>', // Node.js built-in modules
'<THIRD_PARTY_MODULES>', // Imports not matched by other special words or groups.
'^[.]', // relative imports
],
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
importOrderTypeScriptVersion: '5.6.2',
jsonRecursiveSort: true,
};