Skip to content

Commit ea2556b

Browse files
chore(lint): modernize ESLint configuration and transition to Flat Config
1 parent 6a9f033 commit ea2556b

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

.eslintrc.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

eslint.config.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,16 @@ export default [
5454
'@typescript-eslint': typescript,
5555
},
5656
rules: {
57-
'@typescript-eslint/no-unused-vars': 'error',
58-
'@typescript-eslint/no-explicit-any': 'warn',
57+
'no-unused-vars': 'off',
58+
'@typescript-eslint/no-unused-vars': [
59+
'error',
60+
{
61+
argsIgnorePattern: '^_',
62+
varsIgnorePattern: '^_',
63+
caughtErrorsIgnorePattern: '^_',
64+
},
65+
],
66+
'@typescript-eslint/no-explicit-any': 'off',
5967
'prefer-const': 'error',
6068
'no-var': 'error',
6169
'no-console': 'off',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"genkit:watch": "genkit start -- tsx --watch src/ai/dev.ts",
1010
"build": "NODE_ENV=production next build",
1111
"start": "next start",
12-
"lint": "eslint . --ext .ts,.tsx,.js,.jsx --max-warnings=0",
13-
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
12+
"lint": "eslint . --max-warnings=0",
13+
"lint:fix": "eslint . --fix",
1414
"typecheck": "tsc --noEmit",
1515
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
1616
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"",

0 commit comments

Comments
 (0)