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

add empty "index.js" to "rules/" directory #92

Closed
donaldpipowitch opened this issue Apr 25, 2017 · 1 comment
Closed

add empty "index.js" to "rules/" directory #92

donaldpipowitch opened this issue Apr 25, 2017 · 1 comment

Comments

@donaldpipowitch
Copy link

donaldpipowitch commented Apr 25, 2017

Given palantir/tslint#2163 it would be nice, if the rules/ directory would contain an empty index.js. Then we could resolve the rules directory with Nodes module resolution which makes it easy to use custom rules in certain situations (symlinked configs, flat vs. non-flat installations...).

Motivation:

  • extends: Allows me to use custom rules from other packages. I get all rules with default configs and can opt-out from rules. If new rules are added in new version I get them automatically.
  • rulesDirectory : Allows me to use custom rules from other packages. I opt-in to use certain rules with my specific configs. If new rules are added in new version I don't get them automatically.
@adidahiya
Copy link
Contributor

open to PRs

mDibyo added a commit to mDibyo/tslint-react that referenced this issue Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants