feature-sliced / eslint-config

🍰 Lint feature-sliced concepts by existing eslint plugins
https://npmjs.com/@feature-sliced/eslint-config
MIT License
119 stars 4 forks source link

LINT: (Feedback) Refine import/order boundaries #82

Closed azinit closed 2 years ago

azinit commented 2 years ago

Description

    'import/order': [
      2,
      {
        alphabetize: {
          order: 'asc',
          caseInsensitive: true,
        },
        pathGroups: ...  // inherit
        pathGroupsExcludedImportTypes: ...  // inherit
        groups: ... // inherit
      },
    ],
    'import/order': [
      2,
      {
        ...
        'newlines-between': 'always',
         pathGroups: revertedLayers
      },
    ],

Reference

https://github.com/feature-sliced/eslint-config/discussions/75#discussioncomment-2056267 https://github.com/feature-sliced/eslint-config/discussions/75#discussioncomment-2056139