Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
c01nd01r committed Aug 10, 2018
1 parent dfd96d9 commit 82cd7e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"extends": "airbnb-base",
"env": {
"jest": true
},
"rules": {
"prefer-template": 0
}
}
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export const isPObject = val =>
Object.keys(val).length > 0;

export const hyphenate = str => str.replace(/\B([A-Z])/g, '-$1').toLowerCase();
// eslint-disable-next-line no-restricted-globals
export const isNumber = val => typeof val === 'number' && isFinite(val);

0 comments on commit 82cd7e4

Please sign in to comment.