Skip to content

Commit 1ea1985

Browse files
committed
IBX-10066: Change lint config to 2.0
1 parent f706932 commit 1ea1985

File tree

7 files changed

+29
-15
lines changed

7 files changed

+29
-15
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/frontend-ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ name: Frontend build
22

33
on:
44
push:
5+
paths:
6+
- "**.[cm]?[jt]sx?"
7+
- "**.scss"
58
branches:
69
- main
710
- '[0-9]+.[0-9]+'
8-
pull_request: ~
11+
pull_request:
12+
paths:
13+
- "**.[cm]?[jt]sx?"
14+
- "**.scss"
915

1016
jobs:
1117
frontend-test:
@@ -17,6 +23,6 @@ jobs:
1723
- uses: actions/checkout@v4
1824
- uses: actions/setup-node@v4
1925
with:
20-
node-version: '18'
26+
node-version: '20'
2127
- run: yarn install
2228
- run: yarn test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ yarn-error.log
88
package-lock.json
99
.DS_Store
1010
/composer.lock
11+
tsconfig.json

eslint.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import getIbexaConfig from '@ibexa/eslint-config/eslint';
2+
3+
export default [
4+
...getIbexaConfig(),
5+
];

ibexa.tsconfig.json

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

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
"description": "Ibexa Matrix Fieldtype",
55
"repository": "https://github.com/ezsystems/ezplatform-matrix-fieldtype.git",
66
"private": true,
7-
"prettier": "eslint-config-ibexa/prettier",
7+
"prettier": "@ibexa/eslint-config/prettier",
88
"dependencies": {},
99
"devDependencies": {
10-
"eslint-config-ibexa": "https://github.com/ibexa/eslint-config-ibexa.git#~v1.2.0",
11-
"@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa#~v1.0.0",
12-
"@types/react": "^18.3.11",
13-
"@types/react-dom": "^18.3.1"
10+
"@ibexa/eslint-config": "https://github.com/ibexa/eslint-config-ibexa.git#~v2.0.0",
11+
"@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa#~v1.1.0",
12+
"@types/react": "^19.1.2",
13+
"@types/react-dom": "^19.1.2"
1414
},
1515
"scripts": {
1616
"test": "yarn prettier-test && yarn eslint-test",
1717
"fix": "yarn prettier-test --write && yarn eslint-test --fix",
18+
"ts-test": "tsc --noEmit",
1819
"eslint-test": "eslint \"./src/bundle/Resources/**/*.{js,ts}\"",
19-
"prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,ts,scss}\" --check"
20+
"prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,ts,scss}\" --check",
21+
"postinstall": "yarn ibexa-generate-tsconfig --use-root-project-tsconfig"
2022
}
2123
}

tsconfig.eslint.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)