eslint/rules/other-frameworks
Other frameworks: Rules for frameworks this stack does not use (React, Vue, jQuery, Cypress, Lodash, AWS CDK): kept listed so that a plugin update never enables them silently. Rules of SonarJS on this subject (the Sonar way profile of SonarQube), every rule listed.
34 rules, 16 on. Source: lint/eslint/rules/other-frameworks.mjs.
| Rule | Setting | Files | What it checks | Why |
|---|---|---|---|---|
sonarjs/aws-apigateway-public-api | off | JS + TS | AWS API Gateway should require authentication | Off: AWS CDK infrastructure code only; together they cost about 20 % of the lint time. |
sonarjs/aws-ec2-rds-dms-public | off | JS + TS | Public network access to cloud resources should be disabled | — |
sonarjs/aws-ec2-unencrypted-ebs-volume | off | JS + TS | EBS volumes should be encrypted | — |
sonarjs/aws-efs-unencrypted | off | JS + TS | Amazon EFS file systems should be encrypted | — |
sonarjs/aws-iam-all-privileges | off | JS + TS | Policies should not grant all privileges | — |
sonarjs/aws-iam-all-resources-accessible | off | JS + TS | IAM policies should not grant access to all account resources | Off: not in the Sonar way profile of SonarQube. |
sonarjs/aws-iam-privilege-escalation | off | JS + TS | AWS IAM policies should limit the scope of permissions given | — |
sonarjs/aws-iam-public-access | off | JS + TS | AWS resource-based policies should not grant public access | — |
sonarjs/aws-opensearchservice-domain | off | JS + TS | OpenSearch domains should have encryption at rest enabled | — |
sonarjs/aws-rds-unencrypted-databases | off | JS + TS | Amazon RDS resources should be encrypted at rest | — |
sonarjs/aws-restricted-ip-admin-access | off | JS + TS | Administration services access should be restricted to specific IP addresses | — |
sonarjs/aws-s3-bucket-granted-access | off | JS + TS | S3 buckets should not grant access to all users or authenticated users | — |
sonarjs/aws-s3-bucket-insecure-http | off | JS + TS | S3 buckets should enforce HTTPS-only access | — |
sonarjs/aws-s3-bucket-public-access | off | JS + TS | Amazon S3 bucket public access should be fully blocked | — |
sonarjs/aws-s3-bucket-versioning | off | JS + TS | Amazon S3 buckets should have versioning enabled | — |
sonarjs/aws-sagemaker-unencrypted-notebook | off | JS + TS | SageMaker notebook instances should be encrypted at rest | — |
sonarjs/aws-sns-unencrypted-topics | off | JS + TS | Amazon SNS topics should be encrypted at rest | — |
sonarjs/aws-sqs-unencrypted-queue | off | JS + TS | SQS queues should be encrypted | — |
sonarjs/hooks-before-test-cases | warn | JS + TS | Lifecycle hooks should not be interleaved with test cases or nested suites | — |
sonarjs/chai-determinate-assertion | warn | JS + TS | Chai assertions should have only one reason to succeed | — |
sonarjs/jsx-no-leaked-render | error | JS + TS | React components should not render non-boolean condition values | — |
sonarjs/no-debounce-throttle-in-render | error | JS + TS | Lodash and Underscore.js debounced or throttled functions should not be recreated on every React render | — |
sonarjs/no-hook-setter-in-body | error | JS + TS | React's useState hook should not be used directly in the render function or body of a component | — |
sonarjs/no-mutate-reactive-state-in-updated-hook | error | JS + TS | Reactive state should not be unconditionally mutated inside Vue's "updated" lifecycle hook | — |
sonarjs/no-uniq-key | warn | JS + TS | JSX list components keys should match up between renders | — |
sonarjs/no-useless-react-setstate | error | JS + TS | React state setter function should not be called with its matching state variable | — |
sonarjs/no-vue-class-component | warn | JS + TS | Vue components should not use the deprecated "vue-class-component" or "vue-property-decorator" libraries | — |
sonarjs/no-vue-mixins | warn | JS + TS | Vue components should not use mixins | — |
sonarjs/prefer-cypress-should | warn | JS + TS | Cypress assertions should be retryable | — |
sonarjs/prefer-native-axios-alternative | warn | JS + TS | Native APIs should be preferred over Axios utility methods | — |
sonarjs/prefer-native-jquery-alternative | warn | JS + TS | Native APIs should be preferred over jQuery utility methods | — |
sonarjs/prefer-native-lodash-alternative | warn | JS + TS | Native APIs should be preferred over Lodash and Underscore.js methods | — |
sonarjs/prefer-read-only-props | warn | JS + TS | React props should be read-only | — |
sonarjs/review-blockchain-mnemonic | error | JS + TS | Wallet phrases should not be hard-coded | — |