From 26edaf003d4bc508d8008bcf69213bc59cbe45fa Mon Sep 17 00:00:00 2001 From: ehmicky Date: Sun, 13 Dec 2020 09:47:51 +0100 Subject: [PATCH] Allow magic numbers in `README.md` (#46) --- .eslintrc.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 73686856..b116c7c2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -319,9 +319,14 @@ module.exports = { rules: { 'no-undef': 0, 'no-unused-vars': 0, + // Inline comments making code samples vertically shorter are useful 'line-comment-position': 0, 'no-inline-comments': 0, + + // Using literal numbers is simpler in documentation examples + 'no-magic-numbers': 0, + strict: 0, 'import/no-unresolved': 0, 'node/no-missing-require': 0,