ESLint: Add eqeqeq rule
This rule forbids use of == or !=, and enforces use of === and !==.
This commit is contained in:
parent
e046cb7a51
commit
8f454e5a89
2 changed files with 2 additions and 1 deletions
|
|
@ -30,3 +30,4 @@ rules:
|
|||
- error
|
||||
- destructuring: any
|
||||
no-console: 2
|
||||
eqeqeq: error
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue