fi linting to include .jsx files

This commit is contained in:
Cassie Tarakajian 2017-03-02 15:18:58 -05:00
parent 7e9ce95264
commit abbeb7fc60
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,8 @@
import InlineSVG from 'react-inlinesvg';
const githubUrl = require('../../../images/github.svg');
import React, { PropTypes } from 'react';
const githubUrl = require('../../../images/github.svg');
function GithubButton(props) {
return (
<a

View File

@ -5,8 +5,8 @@
"scripts": {
"start": "BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js",
"start:prod": "NODE_ENV=production node index.js",
"lint": "eslint client server",
"lint-fix": "eslint client server --fix",
"lint": "eslint client server --ext .jsx --ext .js",
"lint-fix": "eslint client server --ext .jsx --ext .js --fix",
"build": "NODE_ENV=production webpack --config webpack.config.prod.js --progress",
"test": "echo \"Error: no test specified\" && exit 1",
"fetch-examples": "node fetch-examples.js",

View File

@ -41,7 +41,8 @@ export function updateProject(req, res) {
return;
}
if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) {
return res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' });
res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' });
return;
}
Project.findByIdAndUpdate(req.params.project_id,
{