Skip to content

Commit e721e17

Browse files
authored
Merge pull request LogRocket#284 from HeroProtagonist/lint-fix
fix lint issue and add lint on pre-commit/build
2 parents c8b4971 + fd30d67 commit e721e17

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
@@ -13,8 +13,8 @@
1313
"coverage:production": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
1414
"clean": "rimraf dist",
1515
"build": "rollup -c",
16-
"precommit": "npm test",
17-
"prepublish": "npm run clean && npm test && npm run build"
16+
"precommit": "npm test && npm run lint",
17+
"prepublish": "npm run clean && npm test && npm run lint && npm run build"
1818
},
1919
"eslintConfig": {
2020
"extends": "airbnb",

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function printBuffer(buffer, options) {
126126
}
127127

128128
if (logger.withTrace) {
129-
logger.groupCollapsed(`TRACE`);
129+
logger.groupCollapsed('TRACE');
130130
logger.trace();
131131
logger.groupEnd();
132132
}

0 commit comments

Comments
 (0)