b6e582c53e
* add base config for all the TS projects * all the project use new tsconfig.project.json * compile test files in the high-level tsconfig.json * fix TS error in maps plugin * fix TS error in infra plugin * exclude mote test and test until folders * uptime. do not import test code within prod code * expressions. do not import test code within prod code * data: export mocks from high level folder * task_manager: comply with es client typings * infra: remove unused enzyme_helpers * check_ts_project requires "include" key * ts_check should handle parent configs * all ts configs should extend base one * exclude test folders from plugins * update patterns to fix ts_check errors * Apply suggestions from code review Co-authored-by: Constance <constancecchen@users.noreply.github.com> * uptime: MountWithReduxProvider to test helpers Co-authored-by: Constance <constancecchen@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
215 lines
9.6 KiB
JSON
215 lines
9.6 KiB
JSON
{
|
|
"extends": "./tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"incremental": false
|
|
},
|
|
"include": [
|
|
"kibana.d.ts",
|
|
"typings/**/*",
|
|
|
|
"src/cli/**/*",
|
|
"src/dev/**/*",
|
|
"src/fixtures/**/*",
|
|
"src/legacy/**/*",
|
|
"src/optimize/**/*",
|
|
|
|
"x-pack/mocks.ts",
|
|
"x-pack/typings/**/*",
|
|
"x-pack/tasks/**/*",
|
|
"x-pack/plugins/cases/**/*",
|
|
"x-pack/plugins/lists/**/*",
|
|
"x-pack/plugins/security_solution/**/*",
|
|
|
|
// tests
|
|
"src/**/*.test.ts",
|
|
"src/**/*.test.tsx",
|
|
"src/**/integration_tests/*",
|
|
"src/**/tests/*",
|
|
// mocks
|
|
"src/**/__mocks__/*",
|
|
"src/**/mock/*",
|
|
"src/**/mocks/*",
|
|
"src/**/*/mock.ts",
|
|
"src/**/*/mocks.ts",
|
|
"src/**/*/mocks.tsx",
|
|
"src/**/*.mock.ts",
|
|
"src/**/*.mock.tsx",
|
|
"src/**/*.mocks.ts",
|
|
"src/**/*.mocks.tsx",
|
|
|
|
// test helpers
|
|
"src/**/test_helpers/*",
|
|
"src/**/test_utils/*",
|
|
"src/**/*/test_utils.ts",
|
|
"src/**/*/test_helpers.ts",
|
|
"src/**/*/test_helper.tsx",
|
|
|
|
// stubs
|
|
"src/**/*/stubs.ts",
|
|
"src/**/*.stub.ts",
|
|
"src/**/*.stories.tsx",
|
|
"src/**/*/_mock_handler_arguments.ts",
|
|
|
|
// tests
|
|
"x-pack/plugins/**/*.test.ts",
|
|
"x-pack/plugins/**/*.test.tsx",
|
|
"x-pack/plugins/**/test/**/*",
|
|
"x-pack/plugins/**/tests/*",
|
|
"x-pack/plugins/**/integration_tests/*",
|
|
"x-pack/plugins/**/tests_client_integration/*",
|
|
"x-pack/plugins/**/__fixtures__/*",
|
|
"x-pack/plugins/**/__stories__/*",
|
|
"x-pack/plugins/**/__jest__/**/*",
|
|
|
|
// mocks
|
|
"x-pack/plugins/**/__mocks__/*",
|
|
"x-pack/plugins/**/mock/*",
|
|
"x-pack/plugins/**/mocks/*",
|
|
"x-pack/plugins/**/*/mock.ts",
|
|
"x-pack/plugins/**/*/mocks.ts",
|
|
"x-pack/plugins/**/*/mocks.tsx",
|
|
"x-pack/plugins/**/*.mock.ts",
|
|
"x-pack/plugins/**/*.mock.tsx",
|
|
"x-pack/plugins/**/*.mocks.ts",
|
|
"x-pack/plugins/**/*.mocks.tsx",
|
|
|
|
// test helpers
|
|
"x-pack/plugins/**/test_helpers/*",
|
|
"x-pack/plugins/**/test_utils/*",
|
|
"x-pack/plugins/**/*/test_utils.ts",
|
|
"x-pack/plugins/**/*/test_helper.tsx",
|
|
"x-pack/plugins/**/*/test_helpers.ts",
|
|
"x-pack/plugins/ui_actions_enhanced/public/components/action_wizard/test_data.tsx",
|
|
"x-pack/plugins/uptime/server/lib/requests/helper.ts",
|
|
"x-pack/plugins/uptime/public/lib/helper/rtl_helpers.tsx",
|
|
"x-pack/plugins/uptime/public/lib/helper/enzyme_helpers.tsx",
|
|
"x-pack/plugins/apm/server/utils/test_helpers.tsx",
|
|
"x-pack/plugins/apm/public/utils/testHelpers.tsx",
|
|
|
|
// stubs
|
|
"x-pack/plugins/**/*/stubs.ts",
|
|
"x-pack/plugins/**/*.stub.ts",
|
|
"x-pack/plugins/**/*.stories.tsx",
|
|
"x-pack/plugins/**/*/_mock_handler_arguments.ts"
|
|
],
|
|
"exclude": [
|
|
"x-pack/plugins/security_solution/cypress/**/*"
|
|
],
|
|
"references": [
|
|
{ "path": "./src/core/tsconfig.json" },
|
|
{ "path": "./src/plugins/telemetry_management_section/tsconfig.json" },
|
|
{ "path": "./src/plugins/advanced_settings/tsconfig.json" },
|
|
{ "path": "./src/plugins/apm_oss/tsconfig.json" },
|
|
{ "path": "./src/plugins/bfetch/tsconfig.json" },
|
|
{ "path": "./src/plugins/charts/tsconfig.json" },
|
|
{ "path": "./src/plugins/console/tsconfig.json" },
|
|
{ "path": "./src/plugins/dashboard/tsconfig.json" },
|
|
{ "path": "./src/plugins/discover/tsconfig.json" },
|
|
{ "path": "./src/plugins/data/tsconfig.json" },
|
|
{ "path": "./src/plugins/dev_tools/tsconfig.json" },
|
|
{ "path": "./src/plugins/embeddable/tsconfig.json" },
|
|
{ "path": "./src/plugins/es_ui_shared/tsconfig.json" },
|
|
{ "path": "./src/plugins/expressions/tsconfig.json" },
|
|
{ "path": "./src/plugins/home/tsconfig.json" },
|
|
{ "path": "./src/plugins/inspector/tsconfig.json" },
|
|
{ "path": "./src/plugins/kibana_legacy/tsconfig.json" },
|
|
{ "path": "./src/plugins/kibana_overview/tsconfig.json" },
|
|
{ "path": "./src/plugins/kibana_react/tsconfig.json" },
|
|
{ "path": "./src/plugins/kibana_usage_collection/tsconfig.json" },
|
|
{ "path": "./src/plugins/kibana_utils/tsconfig.json" },
|
|
{ "path": "./src/plugins/legacy_export/tsconfig.json" },
|
|
{ "path": "./src/plugins/management/tsconfig.json" },
|
|
{ "path": "./src/plugins/maps_legacy/tsconfig.json" },
|
|
{ "path": "./src/plugins/navigation/tsconfig.json" },
|
|
{ "path": "./src/plugins/newsfeed/tsconfig.json" },
|
|
{ "path": "./src/plugins/region_map/tsconfig.json" },
|
|
{ "path": "./src/plugins/saved_objects/tsconfig.json" },
|
|
{ "path": "./src/plugins/saved_objects_management/tsconfig.json" },
|
|
{ "path": "./src/plugins/saved_objects_tagging_oss/tsconfig.json" },
|
|
{ "path": "./src/plugins/security_oss/tsconfig.json" },
|
|
{ "path": "./src/plugins/share/tsconfig.json" },
|
|
{ "path": "./src/plugins/spaces_oss/tsconfig.json" },
|
|
{ "path": "./src/plugins/telemetry/tsconfig.json" },
|
|
{ "path": "./src/plugins/telemetry_collection_manager/tsconfig.json" },
|
|
{ "path": "./src/plugins/tile_map/tsconfig.json" },
|
|
{ "path": "./src/plugins/timelion/tsconfig.json" },
|
|
{ "path": "./src/plugins/ui_actions/tsconfig.json" },
|
|
{ "path": "./src/plugins/url_forwarding/tsconfig.json" },
|
|
{ "path": "./src/plugins/usage_collection/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_default_editor/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_markdown/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_metric/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_table/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_tagcloud/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_timelion/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_timeseries/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_vislib/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_vega/tsconfig.json" },
|
|
{ "path": "./src/plugins/vis_type_xy/tsconfig.json" },
|
|
{ "path": "./src/plugins/visualizations/tsconfig.json" },
|
|
{ "path": "./src/plugins/visualize/tsconfig.json" },
|
|
{ "path": "./src/plugins/index_pattern_management/tsconfig.json" },
|
|
{ "path": "./src/plugins/index_pattern_field_editor/tsconfig.json" },
|
|
|
|
{ "path": "./x-pack/plugins/actions/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/alerting/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/apm/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/beats_management/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/canvas/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/cloud/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/console_extensions/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/data_enhanced/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/dashboard_mode/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/discover_enhanced/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/drilldowns/url_drilldown/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/embeddable_enhanced/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/encrypted_saved_objects/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/enterprise_search/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/event_log/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/features/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/file_upload/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/fleet/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/global_search_bar/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/global_search_providers/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/global_search/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/graph/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/grokdebugger/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/infra/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/ingest_pipelines/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/lens/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/license_management/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/licensing/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/logstash/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/maps_legacy_licensing/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/maps/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/ml/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/monitoring/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/observability/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/osquery/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/painless_lab/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/saved_objects_tagging/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/searchprofiler/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/security/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/snapshot_restore/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/spaces/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/stack_alerts/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/task_manager/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/telemetry_collection_xpack/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/timelines/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/transform/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/translations/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/triggers_actions_ui/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/ui_actions_enhanced/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/upgrade_assistant/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/runtime_fields/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/index_management/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/watcher/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/rollup/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/remote_clusters/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/cross_cluster_replication/tsconfig.json"},
|
|
{ "path": "./x-pack/plugins/index_lifecycle_management/tsconfig.json"},
|
|
{ "path": "./x-pack/plugins/uptime/tsconfig.json" },
|
|
{ "path": "./x-pack/plugins/xpack_legacy/tsconfig.json" }
|
|
]
|
|
}
|