mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 13:39:22 +01:00
Run typescript with strict in CI, allow no new errors (#3050)
* Verify no new typescript code breaks "strict" compilation With this we have a file containing all current errors. As the code changes, we should not add more errors here. * remove some lines to show a failure * Add total count to script * Update blacklist after rebase * Remove some fails on purpose. * Attempt a reorder * Add missing file * Update script to write typegen * Refresh list * Attempt to use normal tsc * update blacklist * Store all errors * echo for typegen * Add check command * typegen 3 times * typegen 4 times * typegen 6 times * typegen 10 times * remove debug code * Update kea typegen to latest * Remove hacks
This commit is contained in:
parent
257d596038
commit
a978b28a68
2
.github/workflows/ci-backend.yml
vendored
2
.github/workflows/ci-backend.yml
vendored
@ -4,7 +4,7 @@ on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
code-quality:
|
||||
backend-code-quality:
|
||||
name: Code quality checks
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
6
.github/workflows/ci-frontend.yml
vendored
6
.github/workflows/ci-frontend.yml
vendored
@ -4,7 +4,7 @@ on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
code-quality:
|
||||
frontend-code-quality:
|
||||
name: Code quality checks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -26,3 +26,7 @@ jobs:
|
||||
|
||||
- name: Test with Jest
|
||||
run: yarn test
|
||||
|
||||
- name: Run typescript with strict
|
||||
run: |
|
||||
./bin/check-typescript-strict
|
||||
|
302
.ts-strict-blacklist
Normal file
302
.ts-strict-blacklist
Normal file
@ -0,0 +1,302 @@
|
||||
# This file contains a list of 'ignored' typescript errors. If any new ones are added they will cause ci breakage
|
||||
# Add lines via bin/check-typescript-strict | cut -d":" -f1
|
||||
Type.ts
|
||||
frontend/src/initKea.tsx(2,32)
|
||||
frontend/src/initKea.tsx(4,31)
|
||||
frontend/src/initKea.tsx(5,36)
|
||||
frontend/src/initKea.tsx(17,29)
|
||||
frontend/src/initKea.tsx(17,36)
|
||||
frontend/src/initKea.tsx(17,48)
|
||||
frontend/src/initKea.tsx(22,77)
|
||||
frontend/src/initKea.tsx(27,28)
|
||||
frontend/src/initKea.tsx(27,47)
|
||||
frontend/src/layout/TopContent/TopSelectors.tsx(69,53)
|
||||
frontend/src/layout/TopContent/TopSelectors.tsx(115,29)
|
||||
frontend/src/layout/TopContent/TopSelectors.tsx(133,26)
|
||||
frontend/src/layout/TopContent/topContentLogic.ts(24,9)
|
||||
frontend/src/layout/TopContent/topContentLogic.ts(24,46)
|
||||
frontend/src/layout/navigation/MainNavigation.tsx(17,20)
|
||||
frontend/src/layout/navigation/MainNavigation.tsx(18,20)
|
||||
frontend/src/layout/navigation/navigationLogic.ts(75,24)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(16,29)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(16,32)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(69,17)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(69,21)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(69,27)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(69,34)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(69,48)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(88,23)
|
||||
frontend/src/lib/components/Annotations/AnnotationMarker.tsx(288,17)
|
||||
frontend/src/lib/components/Annotations/Annotations.tsx(42,52)
|
||||
frontend/src/lib/components/Annotations/Annotations.tsx(52,36)
|
||||
frontend/src/lib/components/Annotations/Annotations.tsx(52,43)
|
||||
frontend/src/lib/components/Annotations/Annotations.tsx(61,36)
|
||||
frontend/src/lib/components/BackTo.tsx(27,15)
|
||||
frontend/src/lib/components/BackTo.tsx(27,18)
|
||||
frontend/src/lib/components/BillingToolbar.tsx(12,20)
|
||||
frontend/src/lib/components/BillingToolbar.tsx(12,59)
|
||||
frontend/src/lib/components/BillingToolbar.tsx(17,36)
|
||||
frontend/src/lib/components/BillingToolbar.tsx(21,63)
|
||||
frontend/src/lib/components/CommandPalette/CommandInput.tsx(5,25)
|
||||
frontend/src/lib/components/CommandPalette/CommandResults.tsx(76,33)
|
||||
frontend/src/lib/components/CommandPalette/index.tsx(9,24)
|
||||
frontend/src/lib/components/CommandPalette/index.tsx(26,33)
|
||||
frontend/src/lib/components/CommandPalette/index.tsx(63,87)
|
||||
frontend/src/lib/components/Link.tsx(27,32)
|
||||
frontend/src/lib/components/LinkButton.tsx(6,29)
|
||||
frontend/src/lib/components/PersonalAPIKeys/PersonalAPIKeys.tsx(134,13)
|
||||
frontend/src/lib/components/PersonalAPIKeys/personalAPIKeysLogic.ts(5,42)
|
||||
frontend/src/lib/components/PersonalAPIKeys/personalAPIKeysLogic.ts(32,29)
|
||||
frontend/src/lib/components/PropertyFilters/OperatorValueSelect.tsx(53,22)
|
||||
frontend/src/lib/components/PropertyFilters/OperatorValueSelect.tsx(63,72)
|
||||
frontend/src/lib/components/PropertyFilters/OperatorValueSelect.tsx(84,38)
|
||||
frontend/src/lib/components/PropertyFilters/PropertySelect.tsx(36,29)
|
||||
frontend/src/lib/components/PropertyFilters/PropertySelect.tsx(36,36)
|
||||
frontend/src/lib/components/SaveToDashboard/SaveToDashboard.tsx(44,27)
|
||||
frontend/src/lib/components/SelectBox.tsx(9,36)
|
||||
frontend/src/lib/components/SelectBox.tsx(60,104)
|
||||
frontend/src/lib/components/SelectBox.tsx(61,13)
|
||||
frontend/src/lib/components/SelectBox.tsx(133,29)
|
||||
frontend/src/lib/components/Table.tsx(10,42)
|
||||
frontend/src/lib/components/Table.tsx(22,42)
|
||||
frontend/src/lib/logic/selectBoxLogic.ts(43,21)
|
||||
frontend/src/lib/logic/selectBoxLogic.ts(49,35)
|
||||
frontend/src/lib/logic/selectBoxLogic.ts(55,37)
|
||||
frontend/src/lib/logic/selectBoxLogic.ts(61,29)
|
||||
frontend/src/lib/logic/selectBoxLogic.ts(67,35)
|
||||
frontend/src/lib/logic/selectBoxLogic.ts(68,41)
|
||||
frontend/src/lib/logic/selectBoxLogic.ts(68,68)
|
||||
frontend/src/lib/logic/selectBoxLogic.ts(83,47)
|
||||
frontend/src/lib/utils.tsx(584,29)
|
||||
frontend/src/lib/utils/eventUsageLogic.ts(144,22)
|
||||
frontend/src/lib/utils/eventUsageLogic.ts(145,21)
|
||||
frontend/src/lib/utils/eventUsageLogic.ts(147,21)
|
||||
frontend/src/loadPostHogJS.tsx(28,44)
|
||||
frontend/src/models/cohortsModel.ts(25,5)
|
||||
frontend/src/models/dashboardItemsModel.tsx(12,31)
|
||||
frontend/src/models/dashboardItemsModel.tsx(13,38)
|
||||
frontend/src/models/dashboardItemsModel.tsx(14,34)
|
||||
frontend/src/models/dashboardItemsModel.tsx(14,40)
|
||||
frontend/src/models/dashboardItemsModel.tsx(15,41)
|
||||
frontend/src/models/dashboardItemsModel.tsx(18,39)
|
||||
frontend/src/models/dashboardItemsModel.tsx(46,17)
|
||||
frontend/src/models/dashboardItemsModel.tsx(68,26)
|
||||
frontend/src/models/funnelsModel.ts(13,9)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(10,25)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(11,29)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(12,28)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(40,41)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(55,53)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(64,41)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(125,29)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(136,36)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(139,29)
|
||||
frontend/src/scenes/actions/ActionsTable.tsx(192,35)
|
||||
frontend/src/scenes/annotations/index.tsx(32,47)
|
||||
frontend/src/scenes/annotations/index.tsx(51,47)
|
||||
frontend/src/scenes/annotations/index.tsx(57,48)
|
||||
frontend/src/scenes/annotations/index.tsx(63,43)
|
||||
frontend/src/scenes/annotations/index.tsx(69,41)
|
||||
frontend/src/scenes/annotations/index.tsx(146,44)
|
||||
frontend/src/scenes/annotations/index.tsx(152,38)
|
||||
frontend/src/scenes/annotations/index.tsx(156,39)
|
||||
frontend/src/scenes/annotations/index.tsx(232,50)
|
||||
frontend/src/scenes/annotations/index.tsx(242,55)
|
||||
frontend/src/scenes/annotations/index.tsx(280,70)
|
||||
frontend/src/scenes/annotations/index.tsx(282,59)
|
||||
frontend/src/scenes/billing/Billing.tsx(6,24)
|
||||
frontend/src/scenes/billing/Billing.tsx(51,24)
|
||||
frontend/src/scenes/billing/Billing.tsx(53,61)
|
||||
frontend/src/scenes/billing/Billing.tsx(54,32)
|
||||
frontend/src/scenes/billing/Billing.tsx(57,43)
|
||||
frontend/src/scenes/billing/Billing.tsx(60,32)
|
||||
frontend/src/scenes/billing/Billing.tsx(60,55)
|
||||
frontend/src/scenes/billing/Billing.tsx(71,25)
|
||||
frontend/src/scenes/billing/Billing.tsx(84,24)
|
||||
frontend/src/scenes/billing/Billing.tsx(84,47)
|
||||
frontend/src/scenes/billing/Billing.tsx(86,72)
|
||||
frontend/src/scenes/billing/Billing.tsx(92,24)
|
||||
frontend/src/scenes/billing/Billing.tsx(92,46)
|
||||
frontend/src/scenes/billing/Billing.tsx(94,82)
|
||||
frontend/src/scenes/billing/Billing.tsx(96,40)
|
||||
frontend/src/scenes/billing/Billing.tsx(99,25)
|
||||
frontend/src/scenes/billing/billingLogic.ts(31,28)
|
||||
frontend/src/scenes/billing/billingLogic.ts(31,61)
|
||||
frontend/src/scenes/billing/billingLogic.ts(31,84)
|
||||
frontend/src/scenes/billing/billingLogic.ts(34,41)
|
||||
frontend/src/scenes/billing/billingLogic.ts(34,76)
|
||||
frontend/src/scenes/billing/billingLogic.ts(62,24)
|
||||
frontend/src/scenes/billing/billingLogic.ts(62,47)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(5,43)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(46,30)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(46,30)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(46,38)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(50,29)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(50,45)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(50,48)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(56,24)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(56,24)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(56,32)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(56,32)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(56,41)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(57,38)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(57,70)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(64,42)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(75,37)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(78,37)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(79,17)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(87,22)
|
||||
frontend/src/scenes/dashboard/DashboardItems.tsx(92,43)
|
||||
frontend/src/scenes/dashboard/Dashboards.tsx(27,42)
|
||||
frontend/src/scenes/dashboard/Dashboards.tsx(27,46)
|
||||
frontend/src/scenes/dashboard/Dashboards.tsx(56,46)
|
||||
frontend/src/scenes/events/Events.tsx(49,22)
|
||||
frontend/src/scenes/events/EventsVolumeTable.tsx(53,14)
|
||||
frontend/src/scenes/events/EventsVolumeTable.tsx(55,22)
|
||||
frontend/src/scenes/events/EventsVolumeTable.tsx(63,29)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(18,17)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(18,45)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(21,18)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(21,45)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(72,14)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(74,22)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(82,29)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(83,59)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(85,25)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(85,55)
|
||||
frontend/src/scenes/events/PropertiesVolumeTable.tsx(88,17)
|
||||
frontend/src/scenes/ingestion/frameworks/CodeSnippet.tsx(103,41)
|
||||
frontend/src/scenes/ingestion/ingestionLogic.ts(126,21)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(51,50)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(52,41)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(95,34)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(100,34)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(109,21)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(110,21)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(127,21)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(128,21)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(136,21)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(136,33)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(147,34)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(152,34)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(161,21)
|
||||
frontend/src/scenes/insights/ActionFilter/ActionFilterDropdown.tsx(162,21)
|
||||
frontend/src/scenes/insights/ActionSelectInfo.tsx(11,9)
|
||||
frontend/src/scenes/insights/EmptyStates.tsx(4,31)
|
||||
frontend/src/scenes/insights/EmptyStates.tsx(5,35)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/InsightHistoryPanel.tsx(63,29)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/InsightHistoryPanel.tsx(69,53)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/InsightHistoryPanel.tsx(92,55)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/InsightHistoryPanel.tsx(135,25)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/InsightHistoryPanel.tsx(148,25)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/InsightHistoryPanel.tsx(161,25)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/insightHistoryLogic.ts(10,5)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/insightHistoryLogic.ts(19,28)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/insightHistoryLogic.ts(20,22)
|
||||
frontend/src/scenes/insights/InsightHistoryPanel/insightHistoryLogic.ts(82,5)
|
||||
frontend/src/scenes/insights/InsightTabs/FunnelTab/FunnelTab.tsx(46,34)
|
||||
frontend/src/scenes/insights/InsightTabs/FunnelTab/FunnelTab.tsx(56,21)
|
||||
frontend/src/scenes/insights/InsightTabs/FunnelTab/FunnelTab.tsx(58,32)
|
||||
frontend/src/scenes/insights/InsightTabs/FunnelTab/funnelCommandLogic.ts(13,41)
|
||||
frontend/src/scenes/insights/InsightTabs/PathTab.tsx(41,14)
|
||||
frontend/src/scenes/insights/InsightTabs/PathTab.tsx(49,25)
|
||||
frontend/src/scenes/insights/InsightTabs/RetentionTab.tsx(28,22)
|
||||
frontend/src/scenes/insights/InsightTabs/RetentionTab.tsx(44,22)
|
||||
frontend/src/scenes/insights/InsightTabs/RetentionTab.tsx(97,47)
|
||||
frontend/src/scenes/insights/InsightTabs/RetentionTab.tsx(121,17)
|
||||
frontend/src/scenes/insights/InsightTabs/SessionTab.tsx(15,63)
|
||||
frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx(31,30)
|
||||
frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx(60,40)
|
||||
frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx(60,51)
|
||||
frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx(77,30)
|
||||
frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx(99,32)
|
||||
frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx(99,43)
|
||||
frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx(121,57)
|
||||
frontend/src/scenes/insights/insightCommandLogic.ts(10,41)
|
||||
frontend/src/scenes/insights/insightLogic.ts(68,27)
|
||||
frontend/src/scenes/insights/insightLogic.ts(69,39)
|
||||
frontend/src/scenes/insights/insightLogic.ts(73,31)
|
||||
frontend/src/scenes/insights/insightLogic.ts(82,47)
|
||||
frontend/src/scenes/insights/insightLogic.ts(88,23)
|
||||
frontend/src/scenes/insights/insightLogic.ts(88,26)
|
||||
frontend/src/scenes/instance/Licenses/index.tsx(63,31)
|
||||
frontend/src/scenes/instance/Licenses/logic.ts(38,17)
|
||||
frontend/src/scenes/instance/Licenses/logic.ts(43,5)
|
||||
frontend/src/scenes/instance/Licenses/logic.ts(47,71)
|
||||
frontend/src/scenes/instance/Licenses/logic.ts(53,104)
|
||||
frontend/src/scenes/instance/Licenses/logic.ts(53,116)
|
||||
frontend/src/scenes/instance/Licenses/logic.ts(55,32)
|
||||
frontend/src/scenes/instance/Licenses/logic.ts(56,30)
|
||||
frontend/src/scenes/organization/CreateOrganizationModal.tsx(45,17)
|
||||
frontend/src/scenes/organization/TeamMembers/Invites.tsx(101,17)
|
||||
frontend/src/scenes/organization/TeamMembers/Members.tsx(144,27)
|
||||
frontend/src/scenes/organization/TeamMembers/Members.tsx(217,13)
|
||||
frontend/src/scenes/organization/TeamMembers/Members.tsx(230,13)
|
||||
frontend/src/scenes/persons/Cohort.tsx(23,38)
|
||||
frontend/src/scenes/persons/Cohort.tsx(24,34)
|
||||
frontend/src/scenes/persons/Cohort.tsx(67,38)
|
||||
frontend/src/scenes/persons/Cohort.tsx(68,34)
|
||||
frontend/src/scenes/persons/Cohort.tsx(80,33)
|
||||
frontend/src/scenes/persons/Cohort.tsx(80,40)
|
||||
frontend/src/scenes/persons/Cohort.tsx(166,52)
|
||||
frontend/src/scenes/persons/Cohort.tsx(168,36)
|
||||
frontend/src/scenes/persons/CohortGroup.tsx(77,29)
|
||||
frontend/src/scenes/persons/CohortGroup.tsx(100,37)
|
||||
frontend/src/scenes/persons/CohortGroup.tsx(100,56)
|
||||
frontend/src/scenes/persons/CohortGroup.tsx(104,54)
|
||||
frontend/src/scenes/persons/CohortGroup.tsx(108,76)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(28,33)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(67,83)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(71,42)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(74,55)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(74,65)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(87,48)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(109,29)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(134,39)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(158,69)
|
||||
frontend/src/scenes/persons/Cohorts.tsx(167,37)
|
||||
frontend/src/scenes/persons/MergePerson.tsx(56,56)
|
||||
frontend/src/scenes/persons/personsLogic.ts(116,22)
|
||||
frontend/src/scenes/plugins/PluginImage.tsx(4,30)
|
||||
frontend/src/scenes/plugins/Repository.tsx(22,56)
|
||||
frontend/src/scenes/project/CreateProjectModal.tsx(46,17)
|
||||
frontend/src/scenes/project/Settings/DangerZone.tsx(24,17)
|
||||
frontend/src/scenes/retention/RetentionLineGraph.tsx(41,17)
|
||||
frontend/src/scenes/retention/RetentionLineGraph.tsx(72,32)
|
||||
frontend/src/scenes/retention/RetentionLineGraph.tsx(72,67)
|
||||
frontend/src/scenes/retention/RetentionLineGraph.tsx(73,26)
|
||||
frontend/src/scenes/retention/retentionTableLogic.ts(91,28)
|
||||
frontend/src/scenes/retention/retentionTableLogic.ts(94,34)
|
||||
frontend/src/scenes/retention/retentionTableLogic.ts(118,39)
|
||||
frontend/src/scenes/retention/retentionTableLogic.ts(140,23)
|
||||
frontend/src/scenes/retention/retentionTableLogic.ts(177,33)
|
||||
frontend/src/scenes/sceneLogic.ts(158,17)
|
||||
frontend/src/scenes/sceneLogic.ts(164,17)
|
||||
frontend/src/scenes/sceneLogic.ts(177,17)
|
||||
frontend/src/scenes/sceneLogic.ts(183,17)
|
||||
frontend/src/scenes/sceneLogic.ts(184,17)
|
||||
frontend/src/scenes/sceneLogic.ts(190,17)
|
||||
frontend/src/scenes/sceneLogic.ts(191,17)
|
||||
frontend/src/scenes/sceneLogic.ts(192,17)
|
||||
frontend/src/scenes/sessions/SessionDetails.tsx(55,51)
|
||||
frontend/src/scenes/sessions/SessionsView.tsx(199,29)
|
||||
frontend/src/scenes/sessions/filters/DurationFilter.tsx(27,34)
|
||||
frontend/src/scenes/sessions/filters/EventPropertyFilter.tsx(21,41)
|
||||
frontend/src/scenes/sessions/filters/SessionsFilterBox.tsx(43,13)
|
||||
frontend/src/scenes/sessions/filters/SessionsFilterBox.tsx(44,13)
|
||||
frontend/src/scenes/sessions/filters/SessionsFilterBox.tsx(78,13)
|
||||
frontend/src/scenes/sessions/filters/SessionsFilterBox.tsx(79,13)
|
||||
frontend/src/scenes/sessions/filters/SessionsFilterBox.tsx(87,13)
|
||||
frontend/src/scenes/sessions/filters/SessionsFilterBox.tsx(116,13)
|
||||
frontend/src/scenes/sessions/filters/SessionsFilterBox.tsx(173,9)
|
||||
frontend/src/scenes/sessions/sessionsPlayLogic.ts(155,61)
|
||||
frontend/src/scenes/teamLogic.tsx(10,5)
|
||||
frontend/src/toolbar/ToolbarApp.tsx(35,74)
|
||||
frontend/src/toolbar/actions/SelectorCount.tsx(2,38)
|
||||
frontend/src/toolbar/actions/actionsTabLogic.tsx(104,21)
|
||||
frontend/src/toolbar/actions/actionsTabLogic.tsx(112,17)
|
||||
frontend/src/toolbar/elements/ElementInfo.tsx(22,22)
|
||||
frontend/src/toolbar/elements/ElementInfo.tsx(60,38)
|
||||
frontend/src/toolbar/elements/elementsLogic.ts(14,40)
|
||||
frontend/src/toolbar/elements/heatmapLogic.ts(12,62)
|
||||
frontend/src/toolbar/utils.ts(5,38)
|
23
bin/check-typescript-strict
Executable file
23
bin/check-typescript-strict
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Refreshing typegen and running 'tsc -p tsconfig.strict.json'..."
|
||||
echo ""
|
||||
|
||||
yarn typegen:write &> /dev/null
|
||||
|
||||
ALL_ERRORS=$(yarn typescript:check --strict 2> /dev/null | grep error | grep frontend)
|
||||
ERRORS_COUNT=$(echo "${ALL_ERRORS}" | wc -l)
|
||||
NEW_ERRORS=$(echo "${ALL_ERRORS}" | grep --invert-match --fixed-strings --file=.ts-strict-blacklist)
|
||||
NEW_ERRORS_COUNT="$(echo "${NEW_ERRORS}" | wc -l)"
|
||||
|
||||
echo "In total there are ${ERRORS_COUNT} typescript errors."
|
||||
|
||||
if test -z "${NEW_ERRORS}"
|
||||
then
|
||||
echo "No new typescript errors found in this PR! 🚀"
|
||||
exit 0
|
||||
else
|
||||
echo "Found ${NEW_ERRORS_COUNT} new typescript errors in this PR! 💥"
|
||||
echo "${NEW_ERRORS}"
|
||||
exit 1
|
||||
fi
|
@ -26,7 +26,10 @@
|
||||
"prettier": "prettier --write \"./frontend/src/**/*.{js,ts,tsx,json,yml,css,scss}\"",
|
||||
"prettier:check": "prettier --check \"./**/*.{js,ts,tsx,json,yml,css,scss}\"",
|
||||
"typescript:check": "tsc",
|
||||
"typescript:clean": "tsc --build --clean",
|
||||
"eslint": "eslint frontend/src",
|
||||
"typegen:write": "kea-typegen write",
|
||||
"typegen:check": "kea-typegen check",
|
||||
"typegen:watch": "kea-typegen watch",
|
||||
"format-python": "black . && isort ."
|
||||
},
|
||||
@ -109,7 +112,7 @@
|
||||
"html-webpack-plugin": "^4.4.1",
|
||||
"husky": "^4.3.0",
|
||||
"jest": "^26.6.3",
|
||||
"kea-typegen": "^0.3.5",
|
||||
"kea-typegen": "^0.5.1",
|
||||
"less": "^3.12.2",
|
||||
"less-loader": "^7.0.2",
|
||||
"lint-staged": "~10.2.13",
|
||||
|
@ -6917,10 +6917,10 @@ kea-router@^0.5.1:
|
||||
dependencies:
|
||||
url-pattern "^1.0.3"
|
||||
|
||||
kea-typegen@^0.3.5:
|
||||
version "0.3.5"
|
||||
resolved "https://registry.yarnpkg.com/kea-typegen/-/kea-typegen-0.3.5.tgz#9fbaf33af0ac0293fd9e6a73980bbc31baa83875"
|
||||
integrity sha512-qPsj8hGSzo/nj5Ehdrwu0+xN7jc1WUL47tsM7yuJv/onNYQKOURb42yT9OMR4AqbBx4p6BfL2pqaNvrqwRnsFA==
|
||||
kea-typegen@^0.5.1:
|
||||
version "0.5.1"
|
||||
resolved "https://registry.yarnpkg.com/kea-typegen/-/kea-typegen-0.5.1.tgz#d1ee5aaf0b7edb0f909ac31e08f5ea2898c40a13"
|
||||
integrity sha512-Rxt6ygp9nJbjp9X7ZIQjwEzgK48k6/kRIfzmx2sQRaz32af2o2TCuwL69UwMG7bx1Y9feEAizDxTYIdmYd5rKw==
|
||||
dependencies:
|
||||
"@wessberg/ts-clone-node" "0.3.8"
|
||||
prettier "^2.0.5"
|
||||
|
Loading…
Reference in New Issue
Block a user