Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Disable the use of console.error #427

Merged

Conversation

astorije
Copy link
Contributor

@astorije astorije commented May 2, 2018

I have noticed that this project already locally disables this rule (as if it were present in the config) here and here (the only 2 uses of console.error in this repo).

We realized console.error was not forbidden in the recommended configuration and think it would be a sane thing to enforce by default. I reckon this will be a breaking change however.

I have noticed that this project already locally disables this rule (as if it were present in the config) at https://github.com/astorije/tslint-microsoft-contrib/blame/master/src/functionNameRule.ts#L101-L103 and https://github.com/astorije/tslint-microsoft-contrib/blame/master/src/reactUnusedPropsAndStateRule.ts#L71-L73.

We realized `console.error` was not forbidden in the recommended configuration and think it would be a sane thing to enforce by default. I reckon this will be a breaking change however.
@astorije
Copy link
Contributor Author

Hey there, any chance someone could take a look at this PR (and other open PRs)? 🙂
Thanks in advance!!

@JoshuaKGoldberg
Copy link

Hey @astorije, sorry about the delay! Agreed that this should be the case (and that it's a breaking change). Should be noted in the next release.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 2cc469b into microsoft:master Jul 4, 2018
@astorije astorije deleted the astorije/no-console-error branch July 4, 2018 04:36
@JoshuaKGoldberg JoshuaKGoldberg added this to the 5.0.4 milestone Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants