Skip to content

feat: add id-length lint rule and refactor related code - #102

Open
hmd-ali wants to merge 1 commit into
mainfrom
refactor/id-length-lint-rule
Open

feat: add id-length lint rule and refactor related code#102
hmd-ali wants to merge 1 commit into
mainfrom
refactor/id-length-lint-rule

Conversation

@hmd-ali

@hmd-ali hmd-ali commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Stack created with GitHub Stacks CLIGive Feedback 💬

@hmd-ali
hmd-ali requested a review from wiktoriavh August 24, 2026 05:09
Comment thread src/util/advent-scheduler.test.ts
Comment thread oxlint.config.ts
'prefer-template': 'warn',
'typescript/no-explicit-any': 'error',
'prefer-const': 'error',
'id-length': [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

rename to "disallow-abbreviation".

Suggested change
'id-length': [
'disallow-abbreviation': [

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's the rule id-length
I'm not sure what you mean by rename it? unless you want to use different rule?

Comment thread src/env.ts
@@ -1,3 +1,4 @@
// oxlint-disable id-length

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// oxlint-disable id-length
// oxlint-disable disallow-abbreviation

Comment thread oxlint.config.ts
Comment on lines +16 to +21
{
min: 2,
checkGeneric: false,
exceptions: ['_', 'i', 'j', 'x', 'y', 'z'],
},
],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add an error message saying: Use full, descriptive words instead of abbreviations.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure about this either? Can we have custom lint messages?

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.

2 participants