From 03d0c71922605cb29a6aca88fd2a4e8ded87cc65 Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Wed, 11 Dec 2024 14:26:22 +0100 Subject: [PATCH] IBX-9319-TS-support --- package.json | 9 ++++++--- tsconfig.eslint.json | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/package.json b/package.json index 3c8578a..e334b02 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,15 @@ "prettier": "eslint-config-ibexa/prettier", "dependencies": {}, "devDependencies": { - "eslint-config-ibexa": "https://github.com/ibexa/eslint-config-ibexa.git#~v1.1.1" + "eslint-config-ibexa": "https://github.com/ibexa/eslint-config-ibexa.git#~v1.2.0", + "@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa#~v1.0.0", + "@types/react": "^18.3.11", + "@types/react-dom": "^18.3.1" }, "scripts": { "test": "yarn prettier-test && yarn eslint-test", "fix": "yarn prettier-test --write && yarn eslint-test --fix", - "eslint-test": "eslint \"./src/bundle/Resources/**/*.js\" \"./src/bundle/ui-dev/**/*.js\"", - "prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,scss}\" \"./src/bundle/ui-dev/**/*.js\" --check" + "eslint-test": "eslint \"./src/bundle/Resources/**/*.{js,ts}\"", + "prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,ts,scss}\" --check" } } diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 0000000..508b168 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "@ibexa/ts-config", + "include": ["src/bundle/**/*"] +}