Skip to content

fix: incorrect top level types field for cjs#280

Merged
JounQin merged 4 commits intomasterfrom
docs/order
Apr 6, 2025
Merged

fix: incorrect top level types field for cjs#280
JounQin merged 4 commits intomasterfrom
docs/order

Conversation

@JounQin
Copy link
Copy Markdown
Member

@JounQin JounQin commented Apr 6, 2025

close #279

Summary by CodeRabbit

  • Bug Fixes

    • Corrected module type definition configuration for enhanced compatibility.
  • Documentation

    • Standardized external link formatting for consistency.
    • Updated import sorting option descriptions to reflect new naming conventions.
  • Chores

    • Improved CI workflow clarity by labeling a publishing step.
    • Revised package configuration to update type declaration paths.
    • Updated various dependencies to their latest versions for improved stability.
    • Added a patch for the "eslint-plugin-import-x" dependency.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 6, 2025

🦋 Changeset detected

Latest commit: 81c487d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-import-x Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 6, 2025

Walkthrough

This pull request adds a patch entry for the eslint-plugin-import-x to correct the top-level types field for CommonJS modules, updates the GitHub Actions workflow by naming a publish step, standardizes link capitalizations in the README, revises documentation in the rules file by renaming the option from sortTypesAmongThemselves to sortTypesGroup (with updated reference indices), and adjusts the package’s type definition paths in package.json.

Changes

File(s) Change Summary
.changeset/serious-frogs-cry.md, package.json Added a patch for eslint-plugin-import-x and updated type declaration paths (types field, files list, and exports) to correct module configuration.
.github/workflows/pkg-pr-new.yml, README.md, docs/rules/order.md Updated the CI workflow with a named "Publish" step; standardized link capitalizations in the README; and renamed documentation options (from sortTypesAmongThemselves to sortTypesGroup with adjusted index references).

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant GH as GitHub
    participant Runner as CI Runner

    Dev->>GH: Push commit with changes
    GH->>Runner: Trigger workflow (.github/workflows/pkg-pr-new.yml)
    Runner->>Runner: Execute steps
    Runner->>Runner: Run "Publish" step: yarn dlx pkg-pr-new publish --compact
    Runner-->>GH: Report workflow completion
Loading

Assessment against linked issues

