ESLint: Add eqeqeq rule

This rule forbids use of == or !=, and enforces use of === and !==.
This commit is contained in:
lucasgarfield 2023-06-20 14:41:36 +02:00 committed by Lucas Garfield
parent e046cb7a51
commit 8f454e5a89
2 changed files with 2 additions and 1 deletions

View file

@ -30,3 +30,4 @@ rules:
- error
- destructuring: any
no-console: 2
eqeqeq: error

View file

@ -50,7 +50,7 @@ const AzureSourcesSelect = ({ label, isRequired, className, ...props }) => {
const onFormChange = ({ values }) => {
if (
values['azure-type'] !== 'azure-type-source' ||
values[input.name] == undefined
values[input.name] === undefined
) {
change(input.name, undefined);
change('azure-tenant-id', undefined);