-
Notifications
You must be signed in to change notification settings - Fork 991
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
Fixes #37636 - remove usage of "@theforeman/test" #10239
Draft
MariaAga
wants to merge
3
commits into
theforeman:develop
Choose a base branch
from
MariaAga:remove-foreman-test-import
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MariaAga
force-pushed
the
remove-foreman-test-import
branch
from
July 9, 2024 12:59
ce4011b
to
bd82e9d
Compare
MariaAga
force-pushed
the
remove-foreman-test-import
branch
10 times, most recently
from
July 15, 2024 13:27
915675e
to
f2c89fd
Compare
MariaAga
force-pushed
the
remove-foreman-test-import
branch
15 times, most recently
from
July 17, 2024 14:23
b37548d
to
f757e1d
Compare
MariaAga
force-pushed
the
remove-foreman-test-import
branch
4 times, most recently
from
July 18, 2024 16:12
0382a92
to
49acfba
Compare
MariaAga
force-pushed
the
remove-foreman-test-import
branch
2 times, most recently
from
July 18, 2024 18:34
2be51ef
to
91d4309
Compare
MariaAga
force-pushed
the
remove-foreman-test-import
branch
from
September 11, 2024 15:27
91d4309
to
a249de8
Compare
MariaAga
commented
Sep 12, 2024
MariaAga
commented
Sep 12, 2024
MariaAga
commented
Sep 12, 2024
MariaAga
commented
Sep 12, 2024
MariaAga
commented
Sep 12, 2024
MariaAga
commented
Sep 12, 2024
MariaAga
changed the title
Fixes #37636 - remove "@theforeman/test" imports
Fixes #37636 - remove usage of "@theforeman/test"
Sep 13, 2024
MariaAga
force-pushed
the
remove-foreman-test-import
branch
from
September 13, 2024 14:25
a249de8
to
c12831e
Compare
MariaAga
force-pushed
the
remove-foreman-test-import
branch
from
September 17, 2024 12:16
c12831e
to
2f92ad0
Compare
MariaAga
commented
Oct 9, 2024
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
function linkEslintPlugin(runPath = process.cwd()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check npm link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm link too complicated (need package.json with specific naming, deletes files sometimes) while creating a symlink is simple.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Working towards removing theforeman/test, context: https://community.theforeman.org/t/do-we-want-to-keep-foreman-js/37644
had to do all 3 in one pr since:
[Fixes #37636 - remove "@theforeman/test" imports] - relying on jest config having resolved foremanReact into a valid path, otherwise I would have had to use relative path instead and thats too much work
[Fixes #37637 - Test plugins from foreman core] - for some reason npm lint needs
@theforeman/test
package, so it was easier to stop using it instead of working around it. left some of the theforeman eslint packages to remove later, as this commit only deals with whats necessary to get lint to work after removing theforeman/test.eslintrc turned into script/lint/lint_core_config.js, no changes except for formatting