Skip to content

Commit

Permalink
chore: eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Sep 11, 2024
1 parent 5fb7428 commit 678b63c
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ pnpm i -D @uni-helper/vite-plugin-uni-manifest

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import Uni from '@dcloudio/vite-plugin-uni'
import UniManifest from '@uni-helper/vite-plugin-uni-manifest'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [UniManifest(), Uni()],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ pnpm i -D @uni-helper/vite-plugin-uni-manifest

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import Uni from '@dcloudio/vite-plugin-uni'
import UniManifest from '@uni-helper/vite-plugin-uni-manifest'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [UniManifest(), Uni()]
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"vite": "^4.0.0 || ^5.0.0"
},
"dependencies": {
"c12": "^1.10.0"
"c12": "^1.11.2"
},
"devDependencies": {
"vite": "^5.2.11"
"vite": "^5.4.3"
}
}
2 changes: 1 addition & 1 deletion packages/core/src/config/types/appPlus.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { HEXColor, PNG, PercentageSize, PxSize } from './common'
import type { HEXColor, PercentageSize, PNG, PxSize } from './common'
import type { PlatformUniStatistics } from './uniStatistics'

// https://developer.android.com/reference/android/Manifest.permission
Expand Down
13 changes: 9 additions & 4 deletions packages/core/src/config/types/mpWeixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,15 @@ export interface MpWeixin {
navigateToMiniProgramAppIdList?: string[]

/** 接口权限设置,详见 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#permission> */
permission?: Record<'scope.userLocation'|'scope.userLocationBackground'|'scope.userFuzzyLocation', {
/** 小程序获取权限时展示的接口用途说明 */
desc: string
}>
permission?: Record<
'scope.userLocation' |
'scope.userLocationBackground' |
'scope.userFuzzyLocation',
{
/** 小程序获取权限时展示的接口用途说明 */
desc: string
}
>

/** Worker 代码目录,详见 <https://developers.weixin.qq.com/miniprogram/dev/framework/workers.html> */
workers?: string | {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/context.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { existsSync, writeFileSync } from 'node:fs'
import process from 'node:process'
import { watchConfig } from 'c12'
import { resolveOptions } from './options'
import type { ResolvedOptions, UserOptions } from './types'
import { defaultManifestConfig, manifestJsonPath } from './constant'
import { resolveOptions } from './options'
import type { UserManifestConfig } from './config'
import type { ResolvedOptions, UserOptions } from './types'

export class ManifestContext {
options: ResolvedOptions
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Plugin } from 'vite'
import type { UserOptions } from './types'
import { ManifestContext } from './context'
import type { UserOptions } from './types'

export * from './config'

Expand Down
2 changes: 1 addition & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"prepublishOnly": "pnpm generate"
},
"devDependencies": {
"ts-json-schema-generator": "^2.1.1"
"ts-json-schema-generator": "^2.3.0"
}
}
2 changes: 1 addition & 1 deletion playground/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
"enable": false
},
"vueVersion": "3"
}
}
2 changes: 1 addition & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import Uni from '@dcloudio/vite-plugin-uni'
import UniManifest from '@uni-helper/vite-plugin-uni-manifest'
import { defineConfig } from 'vite'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit 678b63c

Please sign in to comment.