From a6b5bcd503e3b1f24d4c3091dd35ce714f7df4f4 Mon Sep 17 00:00:00 2001 From: "dmitrii.pichenikin" Date: Mon, 2 Mar 2026 11:31:00 +0300 Subject: [PATCH] fix lint rules and add webpack resolve rule for mjs files --- webapp/.eslintrc.json | 17 +++-------------- webapp/webpack.config.js | 7 +++++++ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/webapp/.eslintrc.json b/webapp/.eslintrc.json index d32ecb3..253c25d 100644 --- a/webapp/.eslintrc.json +++ b/webapp/.eslintrc.json @@ -194,22 +194,14 @@ "skipComments": false } ], - "max-nested-callbacks": [ - 2, - { - "max": 2 - } - ], + "max-nested-callbacks": 0, "max-statements-per-line": [ 2, { "max": 1 } ], - "multiline-ternary": [ - 1, - "never" - ], + "multiline-ternary": 0, "new-cap": 2, "new-parens": 2, "newline-before-return": 0, @@ -415,10 +407,7 @@ 2, "always" ], - "operator-linebreak": [ - 2, - "after" - ], + "operator-linebreak": 0, "padded-blocks": [ 2, "never" diff --git a/webapp/webpack.config.js b/webapp/webpack.config.js index 72c8ad8..37b131a 100644 --- a/webapp/webpack.config.js +++ b/webapp/webpack.config.js @@ -48,6 +48,13 @@ module.exports = { }, module: { rules: [ + { + test: /\.mjs$/, + include: /node_modules/, + resolve: { + fullySpecified: false, + }, + }, { test: /\.(js|jsx|ts|tsx)$/, exclude: /node_modules/,