-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
25 lines (23 loc) · 880 Bytes
/
eslint.config.mjs
File metadata and controls
25 lines (23 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { defineConfig, globalIgnores } from 'eslint/config';
import nextVitals from 'eslint-config-next/core-web-vitals';
import nextTs from 'eslint-config-next/typescript';
import prettier from 'eslint-config-prettier/flat';
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
prettier,
// Custom rule overrides
{
rules: {
// Downgrade to warning - external API responses often need any
'@typescript-eslint/no-explicit-any': 'warn',
// Unused vars with underscore prefix are intentional
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
// Images - allow for external URLs and legacy code
'@next/next/no-img-element': 'warn',
},
},
// Override default ignores
globalIgnores(['.next/**', 'out/**', 'build/**', 'next-env.d.ts', 'node_modules/**']),
]);
export default eslintConfig;