Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Log a message if a rule cannot be found #598

Closed
HamletDRC opened this issue Aug 23, 2015 · 2 comments
Closed

Log a message if a rule cannot be found #598

HamletDRC opened this issue Aug 23, 2015 · 2 comments

Comments

@HamletDRC
Copy link
Contributor

Assuming that you have written all your rule config in a file called "tslint.json" then I would like to see a console error if one of the referenced rules cannot be found.

For example, if I define "no-unused-whatever" and that rule cannot be found, then I want to see something on the console.

It looks like you just need to add a console.log message in the ruleLoader.ts::findRule() function. Right above return undefined

@jkillian
Copy link
Contributor

jkillian commented Feb 5, 2016

This will be handled by #953. Right now it's going to throw an error - do you think just a log message would be better (see #953 (comment))

@adidahiya
Copy link
Contributor

Fix is now available in v3.4.0-dev.1

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

No branches or pull requests

3 participants