-
Notifications
You must be signed in to change notification settings - Fork 8
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
🎨 👷♂️ K6 run Biome Lint and Format #921
Conversation
301a061
to
1403cdd
Compare
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.
LGTM
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.
Eslint (reported by Codacy) found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
7ab40c5
to
174c42e
Compare
174c42e
to
835d129
Compare
Want to make sure |
835d129
to
4322424
Compare
Found the unsafe fix that was causing the k6 syntax error:
https://biomejs.dev/linter/rules/use-optional-chain/ It looks like K6 doesn't have |
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.
@rblaine95 I'll take a look at why regression tests failed and post a separate fix. Just seems like connection record was not ready after webhook indicated it is ...
Note: one "critical" codacy issue: Unexpected console statement.
We can add the following to ignore it, considering it's not for production / to be executed in a browser.
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
* Run `npm run format` * Set Biome Formatter Indent Style to spaces * Set Biome Formatter Indent Width to `2` * Set Biome Formatter Line Width to `120` * Use `biome check` instead of `format` or `lint` * Allows Organize Imports to run * Make `npm run lint:fix` not run the unsafe lint fixes * Add an `npm run lint:fix:unsafe` to enable the `unsafe` flag
7b9dfbb
to
7c458a5
Compare
7c458a5
to
8e9283d
Compare
9c48754
to
a69887d
Compare
a69887d
to
0063465
Compare
0063465
to
c4d274e
Compare
Quality Gate passedIssues Measures |
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.
Nice! 🎨
npm run format
2
biome check
instead offormat
orlint
npm run lint:fix
not run the unsafe lint fixesnpm run lint:fix:unsafe
to enable theunsafe
flag