Remove true from boolean attribute (#2892)

Added .deepsource.toml file
This commit is contained in:
Shubhendra Singh Chauhan 2021-02-09 11:38:54 +05:30 committed by GitHub
parent 36021f9aba
commit ac49a5aa87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 5 deletions

19
.deepsource.toml Normal file
View File

@ -0,0 +1,19 @@
version = 1
exclude_patterns = [
"static/**",
"deploy/**",
"contributions/**"
]
[[analyzers]]
name = "javascript"
enabled = true
[analyzers.meta]
plugins = ["react"]
environment = [
"nodejs",
"browser"
]
dialect = "typescript"

View File

@ -381,7 +381,7 @@ const TextLoadingState = ({ text }: { text?: string }) => (
); );
const IconLoadingState = ({ size, icon }: { size?: Size; icon?: IconName }) => ( const IconLoadingState = ({ size, icon }: { size?: Size; icon?: IconName }) => (
<Icon name={icon} size={IconSizeProp(size)} invisible={true} /> <Icon name={icon} size={IconSizeProp(size)} invisible />
); );
const getIconContent = (props: ButtonProps) => const getIconContent = (props: ButtonProps) =>

View File

@ -263,7 +263,7 @@ export const EditableText = (props: EditableTextProps) => {
onChange={onInputchange} onChange={onInputchange}
onConfirm={onConfirm} onConfirm={onConfirm}
value={value} value={value}
selectAllOnFocus={true} selectAllOnFocus
placeholder={props.placeholder || defaultValue} placeholder={props.placeholder || defaultValue}
className={props.className} className={props.className}
onCancel={onConfirm} onCancel={onConfirm}

View File

@ -35,7 +35,7 @@ const PopoverVideo = (props: VideoComponentProps) => {
minimal minimal
usePortal usePortal
enforceFocus={false} enforceFocus={false}
lazy={true} lazy
modifiers={{ modifiers={{
flip: { flip: {
behavior: ["right", "left", "bottom", "top"], behavior: ["right", "left", "bottom", "top"],

View File

@ -55,7 +55,7 @@ const PageNumberInput = (props: {
min={1} min={1}
max={props.pageCount || 1} max={props.pageCount || 1}
buttonPosition="none" buttonPosition="none"
clampValueOnBlur={true} clampValueOnBlur
onBlur={(e: any) => { onBlur={(e: any) => {
const oldPageNo = Number(props.pageNo || 0); const oldPageNo = Number(props.pageNo || 0);
const value = e.target.value; const value = e.target.value;

View File

@ -114,7 +114,7 @@ class HelpModal extends React.Component<Props> {
<> <>
{isHelpModalOpen && ( {isHelpModalOpen && (
<ModalComponent <ModalComponent
canOutsideClickClose={true} canOutsideClickClose
canEscapeKeyClose canEscapeKeyClose
scrollContents scrollContents
height={MODAL_HEIGHT} height={MODAL_HEIGHT}