Skip to content

Commit 465f230

Browse files
authored
fix(cli): replace clui on @isaacs/cliui (#282)
Close #209 `cliui` has the [issue](yargs/cliui#89) with text wraping. `@isaacs/cliui` does not have it for now
1 parent 13c9d26 commit 465f230

File tree

5 files changed

+180
-18
lines changed

5 files changed

+180
-18
lines changed

package-lock.json

+163-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
},
1313
"dependencies": {
1414
"@code-pushup/portal-client": "^0.1.2",
15+
"@isaacs/cliui": "^8.0.2",
1516
"@swc/helpers": "~0.5.0",
1617
"bundle-require": "^4.0.1",
1718
"chalk": "^5.3.0",
1819
"cli-table3": "^0.6.3",
19-
"cliui": "^8.0.1",
2020
"multi-progress-bars": "^5.0.3",
2121
"simple-git": "^3.20.0",
2222
"yargs": "^17.7.2",

packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"@code-pushup/models": "*",
66
"bundle-require": "^4.0.1",
77
"chalk": "^5.3.0",
8-
"cliui": "^8.0.1",
8+
"@isaacs/cliui": "^8.0.2",
99
"simple-git": "^3.20.0",
1010
"multi-progress-bars": "^5.0.3",
1111
"cli-table3": "^0.6.3"

packages/utils/src/lib/__snapshots__/report-to-stdout.spec.ts.snap

+14-14
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ ESLint audits
99
● Disallow assignment operators in conditional expressions 0
1010
● Disallow reassigning \`const\` variables 0
1111
● Disallow the use of \`debugger\` 0
12-
● Disallow invalid regular expression strings in \`RegExp\` construct 0
13-
ors
14-
● Disallow the use of undeclared variables unless mentioned in \`/*g 0
15-
lobal */\` comments
12+
● Disallow invalid regular expression strings in \`RegExp\` 0
13+
constructors
14+
● Disallow the use of undeclared variables unless mentioned in 0
15+
\`/*global */\` comments
1616
● Disallow loops with a body that allows only one iteration 0
1717
● Disallow negating the left operand of relational operators 0
18-
● Disallow use of optional chaining in contexts where the \`undefine 0
19-
d\` value is not allowed
18+
● Disallow use of optional chaining in contexts where the 0
19+
\`undefined\` value is not allowed
2020
● Disallow unused variables 1 warning
2121
● Require calls to \`isNaN()\` when checking for \`NaN\` 0
2222
● Enforce comparing \`typeof\` expressions against valid strings 0
@@ -29,20 +29,20 @@ ESLint audits
2929
● Disallow variable declarations from shadowing variables declared 3 warnings
3030
in the outer scope
3131
● Require \`let\` or \`const\` instead of \`var\` 0
32-
● Require or disallow method and property shorthand syntax for obje 3 warnings
33-
ct literals
32+
● Require or disallow method and property shorthand syntax for 3 warnings
33+
object literals
3434
● Require using arrow functions for callbacks 0
35-
● Require \`const\` declarations for variables that are never reassig 1 warning
36-
ned after declared
35+
● Require \`const\` declarations for variables that are never 1 warning
36+
reassigned after declared
3737
● Disallow using Object.assign with an object literal as the first 0
3838
argument and prefer the use of object spread instead
3939
● Require or disallow \\"Yoda\\" conditions 0
4040
● Disallow missing \`key\` props in iterators/collection literals 1 warning
4141
● Disallow missing props validation in a React component definition 6 warnings
4242
● Disallow missing React when using JSX 0
4343
● enforces the Rules of Hooks 0
44-
● verifies the list of dependencies for Hooks like useEffect and si 2 warnings
45-
milar
44+
● verifies the list of dependencies for Hooks like useEffect and 2 warnings
45+
similar
4646
● Disallow missing displayName in a React component definition 0
4747
● Disallow comments from being inserted as text nodes 0
4848
● Disallow duplicate properties in JSX 0
@@ -51,8 +51,8 @@ ESLint audits
5151
● Disallow React to be incorrectly marked as unused 0
5252
● Disallow variables used in JSX to be incorrectly marked as unused 0
5353
● Disallow passing of children as props 0
54-
● Disallow when a DOM element is using both children and dangerousl 0
55-
ySetInnerHTML
54+
● Disallow when a DOM element is using both children and 0
55+
dangerouslySetInnerHTML
5656
● Disallow usage of deprecated methods 0
5757
● Disallow direct mutation of this.state 0
5858
● Disallow usage of findDOMNode 0

packages/utils/src/lib/report-to-stdout.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import cliui from '@isaacs/cliui';
12
import chalk from 'chalk';
23
import Table from 'cli-table3';
3-
import cliui from 'cliui';
44
import { NEW_LINE } from './md';
55
import {
66
CODE_PUSHUP_DOMAIN,

0 commit comments

Comments
 (0)