Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
renatorib committed Feb 14, 2018
1 parent a8f6741 commit ffc8d7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}": [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/warn.js
Original file line number Diff line number Diff line change
@@ -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')
}
Expand Down

0 comments on commit ffc8d7a

Please sign in to comment.