style: update import paths and ESLint configuration
Some checks failed
container-scan / Container Scan (pull_request) Failing after 3m3s
docker-build / docker (pull_request) Failing after 4m4s
tests / Tests (pull_request) Failing after 2m20s

This commit is contained in:
Dominik 2025-06-30 11:00:41 +02:00
parent 2a2c4bc967
commit ce7e1f2952
Signed by: dominik
GPG key ID: 06A4003FC5049644
23 changed files with 57 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,21 @@ 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,
rootDir: 'src',
prefix: "@",
},
],
},
},
];
export default eslintConfig;