Skip to content

Commit

Permalink
test: Breaking test cases for implicit-return issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Oct 2, 2018
1 parent 7336193 commit dd3b862
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sideEffect() -> 1

[].filter(x ->
sideEffect(x)
true
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"3:11 Expected to return a value in arrow function. array-callback-return"
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": [ "react" ],
"rules": {
"no-unused-vars": 1,
"no-undef": 1,
"array-callback-return": 1,
"react/require-render-return": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

class C extends React.Component:
render() ->
<div />

export { C }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"3:1 Your render method should have return statement react/require-render-return"
]

0 comments on commit dd3b862

Please sign in to comment.