Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rule S6767 (no-unused-prop-types): Unused React typed props should be removed #4165

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions its/ruling/src/test/expected/ts/Joust/typescript-S6767.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Joust:ts/components/game/EndTurnButton.tsx": [
8
]
}
53 changes: 53 additions & 0 deletions its/ruling/src/test/expected/ts/ant-design/typescript-S6767.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"ant-design:components/anchor/Anchor.tsx": [
70
],
"ant-design:components/auto-complete/index.tsx": [
43
],
"ant-design:components/button/LoadingIcon.tsx": [
41,
41
],
"ant-design:components/config-provider/index.tsx": [
60,
61,
65,
73,
76,
80
],
"ant-design:components/descriptions/Row.tsx": [
94,
96
],
"ant-design:components/input/ClearableLabeledInput.tsx": [
32,
40,
42,
43,
44,
45
],
"ant-design:components/page-header/index.tsx": [
19,
21,
22,
26,
28,
29,
30
],
"ant-design:components/progress/Circle.tsx": [
11
],
"ant-design:components/skeleton/Element.tsx": [
10
],
"ant-design:components/transfer/ListBody.tsx": [
16
],
"ant-design:site/theme/template/Layout/Header/Navigation.tsx": [
16
]
}
209 changes: 209 additions & 0 deletions its/ruling/src/test/expected/ts/console/typescript-S6767.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
{
"console:src/components/Header/Header.tsx": [
8,
9,
10
],
"console:src/components/InfiniteTable/InfiniteTable.tsx": [
13,
17,
18
],
"console:src/components/Links.tsx": [
9,
12
],
"console:src/components/NodeSelector/NodeSelector.tsx": [
17
],
"console:src/components/ProjectSelection/ProjectSelection.tsx": [
32,
33,
34,
35,
36
],
"console:src/components/ToggleButton/ToggleButton.tsx": [
19
],
"console:src/components/onboarding/OnboardingPopup/OnboardingPopup.tsx": [
15
],
"console:src/views/FunctionsView/FunctionPopup/Trigger.tsx": [
14
],
"console:src/views/FunctionsView/FunctionRow.tsx": [
24
],
"console:src/views/FunctionsView/FunctionsView.tsx": [
10
],
"console:src/views/Integrations/Algolia/AlgoliaView.tsx": [
27
],
"console:src/views/Integrations/Algolia/ConfirmOperationsPopup.tsx": [
10,
13
],
"console:src/views/Integrations/AlgoliaPopup/AlgoliaPopup.tsx": [
22,
28
],
"console:src/views/Integrations/AlgoliaPopup/AlgoliaPopupIndexes.tsx": [
14,
16
],
"console:src/views/PermissionsView/PermissionPopup/PermissionPopup.tsx": [
34,
35,
39
],
"console:src/views/PermissionsView/RelationPermissionPopup/RelationBaseSettings.tsx": [
7
],
"console:src/views/PermissionsView/RelationPermissionPopup/RelationPermissionPopup.tsx": [
35,
36,
40
],
"console:src/views/ProjectRootView/OnboardSideNav.tsx": [
14,
15
],
"console:src/views/ProjectRootView/Onboarding/FinalPopup.tsx": [
12
],
"console:src/views/ProjectRootView/Onboarding/SelectExample.tsx": [
11
],
"console:src/views/ProjectRootView/ProjectRootView.tsx": [
46
],
"console:src/views/ProjectRootView/SideNav.tsx": [
34,
35,
40,
45
],
"console:src/views/RelationsPopup/ConfirmPopup.tsx": [
15,
16,
17
],
"console:src/views/RelationsPopup/ModelSelection.tsx": [
16,
18
],
"console:src/views/RelationsPopup/SetMutation.tsx": [
28,
29
],
"console:src/views/SchemaView/EnumsOverview/AddEnum.tsx": [
40,
41,
42
],
"console:src/views/SchemaView/EnumsOverview/ConfirmEnum.tsx": [
15
],
"console:src/views/SchemaView/EnumsOverview/EnumBox.tsx": [
23,
27,
28
],
"console:src/views/SchemaView/EnumsOverview/EnumsOverview.tsx": [
12
],
"console:src/views/SchemaView/EnumsOverview/EnumsOverviewHeader.tsx": [
5
],
"console:src/views/SchemaView/SchemaEditor.tsx": [
21,
27
],
"console:src/views/SchemaView/SchemaOverview/ConfirmModel.tsx": [
15
],
"console:src/views/SchemaView/SchemaOverview/SchemaOverviewHeader.tsx": [
8
],
"console:src/views/SchemaView/SchemaOverview/TypeBox.tsx": [
25
],
"console:src/views/Settings/Billing/Billing.tsx": [
41,
42,
46
],
"console:src/views/Settings/Billing/ChangePricingPlan.tsx": [
11
],
"console:src/views/Settings/Billing/CreditCardBack.tsx": [
9,
11
],
"console:src/views/Settings/Billing/CurrentPlan.tsx": [
14
],
"console:src/views/account/AccountView/SettingsTab.tsx": [
14
],
"console:src/views/models/AuthProviderPopup/AuthProviderPopup.tsx": [
16,
20
],
"console:src/views/models/DatabrowserView/Cell.tsx": [
44,
45,
51,
64
],
"console:src/views/models/DatabrowserView/Cell/SelectNodesCell/SelectNodesCell.tsx": [
34
],
"console:src/views/models/DatabrowserView/CheckboxCell.tsx": [
9
],
"console:src/views/models/DatabrowserView/DataActionRow/NewNodeRow.tsx": [
20
],
"console:src/views/models/DatabrowserView/DatabrowserView.tsx": [
66,
67,
68,
69,
70,
71,
72,
73,
78,
81,
82,
101,
102,
127
],
"console:src/views/models/DatabrowserView/NewRow.tsx": [
30,
31,
35
],
"console:src/views/models/FieldPopup/ConfirmFieldPopup.tsx": [
18
],
"console:src/views/models/FieldPopup/FieldPopup.tsx": [
53
],
"console:src/views/models/ModelHeader.tsx": [
35,
37
],
"console:src/views/playground/PlaygroundView/CodeGenerationPopup/CodeGenerationPopup.tsx": [
19
],
"console:src/views/playground/PlaygroundView/PlaygroundView.tsx": [
67,
70,
71
]
}
61 changes: 61 additions & 0 deletions its/ruling/src/test/expected/ts/courselit/typescript-S6767.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"courselit:apps/web/components/admin/courses/course-editor/index.tsx": [
74
],
"courselit:apps/web/components/admin/courses/index.tsx": [
62
],
"courselit:apps/web/components/admin/courses/lesson-editor.tsx": [
101
],
"courselit:apps/web/components/admin/design/layout-manager/index.tsx": [
109,
112
],
"courselit:apps/web/components/admin/design/menus/links/index.tsx": [
13,
15
],
"courselit:apps/web/components/admin/design/menus/links/navigation-link-item.tsx": [
52
],
"courselit:apps/web/components/admin/media/index.tsx": [
44
],
"courselit:apps/web/components/admin/media/media-selector/media-manager-dialog.tsx": [
19
],
"courselit:apps/web/components/admin/settings.tsx": [
94
],
"courselit:apps/web/components/img.tsx": [
7
],
"courselit:apps/web/components/public/base-layout/component-scaffold.tsx": [
144
],
"courselit:apps/web/components/public/base-layout/scaffold/drawer-content.tsx": [
37
],
"courselit:apps/web/components/public/base-layout/scaffold/index.tsx": [
102,
103,
105
],
"courselit:apps/web/components/public/lesson-viewer.tsx": [
72
],
"courselit:apps/web/components/public/session-button.tsx": [
14
],
"courselit:apps/web/pages/post/[id]/[slug].tsx": [
14
],
"courselit:packages/common-widgets/src/branding/widget.tsx": [
6
],
"courselit:packages/components-library/src/image.tsx": [
7,
8
]
}
66 changes: 66 additions & 0 deletions its/ruling/src/test/expected/ts/desktop/typescript-S6767.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"desktop:app/src/ui/app-menu/app-menu.tsx": [
41
],
"desktop:app/src/ui/branches/branch-list.tsx": [
30,
35,
45,
50
],
"desktop:app/src/ui/branches/pull-request-list.tsx": [
44
],
"desktop:app/src/ui/changes/changes-list.tsx": [
119
],
"desktop:app/src/ui/changes/sidebar.tsx": [
49,
54
],
"desktop:app/src/ui/check-runs/ci-check-run-list-item.tsx": [
18,
21
],
"desktop:app/src/ui/commit-message/commit-message-dialog.tsx": [
37,
77
],
"desktop:app/src/ui/diff/seamless-diff-switcher.tsx": [
43,
49,
55,
58,
61,
70,
76,
82,
88
],
"desktop:app/src/ui/diff/side-by-side-diff.tsx": [
79
],
"desktop:app/src/ui/diff/text-diff.tsx": [
147
],
"desktop:app/src/ui/history/selected-commit.tsx": [
41
],
"desktop:app/src/ui/lib/filter-list.tsx": [
62
],
"desktop:app/src/ui/notifications/pull-request-checks-failed.tsx": [
39,
40
],
"desktop:app/src/ui/notifications/pull-request-review.tsx": [
25,
29
],
"desktop:app/src/ui/relative-time.tsx": [
19
],
"desktop:app/src/ui/welcome/welcome.tsx": [
24
]
}
Loading