mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 08:38:34 +00:00
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [oxlint](https://oxc.rs) ([source](https://redirect.github.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.15.0` -> `0.15.4`](https://renovatebot.com/diffs/npm/oxlint/0.15.0/0.15.4) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>oxc-project/oxc (oxlint)</summary> ### [`v0.15.4`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.4): oxlint v0.15.4 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.3...oxlint_v0.15.4) #### \[0.15.4] - 2024-12-30 - [`ed75e42`](https://redirect.github.com/oxc-project/oxc/commit/ed75e42) semantic: \[**BREAKING**] Make SymbolTable fields `pub(crate)` instead of `pub` ([#​7999](https://redirect.github.com/oxc-project/oxc/issues/7999)) (Boshen) ##### Features - [`47cea9a`](https://redirect.github.com/oxc-project/oxc/commit/47cea9a) linter: Implement `eslint/no-extra-label` ([#​8181](https://redirect.github.com/oxc-project/oxc/issues/8181)) (Anson Heung) - [`ef76e28`](https://redirect.github.com/oxc-project/oxc/commit/ef76e28) linter: Implement `eslint/no-multi-assign` ([#​8158](https://redirect.github.com/oxc-project/oxc/issues/8158)) (Anson Heung) - [`384858b`](https://redirect.github.com/oxc-project/oxc/commit/384858b) linter: Implement `jsx-a11y/no-noninteractive-tabindex` ([#​8167](https://redirect.github.com/oxc-project/oxc/issues/8167)) (Tyler Earls) - [`afc21a6`](https://redirect.github.com/oxc-project/oxc/commit/afc21a6) linter: Implement `eslint/vars-on-top` ([#​8157](https://redirect.github.com/oxc-project/oxc/issues/8157)) (Yuichiro Yamashita) - [`65796c4`](https://redirect.github.com/oxc-project/oxc/commit/65796c4) linter: Implement `eslint/prefer-rest-params` ([#​8155](https://redirect.github.com/oxc-project/oxc/issues/8155)) (Yuichiro Yamashita) - [`5234d96`](https://redirect.github.com/oxc-project/oxc/commit/5234d96) linter: Implement `eslint/no-nested-ternary` ([#​8150](https://redirect.github.com/oxc-project/oxc/issues/8150)) (Yuichiro Yamashita) - [`1c5db72`](https://redirect.github.com/oxc-project/oxc/commit/1c5db72) linter: Implement eslint/no-labels ([#​8131](https://redirect.github.com/oxc-project/oxc/issues/8131)) (Anson Heung) - [`0b04288`](https://redirect.github.com/oxc-project/oxc/commit/0b04288) linter: Move `import/named` to nursery ([#​8068](https://redirect.github.com/oxc-project/oxc/issues/8068)) (Boshen) ##### Bug Fixes - [`0794bee`](https://redirect.github.com/oxc-project/oxc/commit/0794bee) editor/vscode: Set minimum supported ver. to `^1.93.0` ([#​8182](https://redirect.github.com/oxc-project/oxc/issues/8182)) (Pavel Smirnov) - [`f3050d4`](https://redirect.github.com/oxc-project/oxc/commit/f3050d4) linter: Exclude svelte files from `no_unused_vars` rule ([#​8170](https://redirect.github.com/oxc-project/oxc/issues/8170)) (Yuichiro Yamashita) - [`faf7464`](https://redirect.github.com/oxc-project/oxc/commit/faf7464) linter: Disable rule `react/rules-of-hook` by file extension ([#​8168](https://redirect.github.com/oxc-project/oxc/issues/8168)) (Alexander S.) - [`1171e00`](https://redirect.github.com/oxc-project/oxc/commit/1171e00) linter: Disable `react/rules-of-hooks` for vue and svelte files ([#​8165](https://redirect.github.com/oxc-project/oxc/issues/8165)) (Alexander S.) - [`1b9a5ba`](https://redirect.github.com/oxc-project/oxc/commit/1b9a5ba) linter: False positiver in private member expr in oxc/const-comparison ([#​8164](https://redirect.github.com/oxc-project/oxc/issues/8164)) (camc314) - [`6bd9ddb`](https://redirect.github.com/oxc-project/oxc/commit/6bd9ddb) linter: False positive in `typescript/ban-tslint-comment` ([#​8094](https://redirect.github.com/oxc-project/oxc/issues/8094)) (dalaoshu) - [`10a1fd5`](https://redirect.github.com/oxc-project/oxc/commit/10a1fd5) linter: Rule: `no-restricted-imports` support option `patterns` with `group` key ([#​8050](https://redirect.github.com/oxc-project/oxc/issues/8050)) (Alexander S.) - [`b3f38ae`](https://redirect.github.com/oxc-project/oxc/commit/b3f38ae) linter: Rule `no-restricted-imports`: support option `allowImportNames` ([#​8002](https://redirect.github.com/oxc-project/oxc/issues/8002)) (Alexander S.) - [`340cc90`](https://redirect.github.com/oxc-project/oxc/commit/340cc90) linter: Rule `no-restricted-imports`: fix option "importNames" ([#​7943](https://redirect.github.com/oxc-project/oxc/issues/7943)) (Alexander S.) - [`ec2128e`](https://redirect.github.com/oxc-project/oxc/commit/ec2128e) linter: Fix line calculation for `eslint/max-lines` in diagnostics ([#​7962](https://redirect.github.com/oxc-project/oxc/issues/7962)) (Dmitry Zakharov) - [`79af100`](https://redirect.github.com/oxc-project/oxc/commit/79af100) semantic: Reference flags not correctly resolved when after an export stmt ([#​8134](https://redirect.github.com/oxc-project/oxc/issues/8134)) (camc314) ##### Performance - [`d8d2ec6`](https://redirect.github.com/oxc-project/oxc/commit/d8d2ec6) linter: Run rules which require typescript syntax only when source type is actually typescript ([#​8166](https://redirect.github.com/oxc-project/oxc/issues/8166)) (Alexander S.) - [`2736657`](https://redirect.github.com/oxc-project/oxc/commit/2736657) semantic: Allocate `UnresolvedReferences` in allocator ([#​8046](https://redirect.github.com/oxc-project/oxc/issues/8046)) (Boshen) ##### Refactor - [`de8246b`](https://redirect.github.com/oxc-project/oxc/commit/de8246b) language_server: Move structs into own file ([#​8026](https://redirect.github.com/oxc-project/oxc/issues/8026)) (Alexander S.) - [`774babb`](https://redirect.github.com/oxc-project/oxc/commit/774babb) linter: Read `exported_bindings_from_star_export` lazily ([#​8062](https://redirect.github.com/oxc-project/oxc/issues/8062)) (Boshen) - [`547c102`](https://redirect.github.com/oxc-project/oxc/commit/547c102) linter: Use `RwLock<FxHashMap>` instead of `FxDashMap` for module record data ([#​8061](https://redirect.github.com/oxc-project/oxc/issues/8061)) (Boshen) - [`952d7e4`](https://redirect.github.com/oxc-project/oxc/commit/952d7e4) linter: Rename `flat.rs` to `config.rs` ([#​8033](https://redirect.github.com/oxc-project/oxc/issues/8033)) (camc314) - [`50848ed`](https://redirect.github.com/oxc-project/oxc/commit/50848ed) linter: Simplify `ConfigStore` to prep for nested configs ([#​8032](https://redirect.github.com/oxc-project/oxc/issues/8032)) (camc314) - [`b2a4a78`](https://redirect.github.com/oxc-project/oxc/commit/b2a4a78) linter: Remove unused `with_rules` and `set_rule` methods ([#​8029](https://redirect.github.com/oxc-project/oxc/issues/8029)) (camc314) - [`6da0b21`](https://redirect.github.com/oxc-project/oxc/commit/6da0b21) oxlint: Remove unused `git.rs` ([#​7990](https://redirect.github.com/oxc-project/oxc/issues/7990)) (Boshen) - [`58e7777`](https://redirect.github.com/oxc-project/oxc/commit/58e7777) oxlint: Remove extra if check in `Walkdir` ([#​7989](https://redirect.github.com/oxc-project/oxc/issues/7989)) (Boshen) - [`02f968d`](https://redirect.github.com/oxc-project/oxc/commit/02f968d) semantic: Change `Bindings` to a plain `FxHashMap` ([#​8019](https://redirect.github.com/oxc-project/oxc/issues/8019)) (Boshen) ### [`v0.15.3`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.3): oxlint v0.15.3 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.2...oxlint_v0.15.3) #### \[0.15.3] - 2024-12-17 ##### Features - [`25ddb35`](https://redirect.github.com/oxc-project/oxc/commit/25ddb35) linter: Add the import/no_named_default rule ([#​7902](https://redirect.github.com/oxc-project/oxc/issues/7902)) (Guillaume Piedigrossi) - [`ee26b44`](https://redirect.github.com/oxc-project/oxc/commit/ee26b44) linter: Enhance `get_element_type` to resolve more element types ([#​7885](https://redirect.github.com/oxc-project/oxc/issues/7885)) (dalaoshu) ##### Bug Fixes - [`6f41d92`](https://redirect.github.com/oxc-project/oxc/commit/6f41d92) linter: False positive in `unicorn/no-useless-spread` ([#​7940](https://redirect.github.com/oxc-project/oxc/issues/7940)) (dalaoshu) - [`0867b40`](https://redirect.github.com/oxc-project/oxc/commit/0867b40) linter: Fix configuration parser for `no-restricted-imports` ([#​7921](https://redirect.github.com/oxc-project/oxc/issues/7921)) (Alexander S.) - [`9c9b73d`](https://redirect.github.com/oxc-project/oxc/commit/9c9b73d) linter: Fix incorrect fixer for `prefer-regexp-test` ([#​7898](https://redirect.github.com/oxc-project/oxc/issues/7898)) (Cameron) - [`32935e6`](https://redirect.github.com/oxc-project/oxc/commit/32935e6) linter: False positive in `jsx-a11y/label-has-associated-control` ([#​7881](https://redirect.github.com/oxc-project/oxc/issues/7881)) (dalaoshu) - [`14c51ff`](https://redirect.github.com/oxc-project/oxc/commit/14c51ff) semantic: Remove inherting `ScopeFlags::Modifier` from parent scope ([#​7932](https://redirect.github.com/oxc-project/oxc/issues/7932)) (Dunqing) ##### Refactor - [`3858221`](https://redirect.github.com/oxc-project/oxc/commit/3858221) global: Sort imports ([#​7883](https://redirect.github.com/oxc-project/oxc/issues/7883)) (overlookmotel) - [`b99ee37`](https://redirect.github.com/oxc-project/oxc/commit/b99ee37) linter: Move rule "no-restricted-imports" to nursery ([#​7897](https://redirect.github.com/oxc-project/oxc/issues/7897)) (Alexander S.) - [`ff2a68f`](https://redirect.github.com/oxc-project/oxc/commit/ff2a68f) linter/yoda: Simplify code ([#​7941](https://redirect.github.com/oxc-project/oxc/issues/7941)) (overlookmotel) ##### Styling - [`7fb9d47`](https://redirect.github.com/oxc-project/oxc/commit/7fb9d47) rust: `cargo +nightly fmt` ([#​7877](https://redirect.github.com/oxc-project/oxc/issues/7877)) (Boshen) ### [`v0.15.2`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.2): oxlint v0.15.2 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.1...oxlint_v0.15.2) #### \[0.15.2] - 2024-12-14 Fix the previous broken release caused by [https://github.com/softprops/action-gh-release/issues/555](https://redirect.github.com/softprops/action-gh-release/issues/555) ### [`v0.15.1`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.1): oxlint v0.15.1 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.0...oxlint_v0.15.1) #### \[0.15.1] - 2024-12-13 ##### Features - [`38b1c2e`](https://redirect.github.com/oxc-project/oxc/commit/38b1c2e) editor: Create a command to apply all auto-fixes for the current active text editor ([#​7672](https://redirect.github.com/oxc-project/oxc/issues/7672)) (Nicholas Rayburn) ##### Bug Fixes - [`2b187e5`](https://redirect.github.com/oxc-project/oxc/commit/2b187e5) linter: Fix configuration casing for `typescript/no_this_alias` ([#​7836](https://redirect.github.com/oxc-project/oxc/issues/7836)) (Boshen) - [`06e6d38`](https://redirect.github.com/oxc-project/oxc/commit/06e6d38) linter: Fix unicorn/prefer-query-selector to use the correct replacement for getElementsByClassName ([#​7796](https://redirect.github.com/oxc-project/oxc/issues/7796)) (Nicholas Rayburn) - [`7a83230`](https://redirect.github.com/oxc-project/oxc/commit/7a83230) semantic: Missing reference when `export default` references a type alias binding ([#​7813](https://redirect.github.com/oxc-project/oxc/issues/7813)) (Dunqing) </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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
239 lines
6.9 KiB
JSON
239 lines
6.9 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["import", "react", "typescript", "unicorn", "promise"],
|
|
"categories": {
|
|
"correctness": "error",
|
|
"perf": "error"
|
|
},
|
|
"ignorePatterns": [
|
|
"**/node_modules",
|
|
".yarn",
|
|
".github",
|
|
".vscode",
|
|
".yarnrc.yml",
|
|
".docker",
|
|
"**/.storybook",
|
|
".coverage",
|
|
".nx/**",
|
|
"target",
|
|
"test-results",
|
|
"**/dist",
|
|
"**/lib",
|
|
"**/storybook-static",
|
|
"**/web-static",
|
|
"**/public",
|
|
"**/e2e-dist-*",
|
|
"**/static",
|
|
"**/*.gen.ts",
|
|
"**/*.gql",
|
|
"**/*.d.ts",
|
|
"tools/cli/src/webpack/error-handler.js",
|
|
"packages/backend/native/index.d.ts",
|
|
"packages/frontend/native/index.d.ts",
|
|
"packages/frontend/native/index.js",
|
|
"packages/frontend/graphql/src/graphql/index.ts",
|
|
"packages/frontend/graphql/src/schema.ts",
|
|
"packages/frontend/apps/android/App/app/build/**",
|
|
"blocksuite/tests-legacy/snapshots"
|
|
],
|
|
"rules": {
|
|
"import/named": "allow",
|
|
"no-await-in-loop": "allow",
|
|
"promise/no-callback-in-promise": "allow",
|
|
"typescript/ban-types": "allow",
|
|
"array-callback-return": "error",
|
|
"constructor-super": "error",
|
|
"eqeqeq": ["error", "smart"],
|
|
"getter-return": "error",
|
|
"for-direction": "error",
|
|
"require-yield": "error",
|
|
"use-isnan": "error",
|
|
"valid-typeof": "error",
|
|
"no-empty-character-class": "error",
|
|
"no-self-compare": "error",
|
|
"no-empty": [
|
|
"error",
|
|
{
|
|
"allowEmptyCatch": true
|
|
}
|
|
],
|
|
"no-constant-binary-expression": "error",
|
|
"no-constructor-return": "error",
|
|
"no-func-assign": "error",
|
|
"no-global-assign": "error",
|
|
"no-unused-vars": "error",
|
|
"no-ex-assign": "error",
|
|
"no-loss-of-precision": "error",
|
|
"no-fallthrough": "error",
|
|
"no-nonoctal-decimal-escape": "error",
|
|
"no-irregular-whitespace": "error",
|
|
"no-control-regex": "error",
|
|
"no-with": "error",
|
|
"no-debugger": "error",
|
|
"no-const-assign": "error",
|
|
"no-setter-return": "error",
|
|
"no-obj-calls": "error",
|
|
"no-unsafe-negation": "error",
|
|
"no-dupe-class-members": "error",
|
|
"no-dupe-keys": "error",
|
|
"no-this-before-super": "error",
|
|
"no-useless-catch": "error",
|
|
"no-async-promise-executor": "error",
|
|
"no-unreachable": "error",
|
|
"no-duplicate-case": "error",
|
|
"no-empty-pattern": "error",
|
|
"no-unused-labels": "error",
|
|
"no-sparse-arrays": "error",
|
|
"no-delete-var": "error",
|
|
"no-compare-neg-zero": "error",
|
|
"no-redeclare": "error",
|
|
"no-case-declarations": "error",
|
|
"no-class-assign": "error",
|
|
"no-var": "error",
|
|
"no-self-assign": "error",
|
|
"no-inner-declarations": "error",
|
|
"no-dupe-else-if": "error",
|
|
"no-invalid-regexp": "error",
|
|
"no-unsafe-finally": "error",
|
|
"no-prototype-builtins": "error",
|
|
"no-array-constructor": "error",
|
|
"no-shadow-restricted-names": "error",
|
|
"no-constant-condition": "error",
|
|
"no-useless-escape": "error",
|
|
"no-unsafe-optional-chaining": "error",
|
|
"no-extra-boolean-cast": "error",
|
|
"no-regex-spaces": "error",
|
|
"react/jsx-no-useless-fragment": "error",
|
|
"react/jsx-no-undef": "error",
|
|
"react/no-direct-mutation-state": "error",
|
|
"react/no-string-refs": "error",
|
|
"react/no-unknown-property": "error",
|
|
"react/no-danger-with-children": "error",
|
|
"react/no-unescaped-entities": "error",
|
|
"react/require-render-return": "error",
|
|
"react/jsx-no-duplicate-props": "error",
|
|
"react/jsx-key": "error",
|
|
"react/no-is-mounted": "error",
|
|
"react/no-find-dom-node": "error",
|
|
"react/no-children-prop": "error",
|
|
"react/no-render-return-value": "error",
|
|
"react/jsx-no-target-blank": "error",
|
|
"react/jsx-no-comment-textnodes": "error",
|
|
"typescript/consistent-type-imports": "error",
|
|
"typescript/no-non-null-assertion": "error",
|
|
"typescript/triple-slash-reference": "error",
|
|
"typescript/no-non-null-asserted-optional-chain": "error",
|
|
"typescript/no-duplicate-enum-values": "error",
|
|
"typescript/no-extra-non-null-assertion": "error",
|
|
"typescript/no-misused-new": "error",
|
|
"typescript/prefer-for-of": "error",
|
|
"typescript/no-unsafe-declaration-merging": "error",
|
|
"typescript/no-unnecessary-type-constraint": "error",
|
|
"typescript/no-this-alias": [
|
|
"error",
|
|
{
|
|
"allowDestructuring": true
|
|
}
|
|
],
|
|
"typescript/prefer-as-const": "error",
|
|
"typescript/no-var-requires": "error",
|
|
"typescript/no-namespace": [
|
|
"error",
|
|
{
|
|
"allowDeclarations": true
|
|
}
|
|
],
|
|
"typescript/ban-ts-comment": [
|
|
"error",
|
|
{
|
|
"ts-expect-error": "allow-with-description",
|
|
"ts-ignore": true,
|
|
"ts-nocheck": true,
|
|
"ts-check": false
|
|
}
|
|
],
|
|
"unicorn/prefer-array-some": "error",
|
|
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
"unicorn/no-unnecessary-await": "error",
|
|
"unicorn/no-useless-fallback-in-spread": "error",
|
|
"unicorn/filename-case": [
|
|
"error",
|
|
{
|
|
"case": "kebabCase"
|
|
}
|
|
],
|
|
"unicorn/prefer-dom-node-dataset": "error",
|
|
"unicorn/prefer-dom-node-append": "error",
|
|
"unicorn/prefer-dom-node-remove": "error",
|
|
"unicorn/prefer-date-now": "error",
|
|
"unicorn/prefer-blob-reading-methods": "error",
|
|
"unicorn/no-typeof-undefined": "error",
|
|
"unicorn/no-new-array": "error",
|
|
"unicorn/new-for-builtins": "error",
|
|
"unicorn/prefer-node-protocol": "error",
|
|
"import/no-cycle": [
|
|
"error",
|
|
{
|
|
"ignoreTypes": true
|
|
}
|
|
],
|
|
"import/sort-imports": "error",
|
|
"import/namespace": "off",
|
|
"import/no-webpack-loader-syntax": "error",
|
|
"import/no-duplicates": "error",
|
|
"import/no-import-assign": "error",
|
|
"import/no-self-import": "error"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.stories.tsx"],
|
|
"rules": {
|
|
"react/no-array-index-key": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["packages/backend/**/*.ts"],
|
|
"rules": {
|
|
"typescript/consistent-type-imports": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"*.{spec,test,e2e,stories}.{ts,tsx}",
|
|
"tests/**/*.ts",
|
|
"packages/backend/server/tests/**/*.ts",
|
|
"tools/**.*"
|
|
],
|
|
"rules": {
|
|
"typescript/no-non-null-assertion": "off",
|
|
"typescript/ban-ts-comment": [
|
|
"error",
|
|
{
|
|
"ts-expect-error": false,
|
|
"ts-ignore": true,
|
|
"ts-nocheck": true,
|
|
"ts-check": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["blocksuite/**/*.ts"],
|
|
"rules": {
|
|
"eslint/eqeqeq": "off",
|
|
"typescript/no-non-null-assertion": "off",
|
|
"unicorn/prefer-array-some": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["blocksuite/tests-legacy/**/*.ts"],
|
|
"rules": {
|
|
"typescript/ban-ts-comment": "off",
|
|
"unicorn/prefer-dom-node-dataset": "off",
|
|
"typescript/consistent-type-imports": "off",
|
|
"no-cycle": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|