Objective Addressed Explanation
Remove invalid property sortTypesAmongThemselves and use sortTypesGroup instead (#279)

Possibly related PRs

  • chore(deps): update all dependencies #270: The changes in the main PR regarding the eslint-plugin-import-x patch are related to the updates in the retrieved PR that involve ESLint configuration, as both address aspects of ESLint's functionality and configuration.
  • chore: bump unrs-resolver to v1.3.3 #267: The changes in the main PR, which include a patch for the eslint-plugin-import-x, are directly related to the retrieved PR that also addresses a patch for the same package.

Poem

I'm a rabbit with a bounce in my step,
Celebrating code changes with each little pep.
Types are fixed and workflows now gleam,
Links shine bright—oh, what a team!
Hopping through docs in a joyful spree,
This patch brings harmony to our repository.
🐰✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bb16451 and 81c487d.

📒 Files selected for processing (1)
  • .changeset/brave-flies-explain.md (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .changeset/brave-flies-explain.md
⏰ Context from checks skipped due to timeout of 90000ms (20)
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on macos-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on macos-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on macos-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on macos-latest

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented Apr 6, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 6, 2025

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@1stg/config@1.0.11.0.2 None 0 6.3 kB jounqin
npm/@1stg/lint-staged@4.0.64.0.7 None 0 37 kB jounqin
npm/@1stg/prettier-config@4.0.54.0.7 None 0 31.1 kB jounqin
npm/@1stg/remark-preset@3.0.13.0.2 None 0 12.1 kB jounqin
npm/@1stg/simple-git-hooks@1.0.11.0.2 None 0 7.03 kB jounqin
npm/@1stg/tsconfig@3.0.13.0.2 None 0 17.3 kB jounqin
npm/@babel/helper-compilation-targets@7.26.57.27.0 None 0 0 B
npm/@babel/helpers@7.26.107.27.0 None +1 0 B
npm/@babel/plugin-transform-block-scoping@7.25.97.27.0 None 0 88.2 kB existentialism, hzoo, jlhwung, ...1 more
npm/@babel/plugin-transform-regenerator@7.25.97.27.0 None 0 6.73 kB nicolo-ribaudo
npm/@babel/plugin-transform-typeof-symbol@7.26.77.27.0 None 0 10.5 kB nicolo-ribaudo
npm/@babel/runtime@7.24.17.27.0 None 0 0 B
npm/@emnapi/core@1.3.11.4.0 None 0 0 B
npm/@emnapi/runtime@1.3.11.4.0 None 0 423 kB toyobayashi
npm/@esbuild/aix-ppc64@0.25.10.25.2 None 0 11.3 MB evanw
npm/@esbuild/android-arm@0.25.10.25.2 None 0 12.2 MB esbuild, evanw
npm/@esbuild/android-arm64@0.25.10.25.2 None 0 10.7 MB evanw
npm/@esbuild/android-x64@0.25.10.25.2 None 0 12.2 MB esbuild, evanw
npm/@esbuild/darwin-arm64@0.25.10.25.2 None 0 9.82 MB esbuild, evanw
npm/@esbuild/darwin-x64@0.25.10.25.2 None 0 10.5 MB esbuild, evanw
npm/@esbuild/freebsd-arm64@0.25.10.25.2 None 0 9.5 MB esbuild, evanw
npm/@esbuild/freebsd-x64@0.25.10.25.2 None 0 10.2 MB esbuild, evanw
npm/@esbuild/linux-arm@0.25.10.25.2 None 0 9.7 MB esbuild, evanw
npm/@esbuild/linux-arm64@0.25.10.25.2 None 0 9.57 MB esbuild, evanw
npm/@esbuild/linux-ia32@0.25.10.25.2 None 0 9.66 MB evanw
npm/@esbuild/linux-loong64@0.25.10.25.2 None 0 9.9 MB esbuild, evanw
npm/@esbuild/linux-mips64el@0.25.10.25.2 None 0 11.1 MB esbuild, evanw
npm/@esbuild/linux-ppc64@0.25.10.25.2 None 0 9.96 MB esbuild, evanw
npm/@esbuild/linux-riscv64@0.25.10.25.2 None 0 9.57 MB evanw
npm/@esbuild/linux-s390x@0.25.10.25.2 None 0 10.7 MB esbuild, evanw
npm/@esbuild/linux-x64@0.25.10.25.2 None 0 10.3 MB evanw
npm/@esbuild/netbsd-arm64@0.25.10.25.2 None 0 9.5 MB esbuild, evanw
npm/@esbuild/netbsd-x64@0.25.10.25.2 None 0 10.2 MB esbuild, evanw
npm/@esbuild/openbsd-arm64@0.25.10.25.2 None 0 9.57 MB evanw
npm/@esbuild/openbsd-x64@0.25.10.25.2 None 0 10.2 MB esbuild, evanw
npm/@esbuild/sunos-x64@0.25.10.25.2 None 0 10.2 MB esbuild, evanw
npm/@esbuild/win32-arm64@0.25.10.25.2 None 0 9.64 MB evanw
npm/@esbuild/win32-ia32@0.25.10.25.2 None 0 9.92 MB esbuild, evanw
npm/@esbuild/win32-x64@0.25.10.25.2 None 0 10.5 MB esbuild, evanw
npm/@eslint/config-helpers@0.2.00.1.0 None 0 53.9 kB eslintbot
npm/@eslint/eslintrc@3.3.13.3.0 None +1 770 kB eslintbot
npm/@eslint/js@9.23.09.22.0 None 0 14.9 kB eslintbot
npm/@eslint/js@9.23.09.24.0 None 0 0 B
npm/@jridgewell/gen-mapping@0.3.50.3.8 None 0 81.6 kB jridgewell
npm/@napi-rs/wasm-runtime@0.2.70.2.8 None 0 0 B
npm/@node-rs/xxhash-android-arm-eabi@1.7.31.7.6 None 0 418 kB broooooklyn
npm/@node-rs/xxhash-android-arm64@1.7.31.7.6 None 0 534 kB broooooklyn
npm/@node-rs/xxhash-darwin-arm64@1.7.31.7.6 None 0 505 kB broooooklyn
npm/@node-rs/xxhash-darwin-x64@1.7.31.7.6 None 0 518 kB broooooklyn
npm/@node-rs/xxhash-freebsd-x64@1.7.31.7.6 None 0 555 kB broooooklyn
npm/@node-rs/xxhash-linux-arm-gnueabihf@1.7.31.7.6 None 0 543 kB broooooklyn
npm/@node-rs/xxhash-linux-arm64-gnu@1.7.31.7.6 None 0 521 kB broooooklyn
npm/@node-rs/xxhash-linux-arm64-musl@1.7.31.7.6 None 0 527 kB broooooklyn
npm/@node-rs/xxhash-linux-x64-gnu@1.7.31.7.6 None 0 571 kB broooooklyn
npm/@node-rs/xxhash-linux-x64-musl@1.7.31.7.6 None 0 580 kB broooooklyn
npm/@node-rs/xxhash-wasm32-wasi@1.7.31.7.6 None 0 171 kB broooooklyn
npm/@node-rs/xxhash-win32-arm64-msvc@1.7.31.7.6 None 0 376 kB broooooklyn
npm/@node-rs/xxhash-win32-ia32-msvc@1.7.31.7.6 None 0 362 kB broooooklyn
npm/@node-rs/xxhash-win32-x64-msvc@1.7.31.7.6 None 0 425 kB broooooklyn
npm/@node-rs/xxhash@1.7.31.7.6 None 0 22.3 kB broooooklyn
npm/@prettier/plugin-pug@3.2.13.3.0 None 0 361 kB shinigami92
npm/@rollup/rollup-android-arm-eabi@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-android-arm64@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-darwin-arm64@4.38.04.39.0 None 0 2.34 MB lukastaegert
npm/@rollup/rollup-darwin-x64@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-freebsd-arm64@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-freebsd-x64@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-arm-gnueabihf@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-arm-musleabihf@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-arm64-gnu@4.38.04.39.0 None 0 2.29 MB lukastaegert
npm/@rollup/rollup-linux-arm64-musl@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-loongarch64-gnu@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-powerpc64le-gnu@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-riscv64-gnu@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-riscv64-musl@4.38.04.39.0 None 0 2.35 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-s390x-gnu@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-x64-gnu@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-linux-x64-musl@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-win32-arm64-msvc@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-win32-ia32-msvc@4.38.04.39.0 None 0 0 B
npm/@rollup/rollup-win32-x64-msvc@4.38.04.39.0 None 0 0 B
npm/@types/estree@1.0.6 None 0 25.8 kB types
npm/@types/ms@0.7.342.1.0 None 0 5.1 kB types
npm/@types/node@22.13.1422.14.0 None 0 2.33 MB types
npm/@typescript-eslint/scope-manager@8.28.08.29.0 None 0 459 kB jameshenry
npm/@typescript-eslint/types@8.28.08.29.0 None 0 171 kB jameshenry
npm/@typescript-eslint/typescript-estree@8.28.08.29.0 None 0 412 kB jameshenry
npm/@typescript-eslint/utils@8.28.08.29.0 None 0 267 kB jameshenry
npm/@typescript-eslint/visitor-keys@8.28.08.29.0 None 0 14.2 kB jameshenry
npm/ajv@6.12.6 eval +1 942 kB esp
npm/ansi-regex@6.0.16.1.0 None 0 5.41 kB sindresorhus
npm/babel-plugin-polyfill-corejs2@0.4.100.4.13 None 0 81.5 kB nicolo-ribaudo
npm/babel-plugin-polyfill-regenerator@0.6.10.6.4 None 0 9.74 kB nicolo-ribaudo
npm/caniuse-lite@1.0.300017041.0.30001712 None 0 2.21 MB ai, beneb, caniuse-lite
npm/chalk@4.1.2 None 0 35 kB sindresorhus
npm/dot-properties@1.0.11.1.0 None 0 22.1 kB eemeli
npm/electron-to-chromium@1.5.1181.5.132 None 0 161 kB kilianvalkhof
npm/esbuild@0.25.10.25.2 None 0 134 kB evanw
npm/eslint@9.23.09.22.0 None 0 3.47 MB eslintbot
npm/fastq@1.17.11.19.1 None 0 45.9 kB matteo.collina
npm/find-up@5.0.0 None 0 11.8 kB sindresorhus
npm/flatted@3.3.3 None 0 31.5 kB webreflection
npm/foreground-child@3.1.13.3.1 None 0 68.3 kB isaacs
npm/globals@14.0.0 None 0 117 kB sindresorhus
npm/import-fresh@3.3.03.3.1 None 0 4.69 kB sindresorhus
npm/js-yaml@4.1.0 None 0 405 kB vitaly
npm/json-buffer@3.0.1 None 0 5.4 kB dominictarr
npm/keyv@4.5.4 None 0 27.8 kB jaredwray
npm/levn@0.4.1 None +1 46.1 kB gkz
npm/locate-path@6.0.0 filesystem 0 7.02 kB sindresorhus
npm/minizlib@3.0.13.0.2 None 0 111 kB isaacs
npm/node-gyp@11.1.011.2.0 None 0 1.86 MB lukekarrys, nodejs-foundation, rvagg
npm/optionator@0.9.4 None 0 50.2 kB gkz
npm/p-limit@3.1.0 None 0 7.75 kB sindresorhus
npm/p-locate@5.0.0 None 0 7.24 kB sindresorhus
npm/pirates@4.0.64.0.7 None 0 12.6 kB ariporad, danez, hzoo
npm/prettier-plugin-sh@0.15.00.16.0 None 0 51.9 kB jounqin
npm/prettier-plugin-toml@2.0.22.0.3 None 0 22.9 kB jounqin
npm/pug-error@2.0.02.1.0 None 0 23.1 kB pug-bot
npm/quansync@0.2.80.2.10 None 0 23.9 kB antfu, sxzz
npm/remark-preset-prettier@2.0.12.0.2 None 0 15.2 kB jounqin
npm/resolve-from@4.0.0 filesystem, unsafe 0 4.64 kB sindresorhus
npm/reusify@1.0.41.1.0 None 0 11.7 kB matteo.collina
npm/rollup@4.38.04.39.0 None 0 0 B
npm/spdx-license-ids@3.0.173.0.21 None 0 12.9 kB kemitchell
npm/ts-api-utils@2.0.12.1.0 None 0 356 kB joshuakgoldberg
npm/undici-types@6.20.06.21.0 None 0 83.7 kB matteo.collina
npm/unicode-canonical-property-names-ecmascript@2.0.02.0.1 None 0 4.82 kB google-wombot
npm/unicode-match-property-value-ecmascript@2.1.02.2.0 None 0 26.3 kB google-wombot
npm/update-browserslist-db@1.1.11.1.3 None 0 14.8 kB ai
npm/yaml@2.7.02.7.1 None 0 683 kB eemeli
npm/yocto-queue@1.2.01.2.1 None 0 8.01 kB sindresorhus

🚮 Removed packages: npm/@aashutoshrathi/word-wrap@1.2.6, npm/@jest/expect-utils@29.7.0, npm/@jest/schemas@29.6.3, npm/@jest/types@29.6.3, npm/@nolyfill/json-stable-stringify@1.0.44, npm/@oxc-resolver/binding-darwin-arm64@5.0.0, npm/@oxc-resolver/binding-darwin-x64@5.0.0, npm/@oxc-resolver/binding-freebsd-x64@5.0.0, npm/@oxc-resolver/binding-linux-arm-gnueabihf@5.0.0, npm/@oxc-resolver/binding-linux-arm64-gnu@5.0.0, npm/@oxc-resolver/binding-linux-arm64-musl@5.0.0, npm/@oxc-resolver/binding-linux-x64-gnu@5.0.0, npm/@oxc-resolver/binding-linux-x64-musl@5.0.0, npm/@oxc-resolver/binding-wasm32-wasi@5.0.0, npm/@oxc-resolver/binding-win32-arm64-msvc@5.0.0, npm/@oxc-resolver/binding-win32-x64-msvc@5.0.0, npm/@sinclair/typebox@0.27.8, npm/@swc/core-darwin-arm64@1.11.13, npm/@swc/core-darwin-x64@1.11.13, npm/@swc/core-linux-arm-gnueabihf@1.11.13, npm/@swc/core-linux-arm64-gnu@1.11.13, npm/@swc/core-linux-arm64-musl@1.11.13, npm/@swc/core-linux-x64-gnu@1.11.13, npm/@swc/core-linux-x64-musl@1.11.13, npm/@swc/core-win32-arm64-msvc@1.11.13, npm/@swc/core-win32-ia32-msvc@1.11.13, npm/@swc/core-win32-x64-msvc@1.11.13, npm/@swc/core@1.11.13, npm/@swc/counter@0.1.3, npm/@swc/helpers@0.5.15, npm/@swc/types@0.1.19, npm/@total-typescript/ts-reset@0.6.1, npm/@types/eslint@9.6.1, npm/@types/is-glob@4.0.4, npm/@types/istanbul-lib-coverage@2.0.6, npm/@types/istanbul-lib-report@3.0.3, npm/@types/istanbul-reports@3.0.4, npm/@types/jest@29.5.14, npm/@types/klaw-sync@6.0.5, npm/@types/pnpapi@0.0.5, npm/@types/stack-utils@2.0.3, npm/@types/yargs-parser@21.0.3, npm/@types/yargs@17.0.32, npm/@typescript-eslint/eslint-plugin@8.28.0, npm/@typescript-eslint/parser@8.28.0, npm/@typescript-eslint/rule-tester@8.28.0, npm/@typescript-eslint/type-utils@8.28.0, npm/@unts/patch-package@8.1.1, npm/@yarnpkg/lockfile@1.1.0, npm/clean-pkg-json@1.2.1, npm/diff-sequences@29.6.3, npm/expect@29.7.0, npm/find-yarn-workspace-root@2.0.0, npm/graphemer@1.4.0, npm/is-docker@2.2.1, npm/is-wsl@2.2.0, npm/jest-diff@29.7.0, npm/jest-get-type@29.6.3, npm/jest-matcher-utils@29.7.0, npm/jest-message-util@29.7.0, npm/jest-util@29.7.0, npm/klaw-sync@6.0.0, npm/open@7.4.2, npm/oxc-resolver@5.0.0, npm/pretty-format@29.7.0, npm/react-is@18.2.0, npm/rimraf@5.0.10, npm/stack-utils@2.0.6

View full report↗︎

@JounQin JounQin changed the title docs: outdated order rule doc fix: incorrect top level types field for cjs Apr 6, 2025
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 6, 2025

Open in StackBlitz

npm i https://pkg.pr.new/eslint-plugin-import-x@280

commit: 81c487d

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.99%. Comparing base (178f360) to head (81c487d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #280   +/-   ##
=======================================
  Coverage   95.99%   95.99%           
=======================================
  Files          91       91           
  Lines        4745     4745           
  Branches     1763     1763           
=======================================
  Hits         4555     4555           
  Misses        189      189           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (3)
docs/rules/order.md (3)

180-190: Improve Language Conciseness
Consider rephrasing wordy expressions like “with respect to” to simpler alternatives (e.g., “regarding” or “relative to”), as suggested by the static analysis hints. This will help make the documentation more concise and reader-friendly.

🧰 Tools
🪛 LanguageTool

[style] ~180-~180: ‘with respect to’ might be wordy. Consider a shorter alternative.
Context: ... that haven't been ignored are shifted (with respect to their order) below any ES6 import or ...

(EN_WORDINESS_PREMIUM_WITH_RESPECT_TO)


447-449: Refinement: Vary Sentence Starters
Several consecutive sentences begin with the same word. Adjusting the sentence structure (for example, using synonyms or reordering clauses) would improve the overall flow of the documentation.

🧰 Tools
🪛 LanguageTool

[style] ~447-~447: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... named imports can occur in any order. If set to { enabled: true, ... }, and an...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~448-~448: ‘with respect to’ might be wordy. Consider a shorter alternative.
Context: ... to false, named ordering is disabled with respect to the following kind of expressions: - `...

(EN_WORDINESS_PREMIUM_WITH_RESPECT_TO)


782-784: Language Correction: “Vice Versa” Formatting
Ensure that “vice versa” is written without hyphens to conform to standard English usage. This small correction will improve grammatical precision.

🧰 Tools
🪛 LanguageTool

[grammar] ~782-~782: The expression “vice versa” is spelled without hyphens.
Context: ...een-types][27] is set to "never" (or vice-versa) > > Then [newlines-between][20]/[ne...

(VICE_VERSA)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 178f360 and d2b274b.

📒 Files selected for processing (5)
  • .changeset/serious-frogs-cry.md (1 hunks)
  • .github/workflows/pkg-pr-new.yml (1 hunks)
  • README.md (1 hunks)
  • docs/rules/order.md (21 hunks)
  • package.json (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/rules/order.md

[style] ~180-~180: ‘with respect to’ might be wordy. Consider a shorter alternative.
Context: ... that haven't been ignored are shifted (with respect to their order) below any ES6 import or ...

(EN_WORDINESS_PREMIUM_WITH_RESPECT_TO)


[style] ~447-~447: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... named imports can occur in any order. If set to { enabled: true, ... }, and an...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~448-~448: ‘with respect to’ might be wordy. Consider a shorter alternative.
Context: ... to false, named ordering is disabled with respect to the following kind of expressions: - `...

(EN_WORDINESS_PREMIUM_WITH_RESPECT_TO)


[misspelling] ~522-~522: Did you mean “side effects” (=adverse effect, unintended consequence)? Open compounds are not hyphenated.
Context: ...fiers (e.g. import './my/thing.js' or require('./side-effects.js')). > [!NOTE] > > These warnings a...

(AFFECT_EFFECT)


[misspelling] ~526-~526: Did you mean “side effects” (=adverse effect, unintended consequence)? Open compounds are not hyphenated.
Context: ...signed imports might be used for their [side-effects][31], > and changing the order of such ...

(AFFECT_EFFECT)


[style] ~778-~778: Consider removing “of” to be more concise
Context: ...thGroups][8]. > [!IMPORTANT] > > When all of the following are true: > > - [sortTypesGr...

(ALL_OF_THE)


[grammar] ~782-~782: The expression “vice versa” is spelled without hyphens.
Context: ...een-types][27] is set to "never" (or vice-versa) > > Then [newlines-between][20]/[ne...

(VICE_VERSA)

⏰ Context from checks skipped due to timeout of 90000ms (20)
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on macos-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on macos-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on macos-latest
🔇 Additional comments (6)
.github/workflows/pkg-pr-new.yml (1)

30-31: Enhancement: Publish Step Clarity
The added step name “Publish” helps clarify the workflow’s intent while leaving the command unchanged. This cosmetic improvement aids maintainability without impacting functionality.

README.md (1)

648-650: Cosmetic Documentation Update
The links for [1stG.me], [JounQin], and [MIT] have been updated to use consistent capitalization. These changes enhance readability and ensure uniform presentation throughout the README.

package.json (1)

36-41: Update: Type Declaration Path Reorganization
The "types" field now points to "index.d.cts", and the files array has been updated accordingly. This change aligns the package’s public type definitions with the new exports configuration for CommonJS modules, ensuring proper type resolution for consumers.

.changeset/serious-frogs-cry.md (1)

1-6: New Changeset Entry for CJS Types Correction
This changeset entry clearly documents the patch addressing the top-level types field for CommonJS modules. It provides a concise summary that will help users understand the adjustment’s rationale during version updates.

docs/rules/order.md (2)

640-652: Verify Newlines Between Types Documentation
The examples demonstrating the newlines-between-types setting (in conjunction with sortTypesGroup) are clear. Please confirm that these examples accurately reflect that this option takes precedence over newlines-between when enforcing the separation between type-only and normal imports.


972-980: Consistency in Reference Indices
The updated reference indices for options (e.g., for pathGroupsExcludedImportTypes and newlines-between) appear to be correctly aligned with the new documentation structure. Verify that these indices match the definitions elsewhere in the README for a seamless user experience.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 6, 2025

@JounQin JounQin merged commit 4966857 into master Apr 6, 2025
69 checks passed
@JounQin JounQin deleted the docs/order branch April 6, 2025 03:47
@coderabbitai coderabbitai bot mentioned this pull request Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documented sortTypesAmongThemselves is not a valid option

1 participant