Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: respect existing eslint.config.ts, eslint.config.cts, eslint.config.mts files #2458

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

Merged
merged 5 commits into from
May 26, 2025

Conversation

JamesHenry
Copy link
Member

@JamesHenry JamesHenry commented May 25, 2025

NOTE: This PR does not yet handle generating such files, but they will be respected if they already exist, that's why I'm marking this as a fix.

Just like with ESLint directly, it is up to you to ensure that an appropriate version of jiti is installed to make it work (ESLint will error if you don't have it, as shown in the e2e test)

Fixes #2205

Copy link

nx-cloud bot commented May 25, 2025

View your CI Pipeline Execution ↗ for commit bf3c25e.

Command Status Duration Result
nx run-many -t e2e-suite --parallel 1 ✅ Succeeded 11m 31s View ↗
nx run-many -t test --codeCoverage ✅ Succeeded 1m 39s View ↗
nx run-many -t build,typecheck,check-rule-docs,... ✅ Succeeded 1m 3s View ↗
nx-cloud record -- pnpm nx sync:check ✅ Succeeded 2s View ↗
nx-cloud record -- pnpm format-check ✅ Succeeded 6s View ↗
nx run-many -t test ✅ Succeeded 54s View ↗
nx run-many -t build ✅ Succeeded 24s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-26 10:03:13 UTC

@JamesHenry JamesHenry force-pushed the claude/issue-2205-20250525_142656 branch from b7d82af to 4492b15 Compare May 25, 2025 16:50
Copy link

codecov bot commented May 25, 2025

Codecov Report

Attention: Patch coverage is 73.80952% with 22 lines in your changes missing coverage. Please review.

Project coverage is 92.98%. Comparing base (2b4e49f) to head (bf3c25e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/builder/src/lint.impl.ts 73.68% 18 Missing and 2 partials ⚠️
packages/schematics/src/utils.ts 75.00% 1 Missing and 1 partial ⚠️

❌ Your patch status has failed because the patch coverage (73.80%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2458      +/-   ##
==========================================
+ Coverage   92.84%   92.98%   +0.14%     
==========================================
  Files         195      195              
  Lines        4093     4105      +12     
  Branches      954      959       +5     
==========================================
+ Hits         3800     3817      +17     
+ Misses        226      221       -5     
  Partials       67       67              
Flag Coverage Δ
unittest 92.98% <73.80%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/builder/src/utils/eslint-utils.ts 76.47% <ø> (ø)
...ement/get-interactive-element-ax-object-schemas.ts 100.00% <ø> (ø)
...gin-template/src/utils/is-semantic-role-element.ts 92.85% <ø> (ø)
packages/schematics/src/ng-add/index.ts 75.60% <ø> (ø)
packages/template-parser/src/index.ts 90.62% <ø> (ø)
packages/schematics/src/utils.ts 83.10% <75.00%> (+2.91%) ⬆️
packages/builder/src/lint.impl.ts 65.62% <73.68%> (+1.88%) ⬆️
🚀 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.

@JamesHenry JamesHenry force-pushed the claude/issue-2205-20250525_142656 branch from 4492b15 to 3ee1dc3 Compare May 25, 2025 17:36
@JamesHenry JamesHenry changed the title feat: add support for TypeScript config files fix: respect existing eslint.config.ts, eslint.config.cts, eslint.config.mts files May 26, 2025
@JamesHenry JamesHenry marked this pull request as ready for review May 26, 2025 09:00
@JamesHenry JamesHenry merged commit 5ae155e into main May 26, 2025
7 of 8 checks passed
@JamesHenry JamesHenry deleted the claude/issue-2205-20250525_142656 branch May 26, 2025 10:03
igord pushed a commit to tcorral/angular-eslint that referenced this pull request Jun 1, 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.

ng lint does not recognize type safe eslint config file (eslint.config.ts) in root folder
1 participant