-
Notifications
You must be signed in to change notification settings - Fork 667
package.json: add lint-plugin script #1844
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
package.json: add lint-plugin script #1844
Conversation
|
/retest |
|
Isn't this over-complicated? Please note, there is already related PR: #1411 |
|
Adding a new eslint script without a path would be very flexible and solve your use case: Then do: or be more specific to test a single file: |
|
yes that is much easier (although without autocompletion)
|
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
Tests passed. Can we proceed with this one? |
@mareklibra Right, that's the drawback of ESLint CLI when compared to Jest - ESLint requires an explicit path to work with, while Jest falls back to current work dir if the path isn't specified. In essence, this makes the reuse of ESLint scripts/commands harder.
LGTM, but note that this causes the project-specific |
|
/lgtm |
Renamed to |
|
/test e2e-aws |
frontend/package.json
Outdated
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.
I'd prefer to go with @christianvogt's suggestion:
Adding a new eslint script without a path would be very flexible and solve your use case:
"eslint": "eslint --ext .js,.jsx,.ts,.tsx --color",
Please replace lintme with eslint. All developers should use the same eslint script for unified experience.
The fact that eslint script in package.json over-shadows ./node_modules/.bin/eslint delegation (yarn run) is not a problem, so no need to come up with alternative script names like lintme.
frontend/package.json
Outdated
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.
This should be yarn eslint .
|
/assign |
|
reverted back to |
|
/test e2e-aws-console-olm |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: suomiy, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Faster and easier linting for plugin development. Usage:
yarn lintme packages/kubevirt-plugin