-
Notifications
You must be signed in to change notification settings - Fork 50
ci: moving from eslint to biome #1283
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
Changes from all commits
30d0bd4
72ab40e
be609b3
f951d39
39a0738
88176b3
1ec9d66
1db0354
7e6f526
7b6a0ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "recommendations": ["biomejs.biome"] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So far this extension seems to work as well as the ESLint one. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| { | ||
| "editor.codeActionsOnSave": { | ||
| "source.fixAll": "explicit" | ||
| }, | ||
| "editor.defaultFormatter": "esbenp.prettier-vscode", | ||
| // explicitly disable ESLint to avoid conflicts with Biome | ||
| "eslint.enable": false, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i added the changes in this file b/c i imagine there might be weird side effects when vscode is running eslint + biome simultaneously and i figured it's safer to be explicit here. we should probably do the same with prettier (i.e., explicitly disable the prettier extension and set the default formatter to biome) if/when we migrate off of that too. |
||
| "search.exclude": { | ||
| "**/dist-gha": true, | ||
| "CHANGELOG.md": true, | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| import { exec } from 'node:child_process'; | ||
|
|
||
| import { describe, it, expect } from 'vitest'; | ||
| import { describe, expect, it } from 'vitest'; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Import sorting like this is an out of the box thing. |
||
|
|
||
| describe('bin', () => { | ||
| it('should show our help screen', async () => { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| import type { PageObject } from '../../helpers/page.types.js'; | ||
|
|
||
| import fs from 'node:fs'; | ||
| import path from 'node:path'; | ||
|
|
||
| import chalk from 'chalk'; | ||
| import grayMatter from 'gray-matter'; | ||
| import { describe, beforeAll, beforeEach, it, expect } from 'vitest'; | ||
| import { beforeAll, beforeEach, describe, expect, it } from 'vitest'; | ||
|
|
||
| import Command from '../../../src/commands/changelogs.js'; | ||
| import { APIv1Error } from '../../../src/lib/apiError.js'; | ||
|
|
@@ -41,8 +43,8 @@ describe('rdme changelogs', () => { | |
| }); | ||
|
|
||
| describe('existing changelogs', () => { | ||
| let simpleDoc; | ||
| let anotherDoc; | ||
| let simpleDoc: PageObject; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It flagged that these didn't have an explicit type. I don't know where to put |
||
| let anotherDoc: PageObject; | ||
|
|
||
| beforeEach(() => { | ||
| let fileContents = fs.readFileSync(path.join(fullFixturesDir, '/existing-docs/simple-doc.md')); | ||
|
|
||
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.
🥹