You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tryFullStack/web/eslint.config.mjs

20 lines
487 B

4 weeks ago
import { dirname } from 'path';
import { fileURLToPath } from 'url';
import { FlatCompat } from '@eslint/eslintrc';
1 month ago
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
const eslintConfig = [
4 weeks ago
...compat.extends('next/core-web-vitals', 'next/typescript'),
1 month ago
{
4 weeks ago
ignores: ['node_modules/**', '.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
1 month ago
},
];
export default eslintConfig;