Resolve xo rule errors

This commit is contained in:
George Gkasdrogkas 2018-09-18 14:48:05 +03:00
parent 8577e6dd58
commit 0f31446555
No known key found for this signature in database
GPG key ID: 3FCA70FC54D4293F
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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]);