Skip to content

Commit 491f520

Browse files
authored
IBX-9319-TS-support (#8)
1 parent 5dd1482 commit 491f520

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
"prettier": "eslint-config-ibexa/prettier",
66
"dependencies": {},
77
"devDependencies": {
8-
"eslint-config-ibexa": "https://github.com/ibexa/eslint-config-ibexa.git#v1.0.0"
8+
"eslint-config-ibexa": "https://github.com/ibexa/eslint-config-ibexa.git#~v1.2.0",
9+
"@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa#~v1.0.0",
10+
"@types/react": "^18.3.11",
11+
"@types/react-dom": "^18.3.1"
912
},
1013
"scripts": {
1114
"test": "yarn prettier-test && yarn eslint-test",
1215
"fix": "yarn prettier-test --write && yarn eslint-test --fix",
13-
"eslint-test": "eslint \"./src/bundle/Resources/**/*.js\" \"./src/bundle/ui-dev/**/*.js\"",
14-
"prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,scss}\" \"./src/bundle/ui-dev/**/*.js\" --check"
16+
"eslint-test": "eslint \"./src/bundle/Resources/**/*.{js,ts}\"",
17+
"prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,ts,scss}\" --check"
1518
}
1619
}

tsconfig.eslint.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@ibexa/ts-config",
3+
"include": ["src/bundle/**/*"]
4+
}

0 commit comments

Comments
 (0)