mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
no-implicit-coercion
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user