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

Skip to content

Commit 40fff9a

Browse files
committed
test(eslint-plugin): add unit tests for naming-convention
1 parent 7f71ae9 commit 40fff9a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/eslint-plugin/tests/rules/naming-convention.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ const cases: Cases = [
561561
'class Ignored { private static readonly % = 1 }',
562562
'class Ignored { abstract % = 1 }',
563563
'class Ignored { declare % }',
564+
'class Ignored { #% }',
565+
'class Ignored { #% = 1 }',
564566
],
565567
options: {
566568
selector: 'classProperty',
@@ -616,6 +618,7 @@ const cases: Cases = [
616618
'class Ignored { private % = () => {} }',
617619
'class Ignored { abstract %() }',
618620
'class Ignored { declare %() }',
621+
'class Ignored { #%() {} }',
619622
],
620623
options: {
621624
selector: 'classMethod',
@@ -626,6 +629,7 @@ const cases: Cases = [
626629
'const ignored = { %() {} };',
627630
'const ignored = { "%"() {} };',
628631
'const ignored = { %: () => {} };',
632+
'const ignored = { #%: () => {} };',
629633
],
630634
options: {
631635
selector: 'objectLiteralMethod',
@@ -636,6 +640,7 @@ const cases: Cases = [
636640
'interface Ignored { %(): string }',
637641
'interface Ignored { "%"(): string }',
638642
'type Ignored = { %(): string }',
643+
'type Ignored = { #%(): string }',
639644
'type Ignored = { "%"(): string }',
640645
],
641646
options: {

0 commit comments

Comments
 (0)