Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

20 changes: 18 additions & 2 deletions .github/workflows/frontend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@ name: Frontend build

on:
push:
paths:
- "**.cjs"
- "**.mjs"
- "**.js"
- "**.jsx"
- "**.ts"
- "**.tsx"
- "**.scss"
branches:
- main
- '[0-9]+.[0-9]+'
pull_request: ~
pull_request:
paths:
- "**.cjs"
- "**.mjs"
- "**.js"
- "**.jsx"
- "**.ts"
- "**.tsx"
- "**.scss"
Copy link

Copilot AI May 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: change to "**/*.scss" under pull_request so SCSS files in subfolders trigger the workflow.

Suggested change
- "**.scss"
- "**/*.scss"

Copilot uses AI. Check for mistakes.

jobs:
frontend-test:
Expand All @@ -17,6 +33,6 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
- run: yarn install
- run: yarn test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
node_modules/
yarn.lock
/var
tsconfig.json
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import getIbexaConfig from '@ibexa/eslint-config/eslint';

export default [
...getIbexaConfig(),
];
7 changes: 7 additions & 0 deletions ibexa.tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@ibexa/ts-config",
"include": [
"src/bundle/**/*.ts",
"src/bundle/**/*.tsx"
]
}
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
"version": "1.0.0",
"repository": "https://github.com/ezsystems/ezplatform-fieldtype-richtext.git",
"private": true,
"prettier": "eslint-config-ibexa/prettier",
"prettier": "@ibexa/eslint-config/prettier",
"dependencies": {},
"devDependencies": {
"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"
"@ibexa/eslint-config": "https://github.com/ibexa/eslint-config-ibexa.git#~v2.0.0",
"@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa#~v1.1.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2"
},
"scripts": {
"test": "yarn prettier-test && yarn eslint-test",
"fix": "yarn prettier-test --write && yarn eslint-test --fix",
"ts-test": "tsc --noEmit",
"eslint-test": "eslint \"./src/bundle/Resources/**/*.{js,ts}\"",
"prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,ts,scss}\" --check"
"prettier-test": "yarn prettier \"./src/bundle/Resources/**/*.{js,ts,scss}\" --check",
"postinstall": "yarn ibexa-generate-tsconfig --use-root-project-tsconfig"
}
}
4 changes: 0 additions & 4 deletions tsconfig.eslint.json

This file was deleted.

Loading