Fix: Disable any warning. Fix test (#31)

This commit is contained in:
TS 2020-05-18 18:13:43 -07:00 committed by GitHub
parent cd277c3896
commit 8d658a7997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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']

View File

@ -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";

View File

@ -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
}
}