-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore(cli): change helper folder structure #240
chore(cli): change helper folder structure #240
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
a22c015
to
8db177e
Compare
yarn eslint packages/field-plugin --ignore-pattern "packages/field-plugin/helpers/" | ||
yarn workspaces foreach --include "helper-*" run lint |
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.
- line 27: ignore helpers from eslint
- line 28: run eslint for helpers with their own configs
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.
Why should they run separately?
Does this not solve the problem:
helper-vue3/.eslintrc.json
{
"root": true,
...
}
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.
It didn't work. As far as I understand, the moment you run yarn eslint packages/field-plugin
, it loads the root eslint config and apply it to all the files below. That root: true
prevents your eslint process from "going up". So I had to separate them to make them work. Maybe I should just ignore the helpers in the root eslint config, so that I don't have to explicitly exclude them in the command line?
@BibiSebi this has changed since you worked on it :) |
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.
Pretty straightforward; I just wonder about the eslint config
yarn eslint packages/field-plugin --ignore-pattern "packages/field-plugin/helpers/" | ||
yarn workspaces foreach --include "helper-*" run lint |
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.
Why should they run separately?
Does this not solve the problem:
helper-vue3/.eslintrc.json
{
"root": true,
...
}
What?
This PR changes the folder structure for the helpers as discussed in #224
Why?
JIRA: EXT-1887
How to test? (optional)