Skip to content

Commit b39bb31

Browse files
fix: naming convention - don't enforce on getters
1 parent 4b53f0d commit b39bb31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/configs/typescript.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -359,21 +359,21 @@ export async function typescript(
359359
modifiers: ["destructured"],
360360
},
361361
{
362-
selector: "memberLike",
362+
selector: ["autoAccessor", "parameterProperty", "property"],
363363
filter: { regex: "^[A-Z0-9_]+$", match: true },
364364
format: ["UPPER_CASE"],
365365
leadingUnderscore: "forbid",
366366
trailingUnderscore: "forbid",
367367
},
368368
{
369-
selector: "memberLike",
369+
selector: ["autoAccessor", "parameterProperty", "property"],
370370
format: ["camelCase", "PascalCase"],
371371
prefix: ["m_", "M_"],
372372
leadingUnderscore: "forbid",
373373
trailingUnderscore: "forbid",
374374
},
375375
{
376-
selector: "memberLike",
376+
selector: ["autoAccessor", "parameterProperty", "property"],
377377
filter: { regex: "_[^_]+", match: true },
378378
format: ["camelCase", "PascalCase"],
379379
modifiers: ["readonly"],
@@ -382,7 +382,7 @@ export async function typescript(
382382
trailingUnderscore: "forbid",
383383
},
384384
{
385-
selector: "memberLike",
385+
selector: ["autoAccessor", "parameterProperty", "property"],
386386
format: ["camelCase", "PascalCase", "UPPER_CASE"],
387387
modifiers: ["readonly"],
388388
leadingUnderscore: "allow",

0 commit comments

Comments
 (0)