Skip to content

chore: add max-len ESLint rule with 120 character limit#6221

Merged
Eomm merged 14 commits intofastify:mainfrom
emicovi:fix/eslint-max-len-rule
Oct 30, 2025
Merged

chore: add max-len ESLint rule with 120 character limit#6221
Eomm merged 14 commits intofastify:mainfrom
emicovi:fix/eslint-max-len-rule

Conversation

@emicovi
Copy link
Contributor

@emicovi emicovi commented Jun 16, 2025

Note: This PR intentionally introduces 80 ESLint violations to demonstrate the current state of line length in the codebase. This is the expected behavior requested in issue #6029 to assess the impact of adding the max-len rule.

The failing tests show exactly what @Eomm wanted to evaluate: "check if adding max-len with 120 hurts the codebase or not."

Fixes #6029

Checklist

- Add max-len rule with 120 character limit as requested in fastify#6029
- Exclude TypeScript definition files from max-len rule
- Add ignore options for URLs, strings, templates, regex, and comments
- Resolves remaining part of fastify#6029 (line length limit)

Fixes fastify#6029
@Fdawgs Fdawgs changed the title feat: add max-len ESLint rule with 120 character limit chore: add max-len ESLint rule with 120 character limit Jun 17, 2025
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

Can you go ahead and fix the inconsistencies?

@github-actions github-actions bot added the typescript TypeScript related label Jun 25, 2025
@emicovi
Copy link
Contributor Author

emicovi commented Jun 25, 2025

Done :)

Signed-off-by: Manuel Spigolon <behemoth89@gmail.com>
@jean-michelet
Copy link
Member

If we don't add no-nested-ternary rule and tests are green, maybe we can merge.

@emicovi
Copy link
Contributor Author

emicovi commented Aug 6, 2025

perfect, hoepfully will be merged

@jean-michelet
Copy link
Member

Fix conflicts plz

@jean-michelet
Copy link
Member

There are TypeScript errors.

@Uzlopak
Copy link
Contributor

Uzlopak commented Sep 26, 2025

FIxed the issues in this PR...

Btw. seems to be AI slop

@Eomm Eomm requested a review from a team October 30, 2025 09:28
Copy link
Member

@zekth zekth left a comment

Choose a reason for hiding this comment

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

🫡

@Eomm Eomm merged commit 543f341 into fastify:main Oct 30, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typescript TypeScript related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eslint inconsistencies

9 participants