k6-docs icon indicating copy to clipboard operation
k6-docs copied to clipboard

Add information on how to format and lint k6 scripts

Open na-- opened this issue 4 years ago • 4 comments

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

na-- avatar Jan 20 '21 10:01 na--

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.

ppcano avatar Dec 02 '22 12:12 ppcano

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.

matthewbordas avatar Mar 07 '23 16:03 matthewbordas

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

ppcano avatar Mar 07 '23 16:03 ppcano

Another related issue: https://github.com/grafana/k6/issues/2992

na-- avatar Mar 30 '23 12:03 na--