Skip to content
Discussion options

You must be logged in to vote

Yes, it is totally clear, and it is very similar to what we discussed in #19.

I think we need to be able to define a module via file-patterns. We just have to write in the docs that this is an edge case, because you currently just have to look at the directory to know to which module it belongs to. That would change dramatically.

We also need think about edge cases. What happens if a "static" module is applied to the same directory as one with selectors?

export const config: SheriffConfig = {
  modules: {
    'state': [
      { selector: '**/*actions.ts', tags: ['type:state-actions'] },
      { tags: ['type:state'] }
    ],
  }
};

Does the first one always get priority,

What happens with …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@michaelbe812
Comment options

michaelbe812 Apr 15, 2025
Collaborator Author

@rainerhahnekamp
Comment options

Answer selected by michaelbe812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants