Skip to content

Commit 770ce08

Browse files
2 parents 039bda4 + cc845ff commit 770ce08

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/slick-sheep-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tcd-devkit/eslint-config': patch
3+
---
4+
5+
Add exceptions for id-length rule

packages/eslint/eslint-config/src/base.rules.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export const baseRules = {
4444
},
4545
] satisfies ESLintRules['no-restricted-syntax'],
4646
'grouped-accessor-pairs': ['error', 'getBeforeSet'],
47-
'id-length': ['error'],
47+
'id-length': [
48+
'error',
49+
{ exceptions: ['i', 'e', '_'] },
50+
] satisfies ESLintRules['id-length'],
4851
'max-classes-per-file': ['error'],
4952
'max-depth': ['error'],
5053
'max-nested-callbacks': [

0 commit comments

Comments
 (0)