From 349779ca31f8fb512d02ce5221f0110e1c5b718b Mon Sep 17 00:00:00 2001 From: Omar Jaroudi <30807936+OmarJaroudi@users.noreply.github.com> Date: Tue, 15 Oct 2024 12:29:49 +0000 Subject: [PATCH] feat: disable aws-related rules to avoid performance impact --- index.js | 10 ++++++++++ legacy.js | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/index.js b/index.js index 33b05b7..8bf2bbb 100644 --- a/index.js +++ b/index.js @@ -53,6 +53,16 @@ module.exports = { "react/state-in-constructor": "off", // This allows static properties to be placed within the class declaration "react/static-property-placement": "off", + /* + * Rules that significantly impact performance time of eslint, and are not + * necessarily relevant for react applications. + */ + "sonarjs/aws-apigateway-public-api": "off", + "sonarjs/aws-ec2-rds-dms-public": "off", + "sonarjs/aws-iam-all-privileges": "off", + "sonarjs/aws-iam-privilege-escalation": "off", + "sonarjs/aws-iam-public-access": "off", + "sonarjs/aws-restricted-ip-admin-access": "off", // Already covered with react/no-array-index-key "sonarjs/no-array-index-key": "off", // Already covered with react/no-unknown-property diff --git a/legacy.js b/legacy.js index 1cd955f..210992d 100644 --- a/legacy.js +++ b/legacy.js @@ -50,6 +50,16 @@ module.exports = { "react/state-in-constructor": "off", // This allows static properties to be placed within the class declaration "react/static-property-placement": "off", + /** + * Rules that significantly impact performance time of eslint, and are not + * necessarily relevant for react applications. + */ + "sonarjs/aws-apigateway-public-api": "off", + "sonarjs/aws-ec2-rds-dms-public": "off", + "sonarjs/aws-iam-all-privileges": "off", + "sonarjs/aws-iam-privilege-escalation": "off", + "sonarjs/aws-iam-public-access": "off", + "sonarjs/aws-restricted-ip-admin-access": "off", // Already covered with react/no-array-index-key "sonarjs/no-array-index-key": "off", // Already covered with react/no-unknown-property