From 2badba6387c342edb6ae6ef00c5596a7319ab7c1 Mon Sep 17 00:00:00 2001 From: Andrey Polischuk Date: Fri, 19 Jan 2024 11:08:33 +0300 Subject: [PATCH] feat(eslint-config): add new js rules --- packages/eslint-config/js.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/eslint-config/js.js b/packages/eslint-config/js.js index fba138f..db0e142 100644 --- a/packages/eslint-config/js.js +++ b/packages/eslint-config/js.js @@ -31,6 +31,7 @@ module.exports = { semi: ['error', 'never'], 'comma-dangle': ['error', 'never'], 'eol-last': ['error', 'always'], + 'arrow-parens': ['error', 'always'], camelcase: ['error', {ignoreDestructuring: true}], eqeqeq: ['error', 'always', {null: 'ignore'}], 'prefer-const': ['error', {ignoreReadBeforeAssign: true}], @@ -68,6 +69,7 @@ module.exports = { 'no-global-assign': 'error', 'no-extend-native': 'error', 'no-alert': 'error', + 'no-console': 'error', 'no-unsafe-optional-chaining': [ 'error', {disallowArithmeticOperators: true} @@ -112,6 +114,7 @@ module.exports = { 'no-nested-ternary': 'error', 'no-unneeded-ternary': 'error', 'no-param-reassign': 'error', + 'no-empty-function': 'error', 'no-constant-condition': [ 'error', {