[lint] Update and fix
Paul O’Shannessy committed
Sep 25, 2015 at 12:32 UTC
7037ef9d8be6cd70d5b0d53dac12c90d8ed7f7ec
7 files changed
+10
-17
package.json
+3
-3
@@ -4,7 +4,7 @@
4
"version": "0.14.0-rc1",
5
"devDependencies": {
6
"babel": "^5.8.3",
7
- "babel-eslint": "^4.0.5",
7
+ "babel-eslint": "^4.1.3",
8
"benchmark": "^1.0.0",
9
"browserify": "^9.0.3",
10
"bundle-collapser": "^1.1.1",
@@ -12,8 +12,8 @@
12
"del": "^1.2.0",
13
"derequire": "^2.0.0",
14
"envify": "^3.0.0",
15
- "eslint": "^1.4.3",
16
- "eslint-plugin-react": "^3.4.0",
15
+ "eslint": "^1.5.1",
16
+ "eslint-plugin-react": "^3.4.2",
17
"eslint-plugin-react-internal": "file:eslint-rules",
18
"fbjs": "^0.2.0",
19
"fbjs-scripts": "^0.2.0",
src/isomorphic/classic/class/__tests__/ReactClassMixin-test.js
+1
-2
@@ -371,8 +371,7 @@ describe('ReactClass-mixin', function() {
371
instance = ReactTestUtils.renderIntoDocument(instance);
372
});
373
374
- it('should include the mixin keys in even if their values are falsy',
375
- function() {
374
+ it('should include the mixin keys in even if their values are falsy', function() {
375
var mixin = {
376
keyWithNullValue: null,
377
randomCounter: 0,
src/isomorphic/classic/element/__tests__/ReactElementValidator-test.js
+2
-4
@@ -246,8 +246,7 @@ describe('ReactElementValidator', function() {
246
);
247
});
248
249
- it('gives a helpful error when passing null, undefined, boolean, or number',
250
- function() {
249
+ it('gives a helpful error when passing null, undefined, boolean, or number', function() {
250
spyOn(console, 'error');
251
React.createElement(undefined);
252
React.createElement(null);
@@ -278,8 +277,7 @@ describe('ReactElementValidator', function() {
277
expect(console.error.calls.length).toBe(4);
278
});
279
281
- it('includes the owner name when passing null, undefined, boolean, or number',
282
- function() {
280
+ it('includes the owner name when passing null, undefined, boolean, or number', function() {
281
spyOn(console, 'error');
282
var ParentComp = React.createClass({
283
render: function() {
src/isomorphic/modern/class/__tests__/ReactES6Class-test.js
+1
-2
@@ -317,8 +317,7 @@ describe('ReactES6Class', function() {
317
]);
318
});
319
320
- it('warns when classic properties are defined on the instance, ' +
321
- 'but does not invoke them.', function() {
320
+ it('warns when classic properties are defined on the instance, but does not invoke them.', function() {
321
spyOn(console, 'error');
322
var getDefaultPropsWasCalled = false;
323
var getInitialStateWasCalled = false;
src/renderers/dom/client/__tests__/ReactMount-test.js
+1
-2
@@ -177,8 +177,7 @@ describe('ReactMount', function() {
177
});
178
179
if (WebComponents !== undefined) {
180
- it('should allow mounting/unmounting to document fragment container',
181
- function() {
180
+ it('should allow mounting/unmounting to document fragment container', function() {
181
var shadowRoot;
182
var proto = Object.create(HTMLElement.prototype, {
183
createdCallback: {
src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js
+1
-2
@@ -324,8 +324,7 @@ describe('ReactCompositeComponent', function() {
324
);
325
});
326
327
- it('should silently allow `setState`, not call cb on unmounting components',
328
- function() {
327
+ it('should silently allow `setState`, not call cb on unmounting components', function() {
328
var cbCalled = false;
329
var container = document.createElement('div');
330
document.body.appendChild(container);
src/renderers/shared/reconciler/__tests__/ReactMultiChildReconcile-test.js
+1
-2
@@ -541,8 +541,7 @@ describe('ReactMultiChildReconcile', function() {
541
});
542
543
544
- it('should remove nulled out children and ignore ' +
545
- 'new null children', function() {
544
+ it('should remove nulled out children and ignore new null children', function() {
545
var PROPS_SEQUENCE = [
546
{
547
usernameToStatus: {