forked from Windsland52/ArknightsAutoOperator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.prettierrc.mjs
More file actions
35 lines (34 loc) · 851 Bytes
/
Copy path.prettierrc.mjs
File metadata and controls
35 lines (34 loc) · 851 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
35
import * as maafwSort from '@nekosu/prettier-plugin-maafw-sort'
import * as multilineArrays from 'prettier-plugin-multiline-arrays'
export default {
semi: false,
singleQuote: true,
trailingComma: 'none',
tabWidth: 4,
printWidth: 100,
multilineArraysWrapThreshold: 0,
plugins: [
maafwSort.patchPlugin(multilineArrays)
],
overrides: [
{
// MAA pipeline / interface JSON 允许注释(JSONC);用 jsonc parser 以保留注释。
files: [
'*.json'
],
options: {
parser: 'json',
tabWidth: 4
}
},
{
files: [
'*.jsonc'
],
options: {
parser: 'json',
tabWidth: 4
}
}
]
}