Skip to content

Commit

Permalink
Chore: Bump dependencies / eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Feb 19, 2024
1 parent 4a2a150 commit 7272df1
Show file tree
Hide file tree
Showing 75 changed files with 316 additions and 317 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/glob-npm-7.1.4-8bd8317a74-f52480fc82.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/nx-npm-17.2.4-6c69c22b09-0e5caf74db.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,26 @@
"devDependencies": {
"@sindresorhus/tsconfig": "^5.0.0",
"@types/node": "^20.11.16",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vitest/coverage-v8": "^1.2.2",
"@vitest/ui": "^1.2.2",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@vitest/coverage-v8": "^1.3.0",
"@vitest/ui": "^1.3.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-xo": "^0.43.1",
"eslint-config-xo": "^0.44.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unicorn": "^50.0.1",
"globby": "^14.0.0",
"husky": "^9.0.10",
"lerna": "^8.0.2",
"lint-staged": "^15.2.1",
"eslint-plugin-unicorn": "^51.0.1",
"globby": "^14.0.1",
"husky": "^9.0.11",
"lerna": "^8.1.2",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"turbo": "^1.12.2",
"turbo": "^1.12.4",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
"vitest": "^1.3.0"
},
"workspaces": [
"packages/*",
Expand Down
4 changes: 1 addition & 3 deletions packages/inquirer/lib/prompts/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ export default class Prompt {
}

// Set default message if no message defined
if (!this.opt.message) {
this.opt.message = this.opt.name + ':';
}
this.opt.message ||= this.opt.name + ':';

// Normalize choices
if (Array.isArray(this.opt.choices)) {
Expand Down
4 changes: 1 addition & 3 deletions packages/inquirer/lib/prompts/expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ export default class ExpandPrompt extends Base {
}

getCurrentValue(input) {
if (!input) {
input = this.rawDefault;
}
input ||= this.rawDefault;

const selected = this.opt.choices.where({ key: input.toLowerCase().trim() })[0];
if (!selected) {
Expand Down
4 changes: 1 addition & 3 deletions packages/inquirer/lib/prompts/password.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ export default class PasswordPrompt extends Base {

onKeypress() {
// If user press a key, just clear the default value
if (this.opt.default) {
this.opt.default = undefined;
}
this.opt.default &&= undefined;

this.render();
}
Expand Down
4 changes: 1 addition & 3 deletions packages/inquirer/lib/ui/baseUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export default class UI {
constructor(opt) {
// Instantiate the Readline interface
// @Note: Don't reassign if already present (allow test to override the Stream)
if (!this.rl) {
this.rl = readline.createInterface(setupReadlineOptions(opt));
}
this.rl ||= readline.createInterface(setupReadlineOptions(opt));

this.rl.resume();

Expand Down
2 changes: 1 addition & 1 deletion packages/inquirer/lib/utils/paginator.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class Paginator {
}

paginate(output, active, pageSize) {
pageSize = pageSize || 7;
pageSize ||= 7;
let lines = output.split('\n');

if (this.screen) {
Expand Down
4 changes: 1 addition & 3 deletions packages/inquirer/lib/utils/screen-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ export default class ScreenManager {
const width = this.normalizedCliWidth();

content = this.forceLineReturn(content, width);
if (bottomContent) {
bottomContent = this.forceLineReturn(bottomContent, width);
}
bottomContent &&= this.forceLineReturn(bottomContent, width);

// Manually insert an extra line if we're at the end of the line.
// This prevent the cursor from appearing at the beginning of the
Expand Down

0 comments on commit 7272df1

Please sign in to comment.