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

How to install and use in an existing Typescript project #2

Open
uglycoyote opened this issue Nov 9, 2019 · 0 comments
Open

How to install and use in an existing Typescript project #2

uglycoyote opened this issue Nov 9, 2019 · 0 comments

Comments

@uglycoyote
Copy link

uglycoyote commented Nov 9, 2019

Hello, thanks for developing this plugin. Unfortunately I can't understand from the readme how to use it.

I have an existing Typescript project which is already using tslint and I want to add this check.

I tried npm install --save-dev https://github.com/bet365/override-linting-rule on that project, which installed it and added it to the package.json of my project.

But when I run tslint, it doesn't automatically use the rule. How do I get tslint to know about and use the installed override-linting-rule that is under my node_modules folder of my project.

I'd rather not install it globally, I have Typescript and tslint as dev dependencies of this specific project, and would like to be able to use your rule just in the context of that project folder.

I also tried adding node_modules/override-linting-rule and/or node_modules/override-linting-rule/src to the rulesDirectory mentioned in my tslint.json file, but then just got errors that there were no rules in that directory.

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

1 participant