From 791c160125edda08993c0183028409aa3f1d659a Mon Sep 17 00:00:00 2001 From: Valentin Silyutin Date: Thu, 12 Feb 2026 14:22:55 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=BF=D0=BE=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8?= =?UTF-8?q?=D0=B3=D1=83=20ESLint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/eslint-config/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index bbfca3a..84d3506 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -22,6 +22,7 @@ const config = [ { rules: { ...{ + // Включаем правила из категории Possible Problems, которые не включенны в recommended 'array-callback-return': 'error', 'no-await-in-loop': 'warn', 'no-duplicate-imports': 'warn', @@ -33,6 +34,7 @@ const config = [ 'no-use-before-define': 'error', }, ...{ + // Включаем правила из категории Suggestions, которые не включенны в recommended 'dot-notation': 'warn', 'eqeqeq': 'error', 'no-implicit-coercion': 'warn', @@ -47,6 +49,10 @@ const config = [ 'prefer-const': 'warn', 'prefer-template': 'warn', }, + ...{ + // Переопределяем правила, которые включены в recommended + 'no-irregular-whitespace': ['error', { skipTemplates: true }], + }, }, }, { @@ -72,7 +78,6 @@ const config = [ 'unicorn/filename-case': ['warn', { cases: { kebabCase: true, pascalCase: true } }], 'unicorn/prefer-global-this': 'off', 'unicorn/prefer-import-meta-properties': 'warn', - 'unicorn/prefer-top-level-await': 'off', 'unicorn/prevent-abbreviations': 'off', }, }, @@ -105,7 +110,7 @@ const config = [ 'vue/no-constant-condition': 'error', 'vue/no-empty-pattern': 'error', 'vue/no-implicit-coercion': 'warn', - 'vue/no-irregular-whitespace': 'error', + 'vue/no-irregular-whitespace': ['error', { skipTemplates: true }], 'vue/no-loss-of-precision': 'error', 'vue/no-negated-condition': 'warn', 'vue/no-sparse-arrays': 'error',