mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
Fix: Disable any warning. Fix test (#31)
This commit is contained in:
parent
cd277c3896
commit
8d658a7997
|
|
@ -29,6 +29,7 @@ rules:
|
|||
# TODO: 修改添加deps后出现的死循环
|
||||
react-hooks/exhaustive-deps: 0
|
||||
'@typescript-eslint/explicit-function-return-type': 0
|
||||
'@typescript-eslint/no-explicit-any': 0
|
||||
|
||||
overrides:
|
||||
- files: ['*.js', '*.jsx']
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import InputAdornment from "@material-ui/core/InputAdornment";
|
|||
import InputLabel from "@material-ui/core/InputLabel";
|
||||
import MenuItem from "@material-ui/core/MenuItem";
|
||||
import Select from "@material-ui/core/Select";
|
||||
import React, { useCallback, useState, useRef } from "react";
|
||||
import React, { useCallback, useState } from "react";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { toggleSnackbar } from "../../../actions";
|
||||
|
||||
|
|
|
|||
|
|
@ -555,8 +555,7 @@ describe('index reducer', () => {
|
|||
selected: [{ id: '2', type: 'file' }],
|
||||
selectProps: {
|
||||
isMultiple: false,
|
||||
// TODO: use !! case to boolean
|
||||
withFolder: undefined,
|
||||
withFolder: false,
|
||||
withFile: true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue