Run eslint --fix

Summary:
CI is currently failing because of a lint issue, this fixes it and a bunch of other warnings that are auto-fixable.

**Test plan**
Quick manual test, cosmetic changes only.
Closes https://github.com/facebook/react-native/pull/16229

Differential Revision: D6009748

Pulled By: TheSavior

fbshipit-source-id: cabd44fed99dd90bd0b35626492719c139c89f34
This commit is contained in:
Janic Duplessis
2017-10-09 17:37:08 -07:00
committed by Facebook Github Bot
parent 32e5c8e5b5
commit 0cd69e8a02
58 changed files with 501 additions and 505 deletions

View File

@@ -22,29 +22,29 @@ var assertEquals = require('Asserts').assertEquals;
var styles = StyleSheet.create({
A: {
"width": 500,
"height": 500,
'width': 500,
'height': 500,
},
B: {
backgroundColor: "rgb(255, 0, 0)",
"left": 50,
"top": 80,
"width": 200,
"height": 300,
backgroundColor: 'rgb(255, 0, 0)',
'left': 50,
'top': 80,
'width': 200,
'height': 300,
},
C: {
backgroundColor: "rgb(0, 255, 0)",
"left": 100,
"top": 70,
"width": 50,
"height": 150,
backgroundColor: 'rgb(0, 255, 0)',
'left': 100,
'top': 70,
'width': 50,
'height': 150,
},
D: {
backgroundColor: "rgb(0, 0, 255)",
"left": 400,
"top": 100,
"width": 50,
"height": 200,
backgroundColor: 'rgb(0, 0, 255)',
'left': 400,
'top': 100,
'width': 50,
'height': 200,
},
});

View File

@@ -9,7 +9,7 @@
* @providesModule ProgressBarTestModule
*/
"use strict";
'use strict';
var BatchedBridge = require('BatchedBridge');
var React = require('React');

View File

@@ -34,47 +34,47 @@ function assertStrictStringEquals(a, b) {
var TestJavaToJSArgumentsModule = {
receiveBasicTypes: function(str, dbl, bool, null_arg) {
assertEquals("foo", str);
assertEquals('foo', str);
assertEquals(3.14, dbl);
assertEquals(true, bool);
assertEquals(null, null_arg);
},
receiveArrayWithBasicTypes: function(arr) {
assertEquals(4, arr.length);
assertEquals("red panda", arr[0]);
assertEquals('red panda', arr[0]);
assertEquals(1.19, arr[1]);
assertEquals(true, arr[2]);
assertEquals(null, arr[3]);
},
receiveNestedArray: function(arr) {
assertEquals(2, arr.length);
assertEquals("level1", arr[0]);
assertEquals('level1', arr[0]);
var arr2 = arr[1];
assertEquals("level2", arr2[0]);
assertEquals('level2', arr2[0]);
var arr3 = arr2[1];
assertEquals("level3", arr3[0]);
assertEquals('level3', arr3[0]);
},
receiveArrayWithMaps: function(arr) {
assertEquals(2, arr.length);
var m1 = arr[0];
var m2 = arr[1];
assertEquals("m1v1", m1["m1k1"]);
assertEquals("m1v2", m1["m1k2"]);
assertEquals("m2v1", m2["m2k1"]);
assertEquals('m1v1', m1.m1k1);
assertEquals('m1v2', m1.m1k2);
assertEquals('m2v1', m2.m2k1);
},
receiveMapWithBasicTypes: function(map) {
assertEquals("stringValue", map["stringKey"]);
assertEquals(3.14, map["doubleKey"]);
assertEquals(true, map["booleanKey"]);
assertEquals(null, map["nullKey"]);
assertEquals('stringValue', map.stringKey);
assertEquals(3.14, map.doubleKey);
assertEquals(true, map.booleanKey);
assertEquals(null, map.nullKey);
},
receiveNestedMap: function(map) {
var nestedMap = map["nestedMap"];
assertEquals("foxes", nestedMap["animals"]);
var nestedMap = map.nestedMap;
assertEquals('foxes', nestedMap.animals);
},
receiveMapWithArrays: function(map) {
var a1 = map["array1"];
var a2 = map["array2"];
var a1 = map.array1;
var a2 = map.array2;
assertEquals(3, a1.length);
assertEquals(2, a2.length);
assertEquals(3, a1[0]);

View File

@@ -9,7 +9,7 @@
* @providesModule TextInputTestModule
*/
"use strict";
'use strict';
var BatchedBridge = require('BatchedBridge');
var React = require('React');
@@ -94,7 +94,7 @@ class TextInputTestApp extends React.Component {
style={styles.textInputHeight}
autoCorrect={true}
autoFocus={true}
keyboardType='numeric'
keyboardType="numeric"
multiline={true}
secureTextEntry={true}
defaultValue="This is text"
@@ -102,13 +102,13 @@ class TextInputTestApp extends React.Component {
/>
<TextInput
style={styles.textInput}
autoCapitalize='sentences'
autoCapitalize="sentences"
autoCorrect={false}
autoFocus={false}
keyboardType='default'
keyboardType="default"
multiline={false}
secureTextEntry={false}
placeholder='1234'
placeholder="1234"
testID="textInput2"
/>
<TextInput

View File

@@ -9,7 +9,7 @@
* @providesModule ViewRenderingTestModule
*/
"use strict";
'use strict';
var BatchedBridge = require('BatchedBridge');
var React = require('React');
@@ -21,7 +21,7 @@ var renderApplication = require('renderApplication');
var styles = StyleSheet.create({
view: {
opacity: 0.75,
backgroundColor: "rgb(255, 0, 0)",
backgroundColor: 'rgb(255, 0, 0)',
},
});
@@ -44,7 +44,7 @@ class MarginSampleApp extends React.Component {
updateMargins = this.setState.bind(this, {margin: 15});
return (
<View style={{margin: this.state.margin, marginLeft: 20}} collapsable={false}/>
)
);
}
}