Skip to content

Commit 06697f5

Browse files
committed
Add eslint for CI and git hooks
Signed-off-by: Archit Pandey <archpndy@gmail.com>
1 parent 643615c commit 06697f5

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build": "vite build",
2020
"serve": "vite preview",
2121
"prepare": "husky install",
22-
"lint": "prettier --check .",
22+
"lint": "prettier --check . && eslint src/**/*.jsx",
2323
"format": "prettier --write ."
2424
},
2525
"devDependencies": {

src/cells/NumberCell.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default function NumberCell({
3131
value: value.value,
3232
});
3333
}
34+
// eslint-disable-next-line react-hooks/exhaustive-deps
3435
}, [value.update, columnId, rowIndex]);
3536

3637
return (

src/cells/SelectCell.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default function SelectCell({
3737
value: value.value,
3838
});
3939
}
40+
// eslint-disable-next-line react-hooks/exhaustive-deps
4041
}, [value, columnId, rowIndex]);
4142

4243
useEffect(() => {

src/cells/TextCell.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export default function TextCell({
3131
value: value.value,
3232
});
3333
}
34+
35+
// eslint-disable-next-line react-hooks/exhaustive-deps
3436
}, [value.update, columnId, rowIndex]);
3537

3638
return (

0 commit comments

Comments
 (0)