Skip to content

deps: update biome #81

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": true
},
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"javascript": {
"formatter": {
"quoteStyle": "single"
Expand All @@ -14,7 +12,19 @@
"recommended": true,
"performance": {
"noDelete": "warn"
},
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
}
}
}
75 changes: 37 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@twilio/cli-core": "^7.27.2"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@biomejs/biome": "^2.0.5",
"chai": "^5.2.0",
"mocha": "^11.1.0",
"nyc": "^17.1.0",
Expand All @@ -29,13 +29,17 @@
"/yarn.lock"
],
"homepage": "https://github.com/twilio-labs/plugin-token",
"keywords": ["oclif-plugin"],
"keywords": [
"oclif-plugin"
],
"license": "MIT",
"oclif": {
"name": "token",
"commands": "./src/commands",
"bin": "twilio",
"devPlugins": ["@oclif/plugin-help"],
"devPlugins": [
"@oclif/plugin-help"
],
"topics": {
"token": {
"description": "Generate a temporary token for use in test applications"
Expand Down
1 change: 0 additions & 1 deletion src/commands/token/flex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { TwilioClientCommand } = require('@twilio/cli-core').baseCommands;
const { TwilioCliError } = require('@twilio/cli-core').services.error;
const Twilio = require('twilio');
const createToken = require('../../helpers/accessToken.js');
const globalFlags = require('../../helpers/globalFlags.js');
Expand Down
13 changes: 4 additions & 9 deletions test/helpers/accessToken.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ const createToken = require('../../src/helpers/accessToken.js');
const expect = chai.expect;

describe('createToken', () => {
let sandbox;
let tokenGeneratorStub;
let exitStub;
let envStub;

beforeEach(() => {
sandbox = sinon.createSandbox();
envStub = sandbox.stub(process, 'env').value({});
exitStub = sandbox.stub(process, 'exit');
tokenGeneratorStub = {
const _sandbox = sinon.createSandbox();
const _envStub = _sandbox.stub(process, 'env').value({});
const _exitStub = _sandbox.stub(process, 'exit');
const _tokenGeneratorStub = {
twilioClient: {
accountSid: 'ACxxxx',
username: 'test',
Expand Down
Loading