Skip to content

Commit 8470a8d

Browse files
committed
style: lint
1 parent 62af4c3 commit 8470a8d

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

‎lint-staged.config.cjs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module.exports={
22
'*.{js,ts,mjs,cjs}': ['pnpm lint:eslint','pnpm lint:prettier'],
3-
'{!(package)*.json,*.code-snippets,.*rc}': [
4-
'pnpm lint:prettier --parser json',
5-
],
3+
'{!(package)*.json,*.code-snippets,.*rc}': ['pnpm lint:prettier --parser json'],
64
'package.json': ['pnpm lint:prettier'],
75
}

‎playground/composables/usePhotoGallery.ts‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import{Capacitor}from'@capacitor/core'
2-
import{
3-
Camera,
4-
CameraSource,
5-
CameraResultType,
6-
Photo,
7-
}from'@capacitor/camera'
2+
import{Camera,CameraSource,CameraResultType,Photo}from'@capacitor/camera'
83
import{Filesystem,Directory}from'@capacitor/filesystem'
94
import{Storage}from'@capacitor/storage'
105

@@ -41,10 +36,7 @@ export function usePhotoGallery() {
4136
reader.readAsDataURL(blob)
4237
})
4338

44-
constsavePicture=async(
45-
photo: Photo,
46-
fileName: string
47-
): Promise<UserPhoto>=>{
39+
constsavePicture=async(photo: Photo,fileName: string): Promise<UserPhoto>=>{
4840
letbase64Data: string
4941
// "hybrid" will detect Cordova or Capacitor;
5042
if(isPlatform('hybrid')){

0 commit comments

Comments
 (0)