Skip to content

Commit 166e0f7

Browse files
lint and CI
- add CI for direct push on main - add no unused vars error
1 parent bad6010 commit 166e0f7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/format_lint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "Format and Lint CI"
22
on:
3+
push:
4+
branches:
5+
- main
36
pull_request:
47
branches:
58
- main

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const compat = new FlatCompat({
1212
const eslintConfig = [
1313
{
1414
ignores: ["src/components/ui"],
15+
rules: {
16+
"no-unused-vars": "error"
17+
}
1518
},
1619
...compat.extends("next/core-web-vitals", "next/typescript"),
1720
];

0 commit comments

Comments
 (0)