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 = {