-
Notifications
You must be signed in to change notification settings - Fork 993
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
base: develop
Are you sure you want to change the base?
Conversation
ce4011b
to
bd82e9d
Compare
915675e
to
f2c89fd
Compare
b37548d
to
f757e1d
Compare
0382a92
to
49acfba
Compare
2be51ef
to
91d4309
Compare
91d4309
to
a249de8
Compare
c12831e
to
2f92ad0
Compare
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.
2f92ad0
to
727a769
Compare
"path-browserify": "^1.0.1", | ||
"prettier": "^1.19.1", | ||
"pretty-format": "26.6.2", | ||
"react-dnd-test-backend": "^9.4.0", | ||
"react-redux-test-utils": "^0.2.0", |
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.
remove
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