[lint] Update and fix

This commit is contained in:
Paul O’Shannessy
2015-09-25 12:32:51 -07:00
parent 5df3e8405f
commit a87b43a4c9
7 changed files with 10 additions and 17 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
"version": "0.14.0-rc1",
"devDependencies": {
"babel": "^5.8.3",
"babel-eslint": "^4.0.5",
"babel-eslint": "^4.1.3",
"benchmark": "^1.0.0",
"browserify": "^9.0.3",
"bundle-collapser": "^1.1.1",
@@ -12,8 +12,8 @@
"del": "^1.2.0",
"derequire": "^2.0.0",
"envify": "^3.0.0",
"eslint": "^1.4.3",
"eslint-plugin-react": "^3.4.0",
"eslint": "^1.5.1",
"eslint-plugin-react": "^3.4.2",
"eslint-plugin-react-internal": "file:eslint-rules",
"fbjs": "^0.2.0",
"fbjs-scripts": "^0.2.0",
@@ -371,8 +371,7 @@ describe('ReactClass-mixin', function() {
instance = ReactTestUtils.renderIntoDocument(instance);
});
it('should include the mixin keys in even if their values are falsy',
function() {
it('should include the mixin keys in even if their values are falsy', function() {
var mixin = {
keyWithNullValue: null,
randomCounter: 0,
@@ -246,8 +246,7 @@ describe('ReactElementValidator', function() {
);
});
it('gives a helpful error when passing null, undefined, boolean, or number',
function() {
it('gives a helpful error when passing null, undefined, boolean, or number', function() {
spyOn(console, 'error');
React.createElement(undefined);
React.createElement(null);
@@ -278,8 +277,7 @@ describe('ReactElementValidator', function() {
expect(console.error.calls.length).toBe(4);
});
it('includes the owner name when passing null, undefined, boolean, or number',
function() {
it('includes the owner name when passing null, undefined, boolean, or number', function() {
spyOn(console, 'error');
var ParentComp = React.createClass({
render: function() {
@@ -317,8 +317,7 @@ describe('ReactES6Class', function() {
]);
});
it('warns when classic properties are defined on the instance, ' +
'but does not invoke them.', function() {
it('warns when classic properties are defined on the instance, but does not invoke them.', function() {
spyOn(console, 'error');
var getDefaultPropsWasCalled = false;
var getInitialStateWasCalled = false;
@@ -177,8 +177,7 @@ describe('ReactMount', function() {
});
if (WebComponents !== undefined) {
it('should allow mounting/unmounting to document fragment container',
function() {
it('should allow mounting/unmounting to document fragment container', function() {
var shadowRoot;
var proto = Object.create(HTMLElement.prototype, {
createdCallback: {
@@ -324,8 +324,7 @@ describe('ReactCompositeComponent', function() {
);
});
it('should silently allow `setState`, not call cb on unmounting components',
function() {
it('should silently allow `setState`, not call cb on unmounting components', function() {
var cbCalled = false;
var container = document.createElement('div');
document.body.appendChild(container);
@@ -541,8 +541,7 @@ describe('ReactMultiChildReconcile', function() {
});
it('should remove nulled out children and ignore ' +
'new null children', function() {
it('should remove nulled out children and ignore new null children', function() {
var PROPS_SEQUENCE = [
{
usernameToStatus: {