Skip to content

Commit ffc8d7a

Browse files
committed
fix lint
1 parent a8f6741 commit ffc8d7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"test:only": "jest",
2323
"test:bundle": "jest --setupTestFrameworkScriptFile ./tests/jestBundleSetup.js",
2424
"test:lib": "jest --setupTestFrameworkScriptFile ./tests/jestLibSetup.js",
25-
"test:all": "npm run build && npm run test:only && npm run test:bundle && npm run test:lib && npm run clean",
25+
"test:all": "npm run lint && npm run test:only && npm run build && npm run test:bundle && npm run test:lib && npm run clean",
2626
"test": "npm run test:all",
2727
"precommit": "lint-staged",
28-
"prepublishOnly": "npm run lint && npm run clean && npm run build"
28+
"prepublishOnly": "npm run clean && npm run build"
2929
},
3030
"lint-staged": {
3131
"*.{js,md}": [

src/utils/warn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-console */
22

33
const warn = (condition, message, trace = true) => {
4-
if (!!condition) {
4+
if (condition) {
55
console.warn(`[react-powerplug]: ${message}`)
66
console.trace && trace && console.trace('Trace')
77
}

0 commit comments

Comments
 (0)