Skip to content

Commit 52a5e3a

Browse files
committed
fix: lint
1 parent 3c39991 commit 52a5e3a

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

.eslintignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
dist
3+
/.vscode
4+
lib
5+
es
6+
.github
7+
scripts
8+
webpack.config.js
9+
10+
# formula-parser
11+
packages/formula-parser

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
"no-console": [1, { allow: ["warn", "error"] }],
3232
"no-lonely-if": 0,
3333
"no-new-func": 0,
34+
"no-template-curly-in-string": 0,
3435
"jsx-a11y/no-static-element-interactions": 0,
3536
"jsx-a11y/no-noninteractive-tabindex": 0,
3637
"jsx-a11y/click-events-have-key-events": 0,

packages/core/src/modules/ssf.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
var SSF = {};
23
const make_ssf = function make_ssf(SSF) {
34
SSF.version = "0.11.2";

packages/react/src/components/SheetOverlay/ScrollBar/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const ScrollBar: React.FC<Props> = ({ axis }) => {
1515
} else {
1616
refs.scrollbarY.current!.scrollTop = context.scrollTop;
1717
}
18+
// eslint-disable-next-line react-hooks/exhaustive-deps
1819
}, [axis === "x" ? context.scrollLeft : context.scrollTop]);
1920

2021
return (

packages/react/src/components/SheetOverlay/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const SheetOverlay: React.FC = () => {
9696
useEffect(() => {
9797
// ensure cell input is always focused to accept first key stroke on cell
9898
refs.cellInput.current?.focus();
99-
}, [context.luckysheet_select_save]);
99+
}, [context.luckysheet_select_save, refs.cellInput]);
100100

101101
return (
102102
<div

0 commit comments

Comments
 (0)