Skip to content

test: switch to using biome #66

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

Merged
merged 12 commits into from
Feb 20, 2025
Merged

test: switch to using biome #66

merged 12 commits into from
Feb 20, 2025

Conversation

bnb
Copy link
Contributor

@bnb bnb commented Feb 12, 2025

This PR switches us from ESLint and Prettier to using Biome for linting and formatting. All formatting and linting issues have been addressed by the committed changes.

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

bnb added 9 commits February 12, 2025 11:54
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Copy link
Contributor

@micaswyers-work micaswyers-work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

sid.length === 34
);
};
const validateSid = (prefix, sid) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this conversion to an arrow function something that the Biome formatter did?

@@ -1,2 +1,2 @@
const path = require('path');
const path = require('node:path');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the module name change?

package.json Outdated
"url": "https://github.com/twilio-labs/plugin-token.git"
},
"scripts": {
"biome:format": "npx @biomejs/biome format --write .",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default format command should not include --write

bnb added 3 commits February 20, 2025 12:23
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
@micaswyers-work micaswyers-work merged commit 8cc2cbb into main Feb 20, 2025
4 checks passed
@micaswyers-work micaswyers-work deleted the bnb/use-biome branch February 20, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants