Skip to content

Commit 54a2538

Browse files
committed
fix(ci): eslint errors
1 parent 9de20e5 commit 54a2538

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

eslint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default defineConfig([
1010
globalIgnores(["dist/"]),
1111
{
1212
plugins: { js, react },
13+
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
1314
extends: [
1415
js.configs.recommended,
1516
reactHooks.configs["recommended-latest"],

src/components/EditorHeader/ControlPanel.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ export default function ControlPanel({
684684
let obj = null;
685685
try {
686686
obj = JSON.parse(text);
687-
} catch (error) {
687+
} catch {
688688
return;
689689
}
690690
const v = new Validator();

src/components/EditorHeader/Modal/ImportDiagram.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function ImportDiagram({
4242
let jsonObject = null;
4343
try {
4444
jsonObject = JSON.parse(e.target.result);
45-
} catch (error) {
45+
} catch {
4646
setError({
4747
type: STATUS.ERROR,
4848
message: "The file contains an error.",

0 commit comments

Comments
 (0)