Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(rule-tester): portcheckDuplicateTestCases from ESLint#9026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
27 commits
Select commitHold shift + click to select a range
620416d
port checkDuplicate from ESLint
abrahamguoApr 29, 2024
72faa0d
lint
abrahamguoApr 29, 2024
2870725
revert lib change
abrahamguoApr 29, 2024
c0da154
move serialization to utils
abrahamguoApr 29, 2024
4cab72b
add issuenum for Object.hasOwn
abrahamguoApr 29, 2024
9cacae9
Merge branch 'main' of github.com:abrahamguo/typescript-eslint into d…
abrahamguoApr 30, 2024
b4e0d87
test cases for duplication
abrahamguoApr 30, 2024
c31e1be
dedupe some bulk tests
abrahamguoApr 30, 2024
1f1a290
Merge branch 'main' of github.com:abrahamguo/typescript-eslint into d…
abrahamguoMay 2, 2024
c2db7bd
dedupe naming-convention
abrahamguoMay 2, 2024
646aa94
make utility
abrahamguoMay 2, 2024
0a02368
prefer-nullish-coalescing
abrahamguoMay 2, 2024
618307d
prefer-readonly-parameter-types
abrahamguoMay 2, 2024
88efa1b
member-ordering
abrahamguoMay 2, 2024
3e8231d
sort
abrahamguoMay 2, 2024
fcae2d0
consistent-type-assertion
abrahamguoMay 3, 2024
dd112cf
add comment
abrahamguoMay 3, 2024
73c7a9d
cleanup
abrahamguoMay 3, 2024
ddd20bb
fix formatting
abrahamguoMay 3, 2024
ac89ac3
add explanation
abrahamguoMay 3, 2024
146ae8f
func-call-spacing
abrahamguoMay 3, 2024
b9617b5
Merge branch 'main' of github.com:abrahamguo/typescript-eslint into d…
abrahamguoMay 3, 2024
ba8c6cc
remove naming-convention
abrahamguoMay 3, 2024
6693ea3
remove debugging
abrahamguoMay 3, 2024
4fe40ce
Merge branch 'main' of github.com:abrahamguo/typescript-eslint into d…
abrahamguoMay 3, 2024
d136b04
Merge branch 'main' of github.com:abrahamguo/typescript-eslint into d…
abrahamguoMay 28, 2024
3cf2411
change quotes
abrahamguoMay 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletionspackages/eslint-plugin/tests/dedupeTestCases.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
export const dedupeTestCases = <T>(...caseArrays: (readonly T[])[]): T[] => {
const cases = caseArrays.flat();
const dedupedCases = Object.values(
Object.fromEntries(
cases.map(testCase => [JSON.stringify(testCase), testCase]),
),
);
if (cases.length === dedupedCases.length) {
throw new Error(
'`dedupeTestCases` is not necessary — no duplicate test cases detected!',
);
}
return dedupedCases;
};
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp