Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zyc9012 committed Apr 5, 2022
1 parent 3c39991 commit 52a5e3a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
dist
/.vscode
lib
es
.github
scripts
webpack.config.js

# formula-parser
packages/formula-parser
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/modules/ssf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
var SSF = {};
const make_ssf = function make_ssf(SSF) {
SSF.version = "0.11.2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/SheetOverlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52a5e3a

Please sign in to comment.