mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-05 10:27:04 +08:00
fix: lint
This commit is contained in:
parent
3c39991e81
commit
52a5e3ad1e
11
.eslintignore
Normal file
11
.eslintignore
Normal file
@ -0,0 +1,11 @@
|
||||
node_modules
|
||||
dist
|
||||
/.vscode
|
||||
lib
|
||||
es
|
||||
.github
|
||||
scripts
|
||||
webpack.config.js
|
||||
|
||||
# formula-parser
|
||||
packages/formula-parser
|
@ -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,
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable */
|
||||
var SSF = {};
|
||||
const make_ssf = function make_ssf(SSF) {
|
||||
SSF.version = "0.11.2";
|
||||
|
@ -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 (
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user