From ee3ac595614248f9e3bd74db13b3efd2f8dd9e83 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 24 Apr 2020 16:13:54 +0200 Subject: [PATCH] fix --- .eslintignore | 1 + index.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..cd4efd8 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +*.d.ts diff --git a/index.js b/index.js index 5e55f77..47b4157 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,9 @@ * Created by Timo Hocker , March 2020 */ + // @ts-nocheck +/* eslint-disable no-magic-numbers */ 'use strict'; /** @@ -51,7 +53,7 @@ function to_hex (str, encoding = '') { * @returns {string} hex */ function num_to_hex (n) { - return n.toString(16); + return n.toString (16); } /** @@ -61,7 +63,7 @@ function num_to_hex (n) { * @returns {number} number */ function hex_to_num (h) { - return parseInt(h, 16); + return parseInt (h, 16); } module.exports = {