Skip to content

Commit a9c69c0

Browse files
committed
IBX-10066: Change lint config to 2.0
1 parent f9c7d7b commit a9c69c0

File tree

7 files changed

+24
-16
lines changed

7 files changed

+24
-16
lines changed

.eslintrc.json

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

.github/workflows/frontend-ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Frontend build
33
on:
44
push:
55
paths:
6-
- "**.js"
6+
- "**.[cm]?[jt]sx?"
77
- "**.scss"
88
branches:
99
- main
1010
- '[0-9]+.[0-9]+'
1111
pull_request:
1212
paths:
13-
- "**.js"
13+
- "**.[cm]?[jt]sx?"
1414
- "**.scss"
1515

1616
jobs:
@@ -23,6 +23,6 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: '18'
26+
node-version: '20'
2727
- run: yarn install
2828
- run: yarn test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/vendor
66
/yarn.lock
77
/var
8+
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
@@ -2,18 +2,20 @@
22
"name": "notifications",
33
"repository": "[email protected]:ibexa/notifications.git",
44
"private": true,
5-
"prettier": "eslint-config-ibexa/prettier",
5+
"prettier": "@ibexa/eslint-config/prettier",
66
"dependencies": {},
77
"devDependencies": {
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"
8+
"@ibexa/eslint-config": "https://github.com/ibexa/eslint-config-ibexa.git#~v2.0.0",
9+
"@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa#~v1.1.0",
10+
"@types/react": "^19.1.2",
11+
"@types/react-dom": "^19.1.2"
1212
},
1313
"scripts": {
1414
"test": "yarn prettier-test && yarn eslint-test",
1515
"fix": "yarn prettier-test --write && yarn eslint-test --fix",
16+
"ts-test": "tsc --noEmit",
1617
"eslint-test": "eslint \"./src/bundle/Resources/**/*.{js,ts}\"",
17-
"prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,ts,scss}\" --check"
18+
"prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,ts,scss}\" --check",
19+
"postinstall": "yarn ibexa-generate-tsconfig --use-root-project-tsconfig"
1820
}
1921
}

tsconfig.eslint.json

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

0 commit comments

Comments
 (0)