UNPKG

1.95 kBJavaScriptView Raw
1// eslint-disable-next-line
2import React from 'react'
3
4/* eslint-disable no-unused-vars */
5
6const ComponentZeroProp = () => < input />
7const ComponentZeroProp1 = () => < div ></ div >
8const ComponentOneProp = (one) => <input one={one}/>
9const ComponentTwoProp = (one, two) => <input one={one} two={two}/>
10const ComponentTreeProp = (one, two, tree) => <input one={one} two={two} tree={tree}/>
11const ComponentFourProp = (one, two, tree, four) => <input one={one} two={two} tree={tree} four={four}/>
12const ComponentFiveProp = (one, two, tree, four, five) => <input one={one} two={two} tree={tree} four={four} five={five}/>
13const ComponentSixProp = (one, two, tree, four, five, six) => <input one={one} two={two} tree={tree} four={four} five={five} six={six}/>
14const ComponentSevenProp = (one, two, tree, four, five, six, seven) => <input one={one} two={two} tree={tree} four={four} five={five} six={six} seven={seven}/>
15
16
17const ComponentText0 = () => <input text='some text' />
18const ComponentText1 = () => <input text={'some text'} />
19const ComponentText2 = () => <input text="some text" />
20const ComponentText3 = () => <input text={"some text"} />
21const ComponentText4 = () => <input text={"'some' text"} />
22const ComponentText5 = () => <input text={"'some' text"} />
23const ComponentText6 = () => <input text={'"some" text'} />
24const ComponentText7 = (text) => <input text={"'some' " + text + " text"} />
25const ComponentText8 = (text) => <input text={`${text}`} />
26
27const array = []
28const array1 = ['']
29const array2 = ['one', 'two']
30const array3 = ['one', 'two', "tree"]
31const array4 = [
32 'one',
33 'two',
34 "tree"]
35
36const object = {}
37const object1 = { 1: 'test'}
38const object2 = { 1: 'test' }
39const object3 = {1: 'test'}
40const object4 = {1: 'test', 2: "test"}
41const object5 = {
42 1: 'test',
43 2: "test"
44}
45const x = a =>
46 a ?
47 1
48 :
49 2;
50
51function testNewLineBeforeReturn(z) {
52 const y = z;
53 return y;
54}
55
56/* eslint-enable no-unused-vars */