Skip to content

Commit 901bcdc

Browse files
Lint all files
1 parent 8d8f949 commit 901bcdc

15 files changed

+785
-789
lines changed

karma.conf.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
11
// Karma configuration
22
// Generated on Tue Jul 28 2015 16:29:51 GMT+0200 (CEST)
3-
var webpack = require("webpack");
4-
var path = require("path");
3+
var webpack = require('webpack')
4+
var path = require('path')
55

6-
var CONTINUOUS_INTEGRATION = process.env.CONTINUOUS_INTEGRATION === "true";
6+
var CONTINUOUS_INTEGRATION = process.env.CONTINUOUS_INTEGRATION === 'true'
77

8-
module.exports = function(config) {
8+
module.exports = function (config) {
99
config.set({
10-
frameworks: ["mocha", "sinon", "chai"],
10+
frameworks: ['mocha', 'sinon', 'chai'],
1111

12-
browsers: [CONTINUOUS_INTEGRATION ? "Firefox" : "Chrome"],
12+
browsers: [CONTINUOUS_INTEGRATION ? 'Firefox' : 'Chrome'],
1313

1414
singleRun: CONTINUOUS_INTEGRATION,
1515

1616
files: [
17-
"test/index.js"
17+
'test/index.js'
1818
],
1919

2020
preprocessors: {
21-
"test/index.js": ["webpack", "sourcemap"]
21+
'test/index.js': ['webpack', 'sourcemap']
2222
},
2323

24-
reporters: ["dots", "coverage"],
24+
reporters: ['dots', 'coverage'],
2525

2626
webpack: {
27-
devtool: "inline-source-map",
27+
devtool: 'inline-source-map',
2828
module: {
2929
loaders: [
3030
{
3131
test: /\.jsx?$/,
3232
exclude: /node_modules/,
33-
loader: "babel"
33+
loader: 'babel'
3434
},
3535
{
3636
test: /\.jsx?$/,
37-
include: path.resolve(__dirname, "src"),
38-
loader: "isparta"
37+
include: path.resolve(__dirname, 'src'),
38+
loader: 'isparta'
3939
}
4040
]
4141
},
4242
plugins: [
4343
new webpack.DefinePlugin({
44-
"process.env.NODE_ENV": JSON.stringify("test")
44+
'process.env.NODE_ENV': JSON.stringify('test')
4545
})
4646
],
4747
resolve: {
48-
extensions: ["", ".jsx", ".js"]
48+
extensions: ['', '.jsx', '.js']
4949
}
5050
},
5151

5252
coverageReporter: {
5353
reporters: [
54-
{ type: "text-summary" },
55-
{ type: "html", dir: "coverage/" },
56-
{ type: "lcov" }
54+
{ type: 'text-summary' },
55+
{ type: 'html', dir: 'coverage/' },
56+
{ type: 'lcov' }
5757
]
5858
},
5959

6060
webpackServer: {
6161
noInfo: true
6262
}
63-
});
64-
};
63+
})
64+
}

server.js

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
1-
var path = require("path");
2-
var express = require("express");
3-
var webpack = require("webpack");
4-
var merge = require("lodash/merge");
5-
var config = merge({}, require("./webpack.docs.config"));
1+
var express = require('express')
2+
var webpack = require('webpack')
3+
var merge = require('lodash/merge')
4+
var config = merge({}, require('./webpack.docs.config'))
65

7-
config.devtool = "cheap-module-eval-source-map";
8-
config.entry.unshift("webpack-hot-middleware/client");
6+
config.devtool = 'cheap-module-eval-source-map'
7+
config.entry.unshift('webpack-hot-middleware/client')
98
config.plugins.push(
109
new webpack.HotModuleReplacementPlugin(),
1110
new webpack.NoErrorsPlugin()
12-
);
11+
)
1312

14-
var app = express();
15-
var compiler = webpack(config);
13+
var app = express()
14+
var compiler = webpack(config)
1615

17-
app.use(require("webpack-dev-middleware")(compiler, {
16+
app.use(require('webpack-dev-middleware')(compiler, {
1817
noInfo: true,
1918
publicPath: config.output.publicPath
20-
}));
19+
}))
2120

22-
app.use(require("webpack-hot-middleware")(compiler));
21+
app.use(require('webpack-hot-middleware')(compiler))
2322

24-
app.use(express.static("docs-site"));
23+
app.use(express.static('docs-site'))
2524

26-
app.listen(8080, "localhost", function(err) {
25+
app.listen(8080, 'localhost', function (err) {
2726
if (err) {
28-
console.log(err);
29-
return;
27+
console.log(err)
28+
return
3029
}
3130

32-
console.log("Listening at http://localhost:8080");
33-
});
31+
console.log('Listening at http://localhost:8080')
32+
})

test/.eslintrc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"globals": {
77
"assert": true,
88
"describe": true,
9-
"expect": true
10-
},
11-
12-
"rules": {
13-
"react/display-name": 0,
9+
"expect": true,
10+
"sinon": true
1411
}
1512
}

test/calendar_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import YearDropdown from '../src/year_dropdown'
77
describe('Calendar', function () {
88
var dateFormat = 'MMMM YYYY'
99

10-
function getCalendar (extraProps) {
10+
function getCalendar (extraProps) { // eslint-disable-line react/display-name
1111
return <Calendar
1212
dateFormat={dateFormat}
1313
onSelect={() => {}}

0 commit comments

Comments
 (0)