diff --git a/package.json b/package.json index 8513de0b..9be86af5 100644 --- a/package.json +++ b/package.json @@ -22,10 +22,10 @@ "test:only": "jest", "test:bundle": "jest --setupTestFrameworkScriptFile ./tests/jestBundleSetup.js", "test:lib": "jest --setupTestFrameworkScriptFile ./tests/jestLibSetup.js", - "test:all": "npm run build && npm run test:only && npm run test:bundle && npm run test:lib && npm run clean", + "test:all": "npm run lint && npm run test:only && npm run build && npm run test:bundle && npm run test:lib && npm run clean", "test": "npm run test:all", "precommit": "lint-staged", - "prepublishOnly": "npm run lint && npm run clean && npm run build" + "prepublishOnly": "npm run clean && npm run build" }, "lint-staged": { "*.{js,md}": [ diff --git a/src/utils/warn.js b/src/utils/warn.js index 373131f2..5352c388 100644 --- a/src/utils/warn.js +++ b/src/utils/warn.js @@ -1,7 +1,7 @@ /* eslint-disable no-console */ const warn = (condition, message, trace = true) => { - if (!!condition) { + if (condition) { console.warn(`[react-powerplug]: ${message}`) console.trace && trace && console.trace('Trace') }