Skip to content

feat(eslint-config): migrate project to projectService for TypeScript#369

Merged
JounQin merged 1 commit into
masterfrom
feat/projectService
May 18, 2025
Merged

feat(eslint-config): migrate project to projectService for TypeScript#369
JounQin merged 1 commit into
masterfrom
feat/projectService

Conversation

@JounQin
Copy link
Copy Markdown
Member

@JounQin JounQin commented May 18, 2025

close #366


Important

Migrate TypeScript ESLint configuration from project to projectService in ts-base.js and vue.js.

  • Behavior:
    • Migrates from project to projectService in TypeScript ESLint configuration.
    • Affects tsBase in ts-base.js and vue in vue.js.
  • Configuration:
    • Updates parserOptions to use projectService: true in ts-base.js.
    • Extends parserOptions in vue.js to include tsBase settings.

This description was created by Ellipsis for c883d0f. You can customize this summary. It will automatically update as commits are pushed.

@JounQin JounQin requested a review from Copilot May 18, 2025 09:28
@JounQin JounQin self-assigned this May 18, 2025
@JounQin JounQin added enhancement New feature or request feature labels May 18, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 18, 2025

🦋 Changeset detected

Latest commit: c883d0f

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

This PR includes changesets to release 1 package
Name Type
@1stg/eslint-config Minor

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

coderabbitai Bot commented May 18, 2025

Warning

Rate limit exceeded

@JounQin has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 24 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 94685f7 and c883d0f.

