diff --git a/.eslintrc.json b/.eslintrc.json index 2dc8ba22..4444b489 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,8 +25,7 @@ ], "extends": [ "eslint:recommended", - "plugin:import/errors", - "plugin:import/warnings", + "plugin:import/recommended", "plugin:jest/recommended", "plugin:node/recommended-module", "plugin:promise/recommended", @@ -44,10 +43,22 @@ "project": "./tsconfig.dev.json" }, "extends": [ - "plugin:react/recommended", + "eslint:recommended", "plugin:@typescript-eslint/recommended", + "plugin:import/recommended", + "plugin:import/typescript", + "plugin:jest/recommended", + "plugin:node/recommended-module", + "plugin:promise/recommended", + "plugin:react/recommended", "prettier" - ] + ], + "rules": { + "import/namespace": ["error", { + "allowComputed": true + }], + "node/no-missing-import": "off" + } }, { "files": [ diff --git a/src/backend/models/groups.ts b/src/backend/models/groups.ts index 61767ee0..e4bf0995 100644 --- a/src/backend/models/groups.ts +++ b/src/backend/models/groups.ts @@ -1,8 +1,7 @@ import { EntityRepository, MikroORM, Repository } from '@mikro-orm/core'; import { ORCID as orcidUtils } from 'orcid-utils'; import { validate as uuidValidate } from 'uuid'; -import { Group } from './entities'; -import { User } from './entities'; +import { Group, User } from './entities'; import { getLogger } from '../log'; const log = getLogger('backend:models:groups');