Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency eslint to v9 - abandoned #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ jobs:
- name: Set node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: .nvmrc
cache: pnpm
registry-url: 'https://registry.npmjs.org'

7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -43,6 +43,11 @@
"xml",
"gql",
"graphql",
"astro"
"astro",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @uni-helper/uni-env

在 uni-app 中优雅的判断当前环境
在 uni-app 中优雅地判断当前环境。

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
4 changes: 1 addition & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu({
vue: false,
})
export default antfu()
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"name": "@uni-helper/uni-env",
"type": "module",
"version": "0.1.2",
"packageManager": "pnpm@9.1.2",
"packageManager": "pnpm@9.4.0",
"description": "",
"author": "KeJun",
"license": "MIT",
@@ -49,10 +49,10 @@
"std-env": "^3.7.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.18.1",
"@types/node": "^20.12.12",
"@antfu/eslint-config": "^2.21.1",
"@types/node": "^20.14.5",
"bumpp": "^9.4.1",
"eslint": "^8.57.0",
"eslint": "^9.0.0",
"esno": "^4.7.0",
"typescript": "^5.4.5",
"unbuild": "^2.0.0",
692 changes: 295 additions & 397 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions pnpm-workspace.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions src/_constant.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/compiler.ts

This file was deleted.

36 changes: 0 additions & 36 deletions src/const.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/flags.ts

This file was deleted.

549 changes: 544 additions & 5 deletions src/index.ts

Large diffs are not rendered by default.

58 changes: 0 additions & 58 deletions src/platform.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/types.ts

This file was deleted.

File renamed without changes.
68 changes: 52 additions & 16 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -7,11 +7,13 @@ describe('uni-env', () => {
[
"builtInPlatforms",
"platform",
"utsPlatform",
"appPlatform",
"subPlatform",
"utsPlatform",
"isH5",
"isWeb",
"isApp",
"isAppPlus",
"isAppAndroid",
"isAppIOS",
"isMp",
@@ -24,27 +26,61 @@ describe('uni-env', () => {
"isQuickapp",
"isQuickappUnion",
"isQuickappHuawei",
"hasDarkMode",
"hasSourcemap",
"utsJsCodeFormat",
"utsModuleType",
"utsModulePrefix",
"utsTargetLanguage",
"inputDir",
"outputDir",
"cliContext",
"subpackage",
"mpPlugin",
"isMpPlugin",
"isMinimize",
"isSSRClient",
"isSSRServer",
"compiler",
"nvueCompiler",
"nvueStyleCompiler",
"compilerVersion",
"compilerVersionType",
"cliContext",
"inputDir",
"outputDir",
"statTitleJson",
"customContext",
"hbuilderxPlugins",
"renderer",
"nvueCompiler",
"nvueStyleCompiler",
"appCodeSpliting",
"automatorWsEndpoint",
"automatorAppWebview",
"automatorAppWebviewSrc",
"h5Base",
"h5Browser",
"customScript",
"customDefine",
"subpackage",
"renderer",
"customContext",
"minimize",
"isMinimize",
"uvue",
"isUVue",
"uvueTargetLanguage",
"compiler",
"rendererNative",
"nvueAppStyles",
"appChangedFiles",
"appChangedPages",
"darkMode",
"hasDarkMode",
"hxUseBaseType",
"hxDependenciesDir",
"appX",
"isAppX",
"appXCacheDir",
"hxVersion",
"appXPageCount",
"appXTsc",
"appXSingleThread",
"appXSetup",
"appXUVueScriptEngine",
"statTitleJson",
"sourcemap",
"hasSourcemap",
"ssrClient",
"isSSRClient",
"ssrServer",
"isSSRServer",
]
`)
})
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"target": "es2018",
"target": "esnext",
"lib": ["esnext"],
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"strict": true,
"strictNullChecks": true,