Skip to content

Commit 48c1716

Browse files
committed
style: lint
1 parent 786525b commit 48c1716

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

lint-staged.config.cjs

+1-3
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

+2-10
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-
const savePicture = async (
45-
photo: Photo,
46-
fileName: string
47-
): Promise<UserPhoto> => {
39+
const savePicture = async (photo: Photo, fileName: string): Promise<UserPhoto> => {
4840
let base64Data: string
4941
// "hybrid" will detect Cordova or Capacitor;
5042
if (isPlatform('hybrid')) {

0 commit comments

Comments
 (0)