Skip to content

two files from same directory in different groups #3215

Description

@sKopheK

why are ProjectLayout and MainLayout not in the same group?

import { ProjectLayout } from 'src/layouts/main/ProjectLayout'

import { propsWithAuthentication } from 'src/core/propsWithAuthentication'
import { TaskSection } from 'src/sections/tasks/task/TaskSection'
import { useTranslation } from 'src/translations/i18n'
import propsWithTranslations from 'src/translations/propsWithTranslations'

vs

import { TableContextProvider } from 'src/components/Table/contexts/TableContext'
import { propsWithAuthentication } from 'src/core/propsWithAuthentication'
import { MainLayout } from 'src/layouts/main/MainLayout'
import { DeployedClassifersContextProvider } from 'src/sections/classifiers/deployed-classifiers/contexts/DeployedClassifiersContext'
import { DeployedClassifiersSection } from 'src/sections/classifiers/deployed-classifiers/DeployedClassifiersSection'
import propsWithTranslations from 'src/translations/propsWithTranslations'

config

'import/order': [
      2,
      {
        named: true,
        'newlines-between': 'always',
        groups: [
          'builtin',
          'external',
          'internal',
          'parent',
          'sibling',
          'index',
          'unknown',
          'object',
          'type',
        ],
        alphabetize: {
          order: 'asc',
          caseInsensitive: true,
        },
        pathGroups: [
          {
            pattern: 'react*',
            group: 'external',
            position: 'before',
          },
          {
            pattern: '@**/**',
            group: 'internal',
          },
          {
            pattern: '@**',
            group: 'internal',
          },
        ],
        pathGroupsExcludedImportTypes: ['builtin'],
      },
    ],

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions