Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: split up naming-convention (#4599)
- Loading branch information
1 parent
3ea0947
commit 699ef48
Showing
16 changed files
with
747 additions
and
718 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
packages/eslint-plugin/tests/rules/naming-convention/cases/accessor.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { createTestCases } from './createTestCases'; | ||
|
||
createTestCases([ | ||
{ | ||
code: [ | ||
'const ignored = { get %() {} };', | ||
'const ignored = { set "%"(ignored) {} };', | ||
'class Ignored { private get %() {} }', | ||
'class Ignored { private set "%"(ignored) {} }', | ||
'class Ignored { private static get %() {} }', | ||
'class Ignored { static get #%() {} }', | ||
], | ||
options: { | ||
selector: 'accessor', | ||
}, | ||
}, | ||
]); |
10 changes: 10 additions & 0 deletions
10
packages/eslint-plugin/tests/rules/naming-convention/cases/class.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { createTestCases } from './createTestCases'; | ||
|
||
createTestCases([ | ||
{ | ||
code: ['class % {}', 'abstract class % {}', 'const ignored = class % {}'], | ||
options: { | ||
selector: 'class', | ||
}, | ||
}, | ||
]); |
Oops, something went wrong.