-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π¨ π·ββοΈ K6 run Biome Lint and Format (#921)
* Biome Format * 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 * Biome Lint Fix * Applied Biome Lint Fix * Walked through the unsafe fixes and identified the one that was causing the k6 syntax error * Disable `useOptionalChain` rule * Manually disable ESLint rules on a per-file basis because Codacy * Use of Console and Undefined is 100% valid for k6 * I believe the use of snake case is to maintain consistency with calls made to CloudAPI
- Loading branch information
Showing
13 changed files
with
641 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"files": { | ||
"ignore": ["node_modules", "output"] | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
}, | ||
"formatter": { | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineWidth": 120 | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"complexity": { | ||
"useOptionalChain": "off" | ||
} | ||
}, | ||
"ignore": ["node_modules", "output"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.