initial setup with nextjs, shadcn, tailwind, prettier, eslint
Some checks failed
Lint / Lint (push) Failing after 7s
Some checks failed
Lint / Lint (push) Failing after 7s
This commit is contained in:
31
eslint.config.mjs
Normal file
31
eslint.config.mjs
Normal file
@@ -0,0 +1,31 @@
|
||||
// @ts-check
|
||||
import { FlatCompat } from '@eslint/eslintrc';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: import.meta.dirname,
|
||||
});
|
||||
|
||||
export default tseslint.config(
|
||||
// Global ignores
|
||||
{
|
||||
ignores: ['.next', '*.mjs', 'node_modules', 'tailwind.config.ts'],
|
||||
},
|
||||
|
||||
// 1. Next.js core rules (includes react, react-hooks, and next)
|
||||
...compat.extends('next/core-web-vitals', 'prettier'),
|
||||
|
||||
// 2. Your strict, type-aware TypeScript rules
|
||||
...tseslint.configs.strictTypeChecked,
|
||||
...tseslint.configs.stylisticTypeChecked,
|
||||
|
||||
// 3. Configuration for type-aware rules
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
project: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
Reference in New Issue
Block a user