Permalink
Browse files

Bump dependencies, use eslint-react-plugin

  • Loading branch information...
stewart committed May 24, 2015
1 parent b280886 commit bfaf2768bc469898a7bfef8c4ea560624752bfee
View
@@ -1,32 +1,55 @@
{
"ecmaFeatures": {
"modules": true,
"jsx": true
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"React": true,
"EventSource": true,
env:
browser: true
node: true
es6: true
"TestUtils": true,
"source": true,
"before": true,
"beforeEach": true,
"afterEach": true,
"describe": true,
"context": true,
"it": true,
"spy": true,
"expect": true
},
"rules": {
"indent": [2, 2],
"no-var": true,
"quotes": [1, "double"],
"max-len": [2, 80, 4]
}
}
globals:
EventSource: true
plugins:
- react
ecmaFeatures:
modules: true
jsx: true
rules:
camelcase: [2, {properties: "always"}]
comma-dangle: "always-multiline"
comma-spacing: [2, {before: false, after: true}]
comma-style: [2, "last"]
handle-callback-err: [2, "^.*(e|E)rr" ]
indent: [2, 2]
key-spacing: [2, { beforeColon: false, afterColon: true }]
max-depth: [1, 3]
max-len: [1, 80, 4]
max-nested-callbacks: [1, 3]
no-cond-assign: 2
no-console: 0
no-var: 1
no-constant-condition: 2
no-dupe-args: 2
no-dupe-keys: 2
no-else-return: 2
no-empty: 2
no-lonely-if: 2
no-multiple-empty-lines: 2
no-nested-ternary: 2
no-reserved-keys: 2
no-self-compare: 2
no-sync: 1
no-throw-literal: 2
no-underscore-dangle: 0
quote-props: [2, "as-needed"]
quotes: [2, "double", "avoid-escape"]
radix: 2
semi-spacing: [2, {before: false, after: true}]
semi: [2, "always"]
space-after-keywords: [2, "always"]
space-before-blocks: [2, "always"]
space-before-function-paren: [1, "never"]
space-in-parens: [2, "never"]
spaced-line-comment: [1, "always"]
valid-jsdoc: 2
yoda: [2, "never"]
react/jsx-uses-vars: 1
View
@@ -14,25 +14,26 @@
"license": "Apache 2.0",
"devDependencies": {
"browserify": "9.0.8",
"uglify-js": "2.4.19",
"watchify": "3.1.0",
"eslint": "0.19.0",
"browserify": "10.2.1",
"uglify-js": "2.4.23",
"watchify": "3.2.1",
"eslint": "0.21.2",
"eslint-plugin-react": "2.3.0",
"express": "4.12.3",
"express": "4.12.4",
"superagent": "1.1.0",
"react": "0.13.1",
"react-router": "0.13.2",
"superagent": "1.2.0",
"react": "0.13.3",
"react-router": "0.13.3",
"babelify": "6.0.2",
"babelify": "6.1.1",
"envify": "3.4.0",
"sinon-chai": "2.7.0",
"chai": "2.2.0",
"mocha": "2.2.4",
"chai": "2.3.0",
"mocha": "2.2.5",
"sinon": "1.14.1",
"jsdom": "3.1.2",
"babel": "5.1.2"
"babel": "5.4.7"
}
}
View
@@ -0,0 +1,16 @@
globals:
source: true
describe: true
it: true
TestUtils: true
expect: true
before: true,
beforeEach: true
spy: true
after: true
afterEach: true
context: true
rules:
max-nested-callbacks: 0
no-unused-expressions: 0
@@ -1,5 +1,3 @@
/* eslint no-unused-vars:0 */
"use strict";
const CommandTool = source("components/command-tool.es");
@@ -1,5 +1,3 @@
/* eslint no-unused-vars:0 no-unused-expressions:0 */
"use strict";
const EventTool = source("components/event-tool.es");
@@ -54,7 +52,7 @@ describe("EventTool", () => {
it("updates state.name when the input is edited", () => {
let input = search("input");
TestUtils.Simulate.change(input, { target: { value: "new-event"} } );
TestUtils.Simulate.change(input, { target: { value: "new-event"} });
expect(component.state.name).to.be.eql("new-event");
});
View
@@ -1,5 +1,7 @@
"use strict";
/* eslint no-var: 0 */
process.env.NODE_ENV = "test";
var path = require("path");
@@ -2,7 +2,7 @@ import React from "react";
import {post} from "superagent";
function coerceParams(params) {
var opts = {};
const opts = {};
params.forEach(function(param) {
if (param.key === "") {
@@ -24,7 +24,7 @@ function coerceParams(params) {
}
function generateOptions(arr) {
return arr.map((val) => <option key={val} value={val}> {val} </option> );
return arr.map((val) => <option key={val} value={val}> {val} </option>);
}
export default React.createClass({
@@ -29,7 +29,7 @@ export default React.createClass({
<section className="row">
<CommandTool commands={bot.commands} endpoint={endpoint} />
</section>
)
);
}
},

0 comments on commit bfaf276

Please sign in to comment.