diff --git a/.eslintrc b/.eslintrc index 8524cf1..f4c1ea5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,5 +2,8 @@ "extends": "airbnb-base", "env": { "jest": true + }, + "rules": { + "prefer-template": 0 } } diff --git a/src/utils.js b/src/utils.js index 2ee7ac2..40d6b32 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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);