Skip to content

LINT(GET-STARTED): Check customization of config #22

@azinit

Description

@azinit

Description

Add posibility to customize config by "concepts"-presets

We should support at least these options for integration:

  • Option 1. All recommended

    "I want all recommended boundaries"

  • Option 2. Only one specific

    "I want ONLY layers-boundaries / slice-boundaries / public-api-boundaries / import-order-boundaries / ... "

  • Option 3. Only few specific

    "I want ONLY layers-boundaries AND private-imports-boundaries"

  • Option 4. Customize impl of configs (see LINT(CUSTOM): Add advanced customization of config #45)
    • "I want to enable shared/styles in public-api linting"
    • "I want to add my own layer into existing"

Suggestion

As variant, to split these options by eslint rules presets:

But if you have better ideas - you're welcome ✊

// Option 1.  All recommended
extends: [
   "@feature-sliced/recommended"
],
// Option 2.  Only one specific
extends: [
   "@feature-sliced/rules/layers",
   // OR "@feature-sliced/rules/slices"
   // OR "@feature-sliced/rules/private-imports"
   // OR "@feature-sliced/rules/import-order"
],
// Option 3. Only few specific
extends: [
   "@feature-sliced/rules/layers",
   "@feature-sliced/rules/private-imports",
],
// Option 4. Customize impl of configs
// No ideas... Maybe "initConfig(...)" setup-helpers?

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions