trigger('myInsertRemoveTrigger', [
transition(':enter', [
style({ opacity: 0 }),
animate('5s', style({ opacity: 1 })),
]),
transition(':leave', [
animate('5s', style({ opacity: 0 }))
])
]),
变得像
trigger('fadeInOut', [
transition(':enter', [style({ opacity: 0 }), animate('.5s', style({ opacity: 1 }))]),
transition(':leave', [animate('.5s', style({ opacity: 0 }))])
])
我觉得很难读懂。我能以某种方式配置它吗?
目前,我的.prettierrc
是
{
"printWidth": 120,
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"bracketSpacing": true
}
发布于 2019-06-12 02:38:19
prettier是固执己见的,因此你不能配置它重新格式化代码的方式:你只需要接受prettier所做的缩进:)
发布于 2019-06-12 02:43:11
只需在数组的第一个元素后添加注释即可。
var a = [
1, //
2,
3,
];
发布于 2019-06-12 02:47:01
https://stackoverflow.com/questions/56549851
复制相似问题