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

Skip to content

Conversation

@fisker
Copy link
Contributor

@fisker fisker commented Oct 9, 2025

PR Checklist

Overview

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @fisker!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

@netlify
Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit e52f52e
🔍 Latest deploy log https://app.netlify.com/projects/typescript-eslint/deploys/68e7af756cb4920008db8d07
😎 Deploy Preview https://deploy-preview-11689--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 98 (🟢 up 1 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link

nx-cloud bot commented Oct 9, 2025

View your CI Pipeline Execution ↗ for commit e52f52e

Command Status Duration Result
nx run-many -t lint ✅ Succeeded 3m 15s View ↗
nx run-many -t typecheck ✅ Succeeded 1m 53s View ↗
nx run integration-tests:test ✅ Succeeded 5s View ↗
nx test typescript-estree --coverage=false ✅ Succeeded 1s View ↗
nx test eslint-plugin --coverage=false ✅ Succeeded 3s View ↗
nx test eslint-plugin-internal --coverage=false ✅ Succeeded 3s View ↗
nx run types:build ✅ Succeeded 5s View ↗
nx run generate-configs ✅ Succeeded 8s View ↗
Additional runs (29) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-10-09 13:01:48 UTC

@fisker fisker force-pushed the object-modifier branch 2 times, most recently from 16fcab8 to 995e312 Compare October 9, 2025 11:46
@codecov
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.67%. Comparing base (de1fedb) to head (e52f52e).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11689   +/-   ##
=======================================
  Coverage   90.67%   90.67%           
=======================================
  Files         518      518           
  Lines       52466    52466           
  Branches     8694     8693    -1     
=======================================
+ Hits        47571    47572    +1     
+ Misses       4881     4880    -1     
  Partials       14       14           
Flag Coverage Δ
unittest 90.67% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
packages/typescript-estree/src/check-modifiers.ts 15.92% <100.00%> (+0.31%) ⬆️
🚀 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.

@fisker fisker changed the title fix(typescript-estree): forbid invalid modifiers in object properties fix(typescript-estree): forbid invalid modifiers in object methods Oct 9, 2025
Comment on lines +19 to +41
"expression/ObjectExpression/fixtures/_error_/getter-modifier-declare/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/getter-modifier-export/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/getter-modifier-override/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/getter-modifier-private/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/getter-modifier-protected/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/getter-modifier-public/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/getter-modifier-static/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-abstract/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-async/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-declare/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-export/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-override/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-private/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-protected/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-public/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/property-modifier-static/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/setter-modifier-declare/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/setter-modifier-export/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/setter-modifier-override/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/setter-modifier-private/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/setter-modifier-protected/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/setter-modifier-public/fixture.ts",
"expression/ObjectExpression/fixtures/_error_/setter-modifier-static/fixture.ts",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Turns out there is something wrong in getModifiers() utility, I can't get all modifiers, so these are not easy to fix.

Let's keep these as TODO?

#11688 can be addressed in another PR.

@fisker fisker marked this pull request as ready for review October 9, 2025 13:00
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Thanks!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 4eda303 into typescript-eslint:main Oct 20, 2025
69 checks passed
@fisker fisker deleted the object-modifier branch October 20, 2025 15:44
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.

Enhancement: Forbid invalid modifiers in object methods

2 participants