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',