diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..2658952 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,11 @@ +node_modules +dist +/.vscode +lib +es +.github +scripts +webpack.config.js + +# formula-parser +packages/formula-parser \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index ba56789..d6544a9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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, diff --git a/packages/core/src/modules/ssf.js b/packages/core/src/modules/ssf.js index e957364..fed9347 100644 --- a/packages/core/src/modules/ssf.js +++ b/packages/core/src/modules/ssf.js @@ -1,3 +1,4 @@ +/* eslint-disable */ var SSF = {}; const make_ssf = function make_ssf(SSF) { SSF.version = "0.11.2"; diff --git a/packages/react/src/components/SheetOverlay/ScrollBar/index.tsx b/packages/react/src/components/SheetOverlay/ScrollBar/index.tsx index f347ac5..c0597ee 100644 --- a/packages/react/src/components/SheetOverlay/ScrollBar/index.tsx +++ b/packages/react/src/components/SheetOverlay/ScrollBar/index.tsx @@ -15,6 +15,7 @@ const ScrollBar: React.FC = ({ axis }) => { } else { refs.scrollbarY.current!.scrollTop = context.scrollTop; } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [axis === "x" ? context.scrollLeft : context.scrollTop]); return ( diff --git a/packages/react/src/components/SheetOverlay/index.tsx b/packages/react/src/components/SheetOverlay/index.tsx index 7d98456..e61fb69 100644 --- a/packages/react/src/components/SheetOverlay/index.tsx +++ b/packages/react/src/components/SheetOverlay/index.tsx @@ -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 (