style: update import paths and ESLint configuration

This commit is contained in:
Dominik 2025-06-30 11:00:41 +02:00
parent 2a2c4bc967
commit b3246e8e6f
Signed by: dominik
GPG key ID: 06A4003FC5049644
23 changed files with 55 additions and 29 deletions

View file

@ -1,4 +1,5 @@
import { FlatCompat } from '@eslint/eslintrc';
import noRelativeImportPaths from 'eslint-plugin-no-relative-import-paths';
import { dirname } from 'path';
import { fileURLToPath } from 'url';
@ -14,6 +15,19 @@ const eslintConfig = [
{
ignores: ['src/generated/**', '.next/**', 'public/**'],
},
{
plugins: {
'no-relative-import-paths': noRelativeImportPaths,
},
rules: {
'no-relative-import-paths/no-relative-import-paths': [
'error',
{
allowSameFolder: true,
},
],
},
},
];
export default eslintConfig;