Skip to content

Commit

Permalink
TEMP
Browse files Browse the repository at this point in the history
  • Loading branch information
iiison committed Aug 14, 2020
1 parent 6612375 commit f55ecaa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/rules/display-name.js
Expand Up @@ -159,6 +159,12 @@ module.exports = {
},

ArrowFunctionExpression(node) {
/* eslint-disable */
console.log('*******************')
console.log(node)
console.log('*******************')
/* elsint-enable */

if (ignoreTranspilerName || !hasTranspilerName(node)) {
return;
}
Expand Down
14 changes: 14 additions & 0 deletions tests/lib/rules/display-name.js
Expand Up @@ -504,6 +504,20 @@ ruleTester.run('display-name', rule, {
class Link extends Component<LinkProps> {}
`,
parser: parsers.BABEL_ESLINT
}, {
code: `
const x = {
title: "URL",
dataIndex: "url",
key: "url",
render: url => (
<a href={url} target="_blank" rel="noopener noreferrer">
<p>lol</p>
</a>
)
}
`,
parser: parsers.BABEL_ESLINT
}],

invalid: [{
Expand Down

0 comments on commit f55ecaa

Please sign in to comment.