Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add scope for dependency rules #656

Open
mohanraj-r opened this issue Apr 19, 2022 · 1 comment
Open

feat: add scope for dependency rules #656

mohanraj-r opened this issue Apr 19, 2022 · 1 comment

Comments

@mohanraj-r
Copy link

Instead of having the same check expressed with different names for the different scopes (prod, dev etc), it would be good to have a rule specify scope(s).

e.g.

'no-absolute-version-dependencies': ['prod', 'dev'],
'prefer-alphabetical-dependencies': ['peer', 'optional']
@justnewbee
Copy link

makes great sense, but the format might be like `xx: ['error', scope?]', where scope default is all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants