Skip to content

Conversation

annie
Copy link
Contributor

@annie annie commented Aug 11, 2016

ref: #5187

adds regex options for exceptions to newIsCap and capIsNew

@eslintbot
Copy link

LGTM

@mention-bot
Copy link

@azhang496, thanks for your PR! By analyzing the annotation information on this pull request, we identified @mysticatea, @vitorbal and @alberto to be potential reviewers

@@ -60,8 +60,10 @@ ruleTester.run("new-cap", rule, {

{ code: "var x = Foo.Bar(42);", options: [{ capIsNewExceptions: ["Bar"] }] },
{ code: "var x = Foo.Bar(42);", options: [{ capIsNewExceptions: ["Foo.Bar"] }] },
{ code: "var x = Foo.Bar(42);", options: [{ capIsNewExceptionPattern: "^Foo\.." }] },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some tests for both new options with just an object, not object property?

@ilyavolodin
Copy link
Member

LGTM, but waiting another day for others to look

@ilyavolodin
Copy link
Member

Thanks @azhang496 for your work on this!

@ilyavolodin ilyavolodin merged commit df01c4f into eslint:master Aug 12, 2016
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants