fi linting to include .jsx files
This commit is contained in:
parent
7e9ce95264
commit
abbeb7fc60
3 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
||||||
import InlineSVG from 'react-inlinesvg';
|
import InlineSVG from 'react-inlinesvg';
|
||||||
const githubUrl = require('../../../images/github.svg');
|
|
||||||
import React, { PropTypes } from 'react';
|
import React, { PropTypes } from 'react';
|
||||||
|
|
||||||
|
const githubUrl = require('../../../images/github.svg');
|
||||||
|
|
||||||
function GithubButton(props) {
|
function GithubButton(props) {
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js",
|
"start": "BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js",
|
||||||
"start:prod": "NODE_ENV=production node index.js",
|
"start:prod": "NODE_ENV=production node index.js",
|
||||||
"lint": "eslint client server",
|
"lint": "eslint client server --ext .jsx --ext .js",
|
||||||
"lint-fix": "eslint client server --fix",
|
"lint-fix": "eslint client server --ext .jsx --ext .js --fix",
|
||||||
"build": "NODE_ENV=production webpack --config webpack.config.prod.js --progress",
|
"build": "NODE_ENV=production webpack --config webpack.config.prod.js --progress",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"fetch-examples": "node fetch-examples.js",
|
"fetch-examples": "node fetch-examples.js",
|
||||||
|
|
|
@ -41,7 +41,8 @@ export function updateProject(req, res) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) {
|
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,
|
Project.findByIdAndUpdate(req.params.project_id,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue