Resolve xo rule errors
This commit is contained in:
parent
8577e6dd58
commit
0f31446555
2 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
|
@ -199,7 +199,7 @@ function applyStyle(...args) {
|
|||
}
|
||||
|
||||
function chalkTag(chalk, ...strings) {
|
||||
const firstString = strings[0];
|
||||
const [firstString] = strings;
|
||||
|
||||
if (!Array.isArray(firstString)) {
|
||||
// If chalk() was called by itself or with a string,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ function parseStyle(style) {
|
|||
let matches;
|
||||
|
||||
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
||||
const name = matches[1];
|
||||
const name = matches[1]; // eslint-disable-line prefer-destructuring
|
||||
|
||||
if (matches[2]) {
|
||||
const args = parseArguments(name, matches[2]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue