mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint: comma-spacing (error) & comma-dangle (error) (#4200)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
02e77afcd1
commit
c6dce043a7
406 files changed
+1590
-1580
No files matched your search
@@ -172,8 +172,8 @@ export class Input extends React.Component<InputProps, State> {
|
||||
asyncValidators.push(
|
||||
result.then(
|
||||
() => null, // don't consider any valid result from promise since we interested in errors only
|
||||
error => this.getValidatorError(value, validator) || error
|
||||
)
|
||||
error => this.getValidatorError(value, validator) || error,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,9 +103,9 @@ export const systemName: InputValidator = {
|
||||
|
||||
export const accountId: InputValidator = {
|
||||
message: () => `Invalid account ID`,
|
||||
validate: value => (isEmail.validate(value) || systemName.validate(value))
|
||||
validate: value => (isEmail.validate(value) || systemName.validate(value)),
|
||||
};
|
||||
|
||||
export const conditionalValidators = [
|
||||
isRequired, isEmail, isNumber, isUrl, minLength, maxLength
|
||||
isRequired, isEmail, isNumber, isUrl, minLength, maxLength,
|
||||
];
|
||||
Reference in new issue
Block a user