From 9a52d49698083f63d66a238f822d1aad957ad2ea Mon Sep 17 00:00:00 2001 From: Rohit Patil Date: Fri, 4 Aug 2023 11:10:41 +0530 Subject: [PATCH 1/3] changing errors to warning --- custom-eslint-rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom-eslint-rules.js b/custom-eslint-rules.js index 423b867..9585c53 100644 --- a/custom-eslint-rules.js +++ b/custom-eslint-rules.js @@ -8,7 +8,7 @@ module.exports = { rules : { ...overrides.base, ...overrides.react, - 'max-lines-per-function' : ['error', MAXIMUM_LENGTH], + 'max-lines-per-function' : ['warn', MAXIMUM_LENGTH], 'no-magic-numbers' : ['error', { ignoreDefaultValues: true }], 'custom-eslint/variables-name-check' : 'error', 'custom-eslint/img-src-cdn' : 'warn', @@ -31,7 +31,7 @@ module.exports = { 'custom-eslint/default-component-props' : 'warn', // new 'custom-eslint/import-from-react' : 'error', - 'custom-eslint/function-name-check' : 'error', + 'custom-eslint/function-name-check' : 'warn', 'custom-eslint/import-from-package-utils' : 'error', }, }; From d2083e8f774e4db320cff15b9f63ef384d3af4e2 Mon Sep 17 00:00:00 2001 From: Rohit Patil Date: Fri, 4 Aug 2023 12:28:52 +0530 Subject: [PATCH 2/3] upgrading version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 506f87f..8d63cd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cogoport/eslint-config", - "version": "2.0.5", + "version": "2.0.7", "description": "ESLint Config by Cogoport", "repository": "git@github.com:Cogoport/eslint-config.git", "license": "MIT", From 96010ee2a029850816793ce0802fc176a1f9c72d Mon Sep 17 00:00:00 2001 From: Rohit Patil Date: Fri, 4 Aug 2023 15:55:44 +0530 Subject: [PATCH 3/3] changing all new rule errors to warnings --- custom-eslint-rules.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom-eslint-rules.js b/custom-eslint-rules.js index 9585c53..729be0f 100644 --- a/custom-eslint-rules.js +++ b/custom-eslint-rules.js @@ -30,8 +30,8 @@ module.exports = { 'custom-eslint/variable-value-jsx' : 'warn', 'custom-eslint/default-component-props' : 'warn', // new - 'custom-eslint/import-from-react' : 'error', + 'custom-eslint/import-from-react' : 'warn', 'custom-eslint/function-name-check' : 'warn', - 'custom-eslint/import-from-package-utils' : 'error', + 'custom-eslint/import-from-package-utils' : 'warn', }, }; diff --git a/package.json b/package.json index 8d63cd2..bd8112c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cogoport/eslint-config", - "version": "2.0.7", + "version": "2.0.8", "description": "ESLint Config by Cogoport", "repository": "git@github.com:Cogoport/eslint-config.git", "license": "MIT",