Skip to content

Commit 22e5835

Browse files
committed
eslint: enable @typescript-eslint plugin; add lint:ci and enforce in CI/build; tighten husky
1 parent 2075588 commit 22e5835

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.eslintrc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
{
22
"extends": ["next/core-web-vitals"],
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
35
"rules": {
46
"prefer-const": "error",
57
"no-var": "error",
6-
"no-unused-vars": "warn"
8+
"no-unused-vars": "off",
9+
"@typescript-eslint/no-unused-vars": [
10+
"warn",
11+
{
12+
"argsIgnorePattern": "^_",
13+
"varsIgnorePattern": "^_",
14+
"caughtErrorsIgnorePattern": "^_"
15+
}
16+
]
717
}
818
}

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm format:check && pnpm lint && pnpm type-check
1+
pnpm format:check && pnpm lint:ci && pnpm type-check

app/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
RotateCw,
3131
X,
3232
Focus,
33+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3334
Layers,
3435
Plus,
3536
} from 'lucide-react';

0 commit comments

Comments
 (0)