no-implicit-coercion

This commit is contained in:
Dustin Brett
2021-08-21 22:25:16 -07:00
parent 67585e269c
commit e8980234fb
3 changed files with 3 additions and 2 deletions

View File

@@ -57,6 +57,7 @@
],
"import/no-cycle": "off",
"import/prefer-default-export": "off",
"no-implicit-coercion": "error",
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",

View File

@@ -36,7 +36,7 @@ const fs2json = (dir) => {
obj[IDX_NAME] = name;
obj[IDX_SIZE] = st.size;
obj[IDX_MTIME] = +st.mtime;
obj[IDX_MTIME] = Number(st.mtime);
obj[IDX_MODE] = st.mode;
obj[IDX_UID] = st.uid;
obj[IDX_GID] = st.gid;

View File

@@ -86,7 +86,7 @@ const Menu = ({ subMenu }: MenuProps): JSX.Element => {
<StyledMenu
onBlurCapture={resetMenu}
ref={menuRef}
isSubMenu={!!subMenu}
isSubMenu={Boolean(subMenu)}
x={x - offset.x}
y={y - offset.y}
{...menuTransition}