Skip to content

Commit

Permalink
chore: bump up oxlint version to v0.2.17 (#5778)
Browse files Browse the repository at this point in the history
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [oxlint](https://oxc-project.github.io) ([source](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.2.14` -> `0.2.17`](https://renovatebot.com/diffs/npm/oxlint/0.2.14/0.2.17) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.2.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.2.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.2.14/0.2.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.2.14/0.2.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>oxc-project/oxc (oxlint)</summary>

### [`v0.2.17`](https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.2.17): oxlint v0.2.17

[Compare Source](https://github.com/oxc-project/oxc/compare/7066d55153ad70f95ae975adc3958c1010f9c5ff...df11d10a2220e9aa7a33d9ab39ed662c2ba6fdb5)

##### What's Changed

-   feat(linter): eslint-plugin-jest/prefer-lowercase-title by [@&#8203;eryue0220](https://github.com/eryue0220) in [https://github.com/oxc-project/oxc/pull/2911](https://github.com/oxc-project/oxc/pull/2911)
-   feat(linter): typescript-eslint/consistent-type-definitions by [@&#8203;todor-a](https://github.com/todor-a) in [https://github.com/oxc-project/oxc/pull/2885](https://github.com/oxc-project/oxc/pull/2885)
-   fix(cli): fix `oxlint --format json` yields 0 files to lint by [@&#8203;Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/2940](https://github.com/oxc-project/oxc/pull/2940)
-   fix(cli): if format is json do not print summary information ([#&#8203;2899](https://github.com/oxc-project/oxc/issues/2899)) by [@&#8203;kalvenschraut](https://github.com/kalvenschraut) in [https://github.com/oxc-project/oxc/pull/2925](https://github.com/oxc-project/oxc/pull/2925)
-   fix(linter): import/no-cycle ignore type-only imports by [@&#8203;JohnDaly](https://github.com/JohnDaly) in [https://github.com/oxc-project/oxc/pull/2924](https://github.com/oxc-project/oxc/pull/2924)
-   refactor(semantic/jsdoc): Rework JSDoc struct for better Span handling by [@&#8203;leaysgur](https://github.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/2917](https://github.com/oxc-project/oxc/pull/2917)

##### New Contributors

-   [@&#8203;bradzacher](https://github.com/bradzacher) made their first contribution in [https://github.com/oxc-project/oxc/pull/2938](https://github.com/oxc-project/oxc/pull/2938)

**Full Changelog**: oxc-project/oxc@oxlint_v0.2.16...oxlint_v0.2.17

### [`v0.2.16`](https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.2.16): oxlint v0.2.16

[Compare Source](https://github.com/oxc-project/oxc/compare/e7307ed23ca9b0707586b6bf4220cafb221ae86e...7066d55153ad70f95ae975adc3958c1010f9c5ff)

#### What's Changed

-   feat(linter): [@&#8203;typescript-eslint/prefer-for-of](https://github.com/typescript-eslint/prefer-for-of) by [@&#8203;charnog](https://github.com/charnog) in [https://github.com/oxc-project/oxc/pull/2789](https://github.com/oxc-project/oxc/pull/2789)
-   feat(linter): Implement jsdoc/check-access by [@&#8203;leaysgur](https://github.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/2642](https://github.com/oxc-project/oxc/pull/2642)
-   feat(linter): Implement jsdoc/empty-tags by [@&#8203;leaysgur](https://github.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/2893](https://github.com/oxc-project/oxc/pull/2893)
-   feat(linter): eslint-plugin-jest/prefer-mock-promise-sorthand by [@&#8203;eryue0220](https://github.com/eryue0220) in [https://github.com/oxc-project/oxc/pull/2864](https://github.com/oxc-project/oxc/pull/2864)
-   feat(linter/import): Add `ignoreTypes` option for the `import/no-cycle` rule by [@&#8203;JohnDaly](https://github.com/JohnDaly) in [https://github.com/oxc-project/oxc/pull/2905](https://github.com/oxc-project/oxc/pull/2905)
-   fix(ast): `FinallyClause` won't get visited as `BlockStatement` anymore. by [@&#8203;rzvxa](https://github.com/rzvxa) in [https://github.com/oxc-project/oxc/pull/2881](https://github.com/oxc-project/oxc/pull/2881)
-   fix(linter): handle self closing script tags in astro partial loader ([#&#8203;2017](https://github.com/oxc-project/oxc/issues/2017)) by [@&#8203;kalvenschraut](https://github.com/kalvenschraut) in [https://github.com/oxc-project/oxc/pull/2907](https://github.com/oxc-project/oxc/pull/2907)
-   fix(linter): svelte partial loader handle generics ([#&#8203;2875](https://github.com/oxc-project/oxc/issues/2875)) by [@&#8203;kalvenschraut](https://github.com/kalvenschraut) in [https://github.com/oxc-project/oxc/pull/2906](https://github.com/oxc-project/oxc/pull/2906)

#### New Contributors

-   [@&#8203;charnog](https://github.com/charnog) made their first contribution in [https://github.com/oxc-project/oxc/pull/2789](https://github.com/oxc-project/oxc/pull/2789)
-   [@&#8203;kalvenschraut](https://github.com/kalvenschraut) made their first contribution in [https://github.com/oxc-project/oxc/pull/2906](https://github.com/oxc-project/oxc/pull/2906)
-   [@&#8203;JohnDaly](https://github.com/JohnDaly) made their first contribution in [https://github.com/oxc-project/oxc/pull/2905](https://github.com/oxc-project/oxc/pull/2905)

**Full Changelog**: oxc-project/oxc@oxlint_v0.2.15...oxlint_v0.2.16

### [`v0.2.15`](https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.2.15): oxlint v0.2.15

[Compare Source](https://github.com/oxc-project/oxc/compare/b1343d7bcbd490105583b561946f057ac91e40cf...e7307ed23ca9b0707586b6bf4220cafb221ae86e)

#### What's Changed

-   feat(linter): default_param_last by [@&#8203;JoSeBu1](https://github.com/JoSeBu1) in [https://github.com/oxc-project/oxc/pull/2756](https://github.com/oxc-project/oxc/pull/2756)
-   feat(linter): eslint-plugin-jest/no-untyped-mock-factory by [@&#8203;eryue0220](https://github.com/eryue0220) in [https://github.com/oxc-project/oxc/pull/2807](https://github.com/oxc-project/oxc/pull/2807)
-   feat(linter): eslint-plugin-jest/prefer-comparison-matcher by [@&#8203;eryue0220](https://github.com/eryue0220) in [https://github.com/oxc-project/oxc/pull/2806](https://github.com/oxc-project/oxc/pull/2806)
-   feat(linter): eslint-plugin-react checked-requires-onchange-or-readonly by [@&#8203;keita-hino](https://github.com/keita-hino) in [https://github.com/oxc-project/oxc/pull/2754](https://github.com/oxc-project/oxc/pull/2754)
-   feat(linter): eslint/no-iterator by [@&#8203;JoSeBu1](https://github.com/JoSeBu1) in [https://github.com/oxc-project/oxc/pull/2758](https://github.com/oxc-project/oxc/pull/2758)
-   feat(linter): fallback to the default tsconfig path by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2842](https://github.com/oxc-project/oxc/pull/2842)
-   feat(linter): no_script_url by [@&#8203;JoSeBu1](https://github.com/JoSeBu1) in [https://github.com/oxc-project/oxc/pull/2761](https://github.com/oxc-project/oxc/pull/2761)
-   feat(linter/import) check deep namespace in namespace rule by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2805](https://github.com/oxc-project/oxc/pull/2805)
-   feat(linter/import) check module import in no_duplicates by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2771](https://github.com/oxc-project/oxc/pull/2771)
-   feat(linter/import) check type import in no_duplicates by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2777](https://github.com/oxc-project/oxc/pull/2777)
-   feat(linter/import) support allow_computed option in namespace by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2840](https://github.com/oxc-project/oxc/pull/2840)
-   feat(linter/import) support check re-export in named by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2769](https://github.com/oxc-project/oxc/pull/2769)
-   feat(linter/import): ignore type-only imports and exports in no_unresolved by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2849](https://github.com/oxc-project/oxc/pull/2849)
-   fix(linter/import): false positive for indirect export in namespace by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2862](https://github.com/oxc-project/oxc/pull/2862)
-   fix(linter/import): ignore export declaration in no-duplicates by [@&#8203;Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/2863](https://github.com/oxc-project/oxc/pull/2863)
-   fix(linter/max-lines): only report codes that exceed the line limit by [@&#8203;mysteryven](https://github.com/mysteryven) in [https://github.com/oxc-project/oxc/pull/2778](https://github.com/oxc-project/oxc/pull/2778)
-   fix(parser): add support for empty module declaration by [@&#8203;rzvxa](https://github.com/rzvxa) in [https://github.com/oxc-project/oxc/pull/2834](https://github.com/oxc-project/oxc/pull/2834)

#### New Contributors

-   [@&#8203;rzvxa](https://github.com/rzvxa) made their first contribution in [https://github.com/oxc-project/oxc/pull/2764](https://github.com/oxc-project/oxc/pull/2764)

**Full Changelog**: oxc-project/oxc@oxlint_v0.2.14...oxlint_v0.2.15

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
  • Loading branch information
renovate[bot] committed Apr 11, 2024
1 parent 7a1eb63 commit 66231e0
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 45 deletions.
10 changes: 10 additions & 0 deletions oxlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"rules": {
"import/no-cycle": [
"error",
{
"ignoreTypes": true
}
]
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"lint:eslint:fix": "yarn lint:eslint --fix",
"lint:prettier": "prettier --ignore-unknown --cache --check .",
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
"lint:ox": "oxlint --import-plugin --deny-warnings -D correctness -D nursery -D prefer-array-some -D no-useless-promise-resolve-reject -D perf -A no-undef -A consistent-type-exports -A default -A named -A ban-ts-comment -A export -A no-unresolved -A no-default-export -A no-duplicates -A no-side-effects-in-initialization -A no-named-as-default -A getter-return",
"lint:ox": "oxlint -c oxlint.json --import-plugin --deny-warnings -D correctness -D nursery -D prefer-array-some -D no-useless-promise-resolve-reject -D perf -A no-undef -A consistent-type-exports -A default -A named -A ban-ts-comment -A export -A no-unresolved -A no-default-export -A no-duplicates -A no-side-effects-in-initialization -A no-named-as-default -A getter-return",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
"test": "vitest --run",
Expand Down Expand Up @@ -97,7 +97,7 @@
"nanoid": "^5.0.7",
"nx": "^18.2.4",
"nyc": "^15.1.0",
"oxlint": "0.2.14",
"oxlint": "0.2.17",
"prettier": "^3.2.5",
"semver": "^7.6.0",
"serve": "^14.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/server/src/fundamentals/config/def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { ApolloDriverConfig } from '@nestjs/apollo';
import SMTPTransport from 'nodemailer/lib/smtp-transport';

import type { LeafPaths } from '../utils/types';
import { EnvConfigType } from './env';
import type { AFFiNEStorageConfig } from './storage';

declare global {
Expand All @@ -13,6 +12,7 @@ declare global {
}
}

export type EnvConfigType = 'string' | 'int' | 'float' | 'boolean';
export type ServerFlavor = 'allinone' | 'graphql' | 'sync';
export type AFFINE_ENV = 'dev' | 'beta' | 'production';
export type NODE_ENV = 'development' | 'test' | 'production';
Expand Down
3 changes: 1 addition & 2 deletions packages/backend/server/src/fundamentals/config/env.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { set } from 'lodash-es';

import type { AFFiNEConfig } from './def';
import type { AFFiNEConfig, EnvConfigType } from './def';

export type EnvConfigType = 'string' | 'int' | 'float' | 'boolean';
/**
* parse number value from environment variables
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/common/infra/src/page/page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Doc as BlockSuiteDoc } from '@blocksuite/store';
import type { ServiceProvider } from '@toeverything/infra';

import type { ServiceProvider } from '../di/core';
import type { PageMode, PageRecord } from './record';

export class Doc {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/infra/src/workspace/list/information.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DebugLogger } from '@affine/debug';
import { Slot } from '@blocksuite/global/utils';

import type { Memento } from '../..';
import type { Memento } from '../../storage/memento';
import type { WorkspaceMetadata } from '../metadata';
import type { Workspace } from '../workspace';
import type { WorkspaceListProvider } from '.';
Expand Down
76 changes: 38 additions & 38 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ __metadata:
nanoid: "npm:^5.0.7"
nx: "npm:^18.2.4"
nyc: "npm:^15.1.0"
oxlint: "npm:0.2.14"
oxlint: "npm:0.2.17"
prettier: "npm:^3.2.5"
semver: "npm:^7.6.0"
serve: "npm:^14.2.1"
Expand Down Expand Up @@ -9619,58 +9619,58 @@ __metadata:
languageName: node
linkType: hard

"@oxlint/darwin-arm64@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/darwin-arm64@npm:0.2.14"
"@oxlint/darwin-arm64@npm:0.2.17":
version: 0.2.17
resolution: "@oxlint/darwin-arm64@npm:0.2.17"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@oxlint/darwin-x64@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/darwin-x64@npm:0.2.14"
"@oxlint/darwin-x64@npm:0.2.17":
version: 0.2.17
resolution: "@oxlint/darwin-x64@npm:0.2.17"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@oxlint/linux-arm64-gnu@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/linux-arm64-gnu@npm:0.2.14"
"@oxlint/linux-arm64-gnu@npm:0.2.17":
version: 0.2.17
resolution: "@oxlint/linux-arm64-gnu@npm:0.2.17"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@oxlint/linux-arm64-musl@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/linux-arm64-musl@npm:0.2.14"
"@oxlint/linux-arm64-musl@npm:0.2.17":
version: 0.2.17
resolution: "@oxlint/linux-arm64-musl@npm:0.2.17"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@oxlint/linux-x64-gnu@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/linux-x64-gnu@npm:0.2.14"
"@oxlint/linux-x64-gnu@npm:0.2.17":
version: 0.2.17
resolution: "@oxlint/linux-x64-gnu@npm:0.2.17"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@oxlint/linux-x64-musl@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/linux-x64-musl@npm:0.2.14"
"@oxlint/linux-x64-musl@npm:0.2.17":
version: 0.2.17
resolution: "@oxlint/linux-x64-musl@npm:0.2.17"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@oxlint/win32-arm64@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/win32-arm64@npm:0.2.14"
"@oxlint/win32-arm64@npm:0.2.17":
version: 0.2.17
resolution: "@oxlint/win32-arm64@npm:0.2.17"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@oxlint/win32-x64@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/win32-x64@npm:0.2.14"
"@oxlint/win32-x64@npm:0.2.17":
version: 0.2.17
resolution: "@oxlint/win32-x64@npm:0.2.17"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -29678,18 +29678,18 @@ __metadata:
languageName: node
linkType: hard

"oxlint@npm:0.2.14":
version: 0.2.14
resolution: "oxlint@npm:0.2.14"
dependencies:
"@oxlint/darwin-arm64": "npm:0.2.14"
"@oxlint/darwin-x64": "npm:0.2.14"
"@oxlint/linux-arm64-gnu": "npm:0.2.14"
"@oxlint/linux-arm64-musl": "npm:0.2.14"
"@oxlint/linux-x64-gnu": "npm:0.2.14"
"@oxlint/linux-x64-musl": "npm:0.2.14"
"@oxlint/win32-arm64": "npm:0.2.14"
"@oxlint/win32-x64": "npm:0.2.14"
"oxlint@npm:0.2.17":
version: 0.2.17
resolution: "oxlint@npm:0.2.17"
dependencies:
"@oxlint/darwin-arm64": "npm:0.2.17"
"@oxlint/darwin-x64": "npm:0.2.17"
"@oxlint/linux-arm64-gnu": "npm:0.2.17"
"@oxlint/linux-arm64-musl": "npm:0.2.17"
"@oxlint/linux-x64-gnu": "npm:0.2.17"
"@oxlint/linux-x64-musl": "npm:0.2.17"
"@oxlint/win32-arm64": "npm:0.2.17"
"@oxlint/win32-x64": "npm:0.2.17"
dependenciesMeta:
"@oxlint/darwin-arm64":
optional: true
Expand All @@ -29709,7 +29709,7 @@ __metadata:
optional: true
bin:
oxlint: bin/oxlint
checksum: 10/18c46a5adfa7477d6aa0be095fd913efd5b6701873f98d31d95f28817b7bb6590e1f1bc1b774dd4aa2166290c51482921a7ada7d86d0aaf16d9ab8d804dde8cf
checksum: 10/869e5a04d1059a88cef65c7533d953000fd183f4f186ff2ebf156390142100915cdebab343cb407451f8420972a6924e39359fbc403851e6cbc8e3cfbc1141e4
languageName: node
linkType: hard

Expand Down

0 comments on commit 66231e0

Please sign in to comment.