From c3799bee3adb1fb37d9a3de0b51a94b217a4f227 Mon Sep 17 00:00:00 2001 From: Andrey Polischuk Date: Tue, 26 Mar 2024 11:53:20 +0300 Subject: [PATCH] feat(eslint-config): add new rules - no-throw-literal - no-template-curly-in-string --- packages/eslint-config/js.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config/js.js b/packages/eslint-config/js.js index 466ca3f..56f3cd2 100644 --- a/packages/eslint-config/js.js +++ b/packages/eslint-config/js.js @@ -112,7 +112,7 @@ module.exports = { } ], 'no-nested-ternary': 'error', - 'no-unneeded-ternary': 'error', + 'no-unneeded-ternary': ['error', {defaultAssignment: false}], 'no-param-reassign': 'error', 'no-return-assign': 'error', 'no-script-url': 'error', @@ -122,6 +122,8 @@ module.exports = { 'no-var': 'error', 'no-void': 'error', 'no-with': 'error', + 'no-throw-literal': 'error', + 'no-template-curly-in-string': 'error', 'no-empty-function': ['error', {allow: ['arrowFunctions']}], 'no-constant-condition': [ 'error',