Skip to content
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

Add information on how to format and lint k6 scripts #192

Open
na-- opened this issue Jan 20, 2021 · 4 comments
Open

Add information on how to format and lint k6 scripts #192

na-- opened this issue Jan 20, 2021 · 4 comments
Labels
Area: OSS Content Improvements or additions to community/oss documentation

Comments

@na--
Copy link
Member

na-- commented Jan 20, 2021

Prompted by https://community.k6.io/t/linting-k6-scripts/1277

@na-- na-- added Area: OSS Content Improvements or additions to community/oss documentation Type: Enhancement labels Jan 20, 2021
@ppcano
Copy link
Collaborator

ppcano commented Dec 2, 2022

https://k6.io/blog/how-to-lint-k6-tests-and-add-a-pre-commit-hook/ touches more extensively this topic.

Perhaps, instead of a dedicated section, we could cover this as part of a more general tutorial for recommendations to set up your k6 project.

@matthewbordas
Copy link

Any updates? On top of documentation, it would be nice if k6 provided a eslint extension that we could use to extend our .eslintrc files.

@ppcano
Copy link
Collaborator

ppcano commented Mar 7, 2023

@matthewbordas, this project has a .eslintrc file used to validate the documentation examples.

@na-- na-- changed the title Add information on how to lint k6 scripts Add information on how to format and lint k6 scripts Mar 30, 2023
@na--
Copy link
Member Author

na-- commented Mar 30, 2023

Another related issue: grafana/k6#2992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: OSS Content Improvements or additions to community/oss documentation
Projects
None yet
Development

No branches or pull requests

4 participants