From 920426443784621b0e55ad87fd0d76d8564eee8f Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Fri, 29 Nov 2024 16:11:30 +0100 Subject: [PATCH] After tests --- package.json | 3 ++- src/bundle/ui-dev/src/modules/common/thumbnail/thumbnail.tsx | 4 ++-- tsconfig.eslint.json | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/package.json b/package.json index f172bf5eb1..920e01c39b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "prettier": "eslint-config-ibexa/prettier", "dependencies": {}, "devDependencies": { - "eslint-config-ibexa": "https://github.com/ibexa/eslint-config-ibexa.git#IBX-9109-enabling-typescript" + "eslint-config-ibexa": "https://github.com/ibexa/eslint-config-ibexa.git#IBX-9109-enabling-typescript", + "@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa#IBX-9109-enabling-typescript" }, "scripts": { "test": "yarn prettier-test && yarn eslint-test", diff --git a/src/bundle/ui-dev/src/modules/common/thumbnail/thumbnail.tsx b/src/bundle/ui-dev/src/modules/common/thumbnail/thumbnail.tsx index 0df36f7347..c41f101a8c 100644 --- a/src/bundle/ui-dev/src/modules/common/thumbnail/thumbnail.tsx +++ b/src/bundle/ui-dev/src/modules/common/thumbnail/thumbnail.tsx @@ -2,8 +2,8 @@ import React from 'react'; import Icon from '../icon/icon'; import ThumbnailProps from './thumbnail.types'; -const Thumbnail = ({ thumbnailData, iconExtraClasses, contentTypeIconPath }: ThumbnailProps) => { - const renderContentTypeIcon = (): JSX.Element | null => { +const Thumbnail = ({ thumbnailData, iconExtraClasses, contentTypeIconPath }: ThumbnailProps): React.JSX.Element => { + const renderContentTypeIcon = (): React.JSX.Element | null => { if (!contentTypeIconPath) { return null; } diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 0000000000..0df548a5a8 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "@ibexa/ts-config", + "include": ["src/**/*"] +}