Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Restore" ESLint support #714

Merged
merged 1 commit into from
Jun 26, 2024
Merged

"Restore" ESLint support #714

merged 1 commit into from
Jun 26, 2024

Conversation

JulianKniephoff
Copy link
Member

I removed our leftover config in #700 with a promise to bring ESLint back.
Well this is it, for now!

This introduces an ESLint config file in the new flat file format,
which will be required for ESLint >= 9. It is already supported in version 8, though,
which we are still stuck on because of the (unmaintained) config we are/were using.
I briefly tried to port this project over to @opencast/eslint-config-ts-react,
but the code said "no," basically. ;P

This has a few unfortunate consequences. See #713. I plan to address these in due time, though.

Note that this does not introduce automatic/live checking of the code
during development. I only added a call to the linter to the build command,
in turn making CI fail when there are warnings.
I created #712 to track the live thing if we want that.

@JulianKniephoff JulianKniephoff added the type:code-enhancement Internal improvements to the codebase label Jun 19, 2024
Copy link
Contributor

github-actions bot commented Jun 19, 2024

This pull request is deployed at test.admin-interface.opencast.org/714/2024-06-25_16-18-46/ .
It might take a few minutes for it to become available.

Copy link
Contributor

Use docker or podman to test this pull request locally.

Run test server using develop.opencast.org as backend:

podman run --rm -it -p 127.0.0.1:3000:3000 ghcr.io/opencast/opencast-admin-interface:pr-714

Specify a different backend like stable.opencast.org:

podman run --rm -it -p 127.0.0.1:3000:3000 -e PROXY_TARGET=https://stable.opencast.org ghcr.io/opencast/opencast-admin-interface:pr-714

It may take a few seconds for the interface to spin up.
It will then be available at http://127.0.0.1:3000.
For more options you can pass on to the proxy, take a look at the README.md.

Copy link
Member

@Arnei Arnei left a comment

Choose a reason for hiding this comment

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

Achieves what it sets out to do. I look forward to seeing the unfortunate consequences fixed as well

This comment was marked as resolved.

I removed our leftover config in opencast#700 with a promise to bring ESLint back.
Well this is it, for now!

This introduces an ESLint config file in the new flat file format,
which will be required for ESLint `>= 9`. It is already supported in version 8, though,
which we are still stuck on because of the (unmaintained) config we are/were using.
I briefly tried to port this project over to `@opencast/eslint-config-ts-react`,
but the code said "no," basically. ;P

This has a few unfortunate consequences. See opencast#713. I plan to address these in due time, though.

Note that this does **not** introduce automatic/live checking of the code
during development. I only added a call to the linter to the build command,
in turn making CI fail when there are warnings.
I created opencast#712 to track the live thing if we want that.
@Arnei Arnei merged commit 1b7e9ec into opencast:main Jun 26, 2024
5 checks passed
@JulianKniephoff JulianKniephoff deleted the eslint branch June 26, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:code-enhancement Internal improvements to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants