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

fix(eslint-plugin): [ban-types] update message to suggestobject instead ofRecord<string, unknown>#6079

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
bradzacher merged 19 commits intotypescript-eslint:mainfromkmin-jeong:feat/5949
Dec 7, 2022
Merged
Changes fromall commits
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
f679c99
fix:fix messages
kmin-jeongNov 24, 2022
63d0068
fix:fix type record to object
kmin-jeongNov 29, 2022
faf1ac2
fix:fix record to object
kmin-jeongNov 29, 2022
ac2f4f1
feat: add test code
kmin-jeongNov 29, 2022
64f6362
Merge branch 'main' into feat/5949
kmin-jeongNov 29, 2022
209590c
fix:fix 5 lint error
kmin-jeongNov 30, 2022
9b8173a
Merge branch 'master' of https://github.com/kmin-jeong/typescript-esl…
kmin-jeongNov 30, 2022
ecbc138
fix:fix variable name in checkBannedTypes
kmin-jeongNov 30, 2022
c6bad6b
Merge branch 'main' into feat/5949
kmin-jeongNov 30, 2022
0b6708e
Merge branch 'feat/5949' of https://github.com/kmin-jeong/typescript-…
kmin-jeongNov 30, 2022
7fa5ebd
fix:fix lint error lastone
kmin-jeongNov 30, 2022
8db5ef0
fix: add total types and delete duplication things
kmin-jeongNov 30, 2022
da8a46e
fix: fix type total to checTypes
kmin-jeongNov 30, 2022
8aad9de
fix: fix variable names
kmin-jeongNov 30, 2022
5890f89
fix: fix types elements
kmin-jeongNov 30, 2022
9e71fcf
fix:fix type Types
kmin-jeongNov 30, 2022
e2f6ff0
fix: fix messages in object
kmin-jeongDec 2, 2022
071bd84
Merge branch 'main' into feat/5949
kmin-jeongDec 2, 2022
6a22bef
Update packages/eslint-plugin/tests/rules/ban-types.test.ts
JoshuaKGoldbergDec 2, 2022
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
4 changes: 2 additions & 2 deletionspackages/eslint-plugin/src/rules/ban-types.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -86,14 +86,14 @@ const defaultTypes: Types = {
Object: {
message: [
'The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.',
'- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
'- If you want a type meaning "any object", you probably want `object` instead.',
'- If you want a type meaning "any value", you probably want `unknown` instead.',
].join('\n'),
},
'{}': {
message: [
'`{}` actually means "any non-nullish value".',
'- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
'- If you want a type meaning "any object", you probably want `object` instead.',
'- If you want a type meaning "any value", you probably want `unknown` instead.',
'- If you want a type meaning "empty object", you probably want `Record<string, never>` instead.',
].join('\n'),
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp