Skip to content

Conversation

astorm
Copy link
Contributor

@astorm astorm commented Nov 23, 2021

Adds eslint to CLI project, adjusts existing code to pass eslint rules.

I'm not tied to any particular ruleset, (other than a ruleset that is applied by robots ;)), so suggestions for additional entries to rules: or even extending something other than standard is welcome.

@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label Nov 23, 2021
@ghost
Copy link

ghost commented Nov 23, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-12-07T02:51:13.133+0000

  • Duration: 7 min 27 sec

  • Commit: 8a9b1d1

Test stats 🧪

Test Results
Failed 0
Passed 78
Skipped 0
Total 78

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@astorm astorm requested review from estolfo and trentm November 23, 2021 20:15
@astorm astorm marked this pull request as ready for review November 23, 2021 20:15
Copy link
Member

@trentm trentm left a comment

Choose a reason for hiding this comment

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

Nice. Works for me.

I'm not tied to any particular ruleset

If you wanted to consider prettier, rather than standard for code formatting you are welcome to copy https://github.com/trentm/node-dashdash/blob/master/.eslintrc.json
I think Kibana is using prettier.

But using standard is all good.

(other than a ruleset that is applied by robots ;))

Is that referring to the 'no-control-regex': 0 you have in .eslintrc.js?

My limited understanding is that if one is using stock standard that you could reduce the devDependencies to just "standard": "..." and the "scripts" to:

    "lint": "standard",
    "lint:fix": "standard --fix",

as we have in apm-agent-nodejs.git

@astorm
Copy link
Contributor Author

astorm commented Dec 7, 2021

(other than a ruleset that is applied by robots ;))
Is that referring to the 'no-control-regex': 0 you have in .eslintrc.js?

Nope, just referring to a general principle that style guidelines that aren't enforced by a program/robot will always end up drifting or being applied inconsistently.

@astorm astorm merged commit 6fe312e into main Dec 7, 2021
@astorm astorm deleted the astorm/cli-eslint branch December 7, 2021 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aws-λ-extension AWS Lambda Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants