23 lines
642 B
JavaScript
23 lines
642 B
JavaScript
|
|
import eslint from '@eslint/js';
|
||
|
|
import tseslint from 'typescript-eslint';
|
||
|
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
eslint.configs.recommended,
|
||
|
|
...tseslint.configs.recommended,
|
||
|
|
eslintConfigPrettier,
|
||
|
|
{
|
||
|
|
ignores: ['dist/', '.next/', 'node_modules/', 'coverage/', 'prisma/generated/', '.turbo/', '**/next-env.d.ts'],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ['packages/*/src/**/*.{ts,tsx}'],
|
||
|
|
rules: {
|
||
|
|
'@typescript-eslint/no-unused-vars': [
|
||
|
|
'warn',
|
||
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
||
|
|
],
|
||
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
);
|