From 2c781dee6925618fa7da92e75a49cf5eebccf13d Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Thu, 27 Jul 2023 22:05:56 +0200 Subject: [PATCH] Added `max-len` rule (fixes #4) --- configs/generic.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configs/generic.js b/configs/generic.js index c99fce1..947f6ec 100644 --- a/configs/generic.js +++ b/configs/generic.js @@ -100,6 +100,19 @@ const generic = { 'error', 'unix', ], + 'max-len': [ + 'warn', + { + code: 100, + comments: 80, + ignoreComments: false, + ignoreTrailingComments: false, + ignoreUrls: true, + ignoreStrings: true, + ignoreTemplateLiterals: false, + ignoreRegExpLiterals: true, + }, + ], 'no-unused-vars': 'warn', 'no-alert': 'error', 'no-caller': 'error',