-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
fix: improve global type detection of vue files #4455
Conversation
|
WalkthroughThe pull request introduces changes to the ESLint configuration files for JavaScript and Vue.js, modifying linting rules and adding commented-out global variable declarations for Vue. Additionally, a comment in the Changes
Assessment against linked issues
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this 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
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- internal/lint-configs/eslint-config/src/configs/javascript.ts (1 hunks)
- internal/lint-configs/eslint-config/src/configs/vue.ts (1 hunks)
- packages/effects/common-ui/src/ui/about/about.vue (0 hunks)
Files not reviewed due to no reviewable changes (1)
- packages/effects/common-ui/src/ui/about/about.vue
Additional comments not posted (1)
internal/lint-configs/eslint-config/src/configs/javascript.ts (1)
150-150
: Consider a more targeted solution to avoid unintended consequences.Disabling the
'no-undef'
rule aligns with the PR objective of resolving the incorrect flagging ofno-undef
errors in.vue
files. However, disabling this rule globally could potentially allow the use of undeclared variables in other parts of the codebase, which may not be desirable.Consider a more targeted solution, such as configuring the
'no-undef'
rule specifically for Vue files or exploring alternative approaches to address the underlying issue without disabling the rule entirely.To verify the impact of this change, run the following script:
This script searches for occurrences of the
'no-undef'
rule in ESLint config files and lints non-Vue files to check forno-undef
errors. If the rule is disabled globally, there may be occurrences in non-Vue-specific configs, and linting non-Vue files may reveal undeclared variables that were previously caught by the rule.Please review the results and consider if a more targeted solution is necessary to avoid unintended consequences.
Description
fixed #4418
Type of change
Please delete options that are not relevant.
pnpm-lock.yaml
unless you introduce a new test example.Checklist
pnpm run docs:dev
command.pnpm test
.feat:
,fix:
,perf:
,docs:
, orchore:
.Summary by CodeRabbit
Bug Fixes
about.vue
file for cleaner code.Chores