📒 Files selected for processing (3)
  • .changeset/forty-colts-laugh.md (1 hunks)
  • packages/eslint-config/ts-base.js (1 hunks)
  • packages/eslint-config/vue.js (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the TypeScript configuration setting from using the "project" property to a new "projectService" flag. Key changes include:

  • Spreading parserOptions from the tsBase configuration into the Vue ESLint configuration.
  • Replacing the "project" property with "projectService: true" in the tsBase configuration.
  • Updating the changeset documentation to reflect the migration.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/eslint-config/vue.js Added spread of parserOptions from tsBase to integrate settings
packages/eslint-config/ts-base.js Replaced project with projectService flag for TypeScript config
.changeset/forty-colts-laugh.md Documented the feature migration in the changeset
Comments suppressed due to low confidence (1)

packages/eslint-config/ts-base.js:28

  • Ensure that the downstream consumers of tsBase configuration correctly handle the new 'projectService' flag in lieu of the former 'project' property.
      projectService: true,

Comment thread packages/eslint-config/vue.js
@github-actions
Copy link
Copy Markdown
Contributor

📊 Package size report   0%↑

File Before After
.changeset/forty-colts-laugh.md 97 B
packages/eslint-config/ts-base.js 4.0 kB 0.3%↑4.0 kB
packages/eslint-config/vue.js 1.4 kB 4%↑1.5 kB
Total (Includes all files) 3.5 MB 0%↑3.5 MB
Tarball size 1.1 MB 0.01%↑1.1 MB
Unchanged files
File Size
.browserslistrc 41 B
.changeset/config.json 311 B
.changeset/eleven-lemons-teach.md 148 B
.changeset/README.md 510 B
.codesandbox/ci.json 63 B
.commitlintrc 35 B
.editorconfig 145 B
.gitattributes 115 B
.github/workflows/autofix.yml 905 B
.github/workflows/ci.yml 1.6 kB
.github/workflows/pkg-pr-new.yml 641 B
.github/workflows/pkg-size.yml 694 B
.github/workflows/release.yml 1.2 kB
.markuplintrc 96 B
.nano-staged.js 48 B
.nvmrc 6 B
.postcssrc.cjs 49 B
.prettierignore 41 B
.prettierrc 24 B
.remarkrc 42 B
.renovaterc 49 B
.simple-git-hooks.js 49 B
.stylelintignore 209 B
.stylelintrc 90 B
.yarn/plugins/plugin-prepare-lifecycle.cjs 202 B
.yarn/releases/yarn-4.9.1.cjs 3.0 MB
.yarnrc.yml 397 B
CHANGELOG.md 1.1 kB
default.json 499 B
eslint.config.js 516 B
global.d.ts 53 B
LICENSE 1.1 kB
package.json 2.6 kB
packages/app-config/CHANGELOG.md 51.2 kB
packages/app-config/package.json 744 B
packages/app-config/README.md 2.7 kB
packages/babel-preset/CHANGELOG.md 24.2 kB
packages/babel-preset/config.js 43 B
packages/babel-preset/index.js 5.6 kB
packages/babel-preset/package.json 1.6 kB
packages/babel-preset/README.md 2.7 kB
packages/browserslist-config/_not.js 140 B
packages/browserslist-config/alauda-legacy.js 51 B
packages/browserslist-config/alauda.js 129 B
packages/browserslist-config/CHANGELOG.md 7.5 kB
packages/browserslist-config/index.js 116 B
packages/browserslist-config/latest.js 186 B
packages/browserslist-config/modern.js 167 B
packages/browserslist-config/package.json 570 B
packages/browserslist-config/README.md 2.7 kB
packages/commitlint-config/CHANGELOG.md 14.0 kB
packages/commitlint-config/index.js 537 B
packages/commitlint-config/package.json 633 B
packages/commitlint-config/README.md 2.7 kB
packages/common-config/CHANGELOG.md 46.9 kB
packages/common-config/package.json 929 B
packages/common-config/README.md 2.7 kB
packages/config/CHANGELOG.md 3.2 kB
packages/config/index.d.ts 176 B
packages/config/index.js 563 B
packages/config/package.json 599 B
packages/config/README.md 2.7 kB
packages/eslint-config/_util.js 2.0 kB
packages/eslint-config/angular.js 1.3 kB
packages/eslint-config/base.d.ts 109 B
packages/eslint-config/base.js 5.0 kB
packages/eslint-config/CHANGELOG.md 57.9 kB
packages/eslint-config/index.d.ts 58 B
packages/eslint-config/index.js 58 B
packages/eslint-config/jest.js 391 B
packages/eslint-config/js-base.js 1.4 kB
packages/eslint-config/js.js 582 B
packages/eslint-config/loose.d.ts 110 B
packages/eslint-config/loose.js 1.4 kB
packages/eslint-config/overrides.d.ts 1.2 kB
packages/eslint-config/overrides.js 6.4 kB
packages/eslint-config/package.json 2.8 kB
packages/eslint-config/react.js 1.6 kB
packages/eslint-config/README.md 2.7 kB
packages/eslint-config/recommended.d.ts 116 B
packages/eslint-config/recommended.js 142 B
packages/eslint-config/test.js 309 B
packages/eslint-config/vitest.js 396 B
packages/markuplint-config/angular.js 122 B
packages/markuplint-config/base.d.ts 87 B
packages/markuplint-config/base.js 413 B
packages/markuplint-config/CHANGELOG.md 6.2 kB
packages/markuplint-config/index.d.ts 36 B
packages/markuplint-config/index.js 36 B
packages/markuplint-config/package.json 923 B
packages/markuplint-config/README.md 2.7 kB
packages/markuplint-config/vue.d.ts 85 B
packages/markuplint-config/vue.js 240 B
packages/nano-staged/_utils.js 429 B
packages/nano-staged/base.js 1.4 kB
packages/nano-staged/CHANGELOG.md 915 B
packages/nano-staged/index.js 36 B
packages/nano-staged/ngc.js 216 B
packages/nano-staged/package.json 983 B
packages/nano-staged/README.md 2.7 kB
packages/nano-staged/tsc.js 200 B
packages/nano-staged/vue-tsc.js 249 B
packages/postcss-config/CHANGELOG.md 17.2 kB
packages/postcss-config/index.d.ts 88 B
packages/postcss-config/index.js 1.3 kB
packages/postcss-config/package.json 1.2 kB
packages/postcss-config/README.md 2.7 kB
packages/prettier-config/angular.d.ts 36 B
packages/prettier-config/angular.js 210 B
packages/prettier-config/base.d.ts 92 B
packages/prettier-config/base.js 1.6 kB
packages/prettier-config/CHANGELOG.md 27.5 kB
packages/prettier-config/index.d.ts 36 B
packages/prettier-config/index.js 36 B
packages/prettier-config/next.d.ts 36 B
packages/prettier-config/next.js 220 B
packages/prettier-config/package.json 1.5 kB
packages/prettier-config/quote.d.ts 36 B
packages/prettier-config/quote.js 94 B
packages/prettier-config/README.md 2.7 kB
packages/prettier-config/semi/angular.d.ts 37 B
packages/prettier-config/semi/angular.js 90 B
packages/prettier-config/semi/index.d.ts 37 B
packages/prettier-config/semi/index.js 87 B
packages/prettier-config/semi/next.d.ts 37 B
packages/prettier-config/semi/next.js 87 B
packages/prettier-config/semi/quote.d.ts 37 B
packages/prettier-config/semi/quote.js 88 B
packages/prettier-config/semi/vue.d.ts 37 B
packages/prettier-config/semi/vue.js 86 B
packages/prettier-config/vue.d.ts 36 B
packages/prettier-config/vue.js 206 B
packages/remark-preset/CHANGELOG.md 8.5 kB
packages/remark-preset/index.js 1.3 kB
packages/remark-preset/package.json 1.1 kB
packages/remark-preset/README.md 2.7 kB
packages/simple-git-hooks/CHANGELOG.md 4.3 kB
packages/simple-git-hooks/index.js 193 B
packages/simple-git-hooks/package.json 711 B
packages/simple-git-hooks/README.md 2.7 kB
packages/stylelint-config/_overrides.js 939 B
packages/stylelint-config/base.d.ts 76 B
packages/stylelint-config/base.js 1.5 kB
packages/stylelint-config/CHANGELOG.md 23.0 kB
packages/stylelint-config/index.d.ts 80 B
packages/stylelint-config/index.js 72 B
packages/stylelint-config/loose.d.ts 78 B
packages/stylelint-config/loose.js 76 B
packages/stylelint-config/modules.d.ts 82 B
packages/stylelint-config/modules.js 263 B
packages/stylelint-config/package.json 1.3 kB
packages/stylelint-config/README.md 2.7 kB
packages/stylelint-config/scss/base.d.ts 76 B
packages/stylelint-config/scss/base.js 1.4 kB
packages/stylelint-config/scss/index.d.ts 36 B
packages/stylelint-config/scss/index.js 36 B
packages/stylelint-config/scss/loose.d.ts 78 B
packages/stylelint-config/scss/loose.js 369 B
packages/tsconfig/angular.json 306 B
packages/tsconfig/app.json 282 B
packages/tsconfig/CHANGELOG.md 11.4 kB
packages/tsconfig/dom-lib.json 158 B
packages/tsconfig/erasable.json 147 B
packages/tsconfig/lib.json 189 B
packages/tsconfig/loose.json 180 B
packages/tsconfig/ng-lib.json 387 B
packages/tsconfig/node.json 171 B
packages/tsconfig/node16.json 192 B
packages/tsconfig/nodenext.json 196 B
packages/tsconfig/package.json 602 B
packages/tsconfig/README.md 2.7 kB
packages/tsconfig/tsconfig.json 680 B
README.md 4.0 kB
tests/_test.ts 1.1 kB
tests/global.d.ts 41 B
tests/test.cjs 742 B
tests/test.component.html 142 B
tests/test.component.ts 198 B
tests/test.css 53 B
tests/test.d.ts 409 B
tests/test.html 191 B
tests/test.js 753 B
tests/test.json 23 B
tests/test.json5 22 B
tests/test.jsonc 37 B
tests/test.less 315 B
tests/test.md 61 B
tests/test.mdx 143 B
tests/test.pug 17 B
tests/test.scss 381 B
tests/test.sh 20 B
tests/test.spec.js 129 B
tests/test.spec.ts 671 B
tests/test.svg 1.2 kB
tests/test.toml 16 B
tests/test.vue 436 B
tests/test.yaml 13 B
tests/test.yml 13 B
tests/test1.jsx 347 B
tests/test2.ts 1.8 kB
tests/test3.tsx 484 B
tsconfig.json 41 B
vitest.config.ts 227 B

🤖 This report was automatically generated by pkg-size-action

@codesandbox-ci
Copy link
Copy Markdown

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.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (94685f7) to head (c883d0f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #369   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files          39      39           
  Lines         257     257           
  Branches      120     120           
======================================
  Misses        257     257           

☔ 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

@ellipsis-dev ellipsis-dev Bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to c883d0f in 41 seconds. Click for details.
  • Reviewed 36 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .changeset/forty-colts-laugh.md:1
  • Draft comment:
    Changeset file is formatted correctly.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. packages/eslint-config/ts-base.js:28
  • Draft comment:
    Migrated to projectService: true. Consider removing the unused import 'project' from _util.js if no longer needed.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. packages/eslint-config/vue.js:42
  • Draft comment:
    Spreading tsBase[0].languageOptions?.parserOptions propagates the new projectService config. Confirm the merge order is as intended.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_ur6sMYFrFQDkbjE4

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 18, 2025

Open in StackBlitz

@1stg/app-config

npm i https://pkg.pr.new/@1stg/app-config@369

@1stg/babel-preset

npm i https://pkg.pr.new/@1stg/babel-preset@369

@1stg/commitlint-config

npm i https://pkg.pr.new/@1stg/commitlint-config@369

@1stg/browserslist-config

npm i https://pkg.pr.new/@1stg/browserslist-config@369

@1stg/common-config

npm i https://pkg.pr.new/@1stg/common-config@369

@1stg/config

npm i https://pkg.pr.new/@1stg/config@369

@1stg/eslint-config

npm i https://pkg.pr.new/@1stg/eslint-config@369

@1stg/markuplint-config

npm i https://pkg.pr.new/@1stg/markuplint-config@369

@1stg/nano-staged

npm i https://pkg.pr.new/@1stg/nano-staged@369

@1stg/postcss-config

npm i https://pkg.pr.new/@1stg/postcss-config@369

@1stg/prettier-config

npm i https://pkg.pr.new/@1stg/prettier-config@369

@1stg/remark-preset

npm i https://pkg.pr.new/@1stg/remark-preset@369

@1stg/simple-git-hooks

npm i https://pkg.pr.new/@1stg/simple-git-hooks@369

@1stg/stylelint-config

npm i https://pkg.pr.new/@1stg/stylelint-config@369

@1stg/tsconfig

npm i https://pkg.pr.new/@1stg/tsconfig@369

commit: c883d0f

@JounQin JounQin merged commit 5e8ada3 into master May 18, 2025
26 checks passed
@JounQin JounQin deleted the feat/projectService branch May 18, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(eslint): enabled projectService for typescript-eslint

2 participants