fix: lint

This commit is contained in:
zyc9012 2022-04-05 13:30:57 +08:00
parent 3c39991e81
commit 52a5e3ad1e
5 changed files with 15 additions and 1 deletions

11
.eslintignore Normal file
View File

@ -0,0 +1,11 @@
node_modules
dist
/.vscode
lib
es
.github
scripts
webpack.config.js
# formula-parser
packages/formula-parser

View File

@ -31,6 +31,7 @@ module.exports = {
"no-console": [1, { allow: ["warn", "error"] }],
"no-lonely-if": 0,
"no-new-func": 0,
"no-template-curly-in-string": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/no-noninteractive-tabindex": 0,
"jsx-a11y/click-events-have-key-events": 0,

View File

@ -1,3 +1,4 @@
/* eslint-disable */
var SSF = {};
const make_ssf = function make_ssf(SSF) {
SSF.version = "0.11.2";

View File

@ -15,6 +15,7 @@ const ScrollBar: React.FC<Props> = ({ axis }) => {
} else {
refs.scrollbarY.current!.scrollTop = context.scrollTop;
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [axis === "x" ? context.scrollLeft : context.scrollTop]);
return (

View File

@ -96,7 +96,7 @@ const SheetOverlay: React.FC = () => {
useEffect(() => {
// ensure cell input is always focused to accept first key stroke on cell
refs.cellInput.current?.focus();
}, [context.luckysheet_select_save]);
}, [context.luckysheet_select_save, refs.cellInput]);
return (
<div