From e7838ac837b7e771977afc13209606804a3bb6eb Mon Sep 17 00:00:00 2001 From: Antoine Jaussoin Date: Sat, 30 Apr 2016 17:05:14 +0100 Subject: [PATCH] Upgrading dependencies, making ESLint happy --- .eslintignore | 1 + .eslintrc | 6 ++++++ app/Component.jsx | 2 ++ app/components/Post.jsx | 8 ++++---- app/index.jsx | 11 ++++++----- app/pages/DevTools.jsx | 12 ++++++------ app/pages/Main.jsx | 12 ++++++------ app/sagas/index.js | 30 ++++++++++++++-------------- app/store/configureStore.js | 5 ++++- config/index.js | 2 ++ package.json | 39 +++++++++++++++++++------------------ server/index.js | 2 +- server/migrate2to3.js | 3 ++- ui.jsx | 1 + 14 files changed, 76 insertions(+), 58 deletions(-) diff --git a/.eslintignore b/.eslintignore index c3fa77416..f04ad99c3 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,3 +3,4 @@ assets/ persist/ stats/ .git/ +coverage/ diff --git a/.eslintrc b/.eslintrc index 50004223a..fc7e387dc 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,6 +6,12 @@ ], "rules": { "indent": ["error", 4], + "react/jsx-indent": ["error", 4], + "react/jsx-first-prop-new-line": 0, + "jsx-a11y/aria-role": 0, + "jsx-a11y/img-has-alt": 0, + "jsx-a11y/img-redundant-alt": 0, + "react/jsx-curly-spacing": 0, "no-console": 0, "no-param-reassign": 0, "comma-dangle": ["error", "never"], diff --git a/app/Component.jsx b/app/Component.jsx index 49b6af83d..92eeb7b0e 100644 --- a/app/Component.jsx +++ b/app/Component.jsx @@ -1,3 +1,5 @@ +/* eslint react/require-render-return: 0 */ + import React, { Component } from 'react'; import shallowCompare from 'react-addons-shallow-compare'; diff --git a/app/components/Post.jsx b/app/components/Post.jsx index bebf6094c..bdbe389a5 100644 --- a/app/components/Post.jsx +++ b/app/components/Post.jsx @@ -21,11 +21,11 @@ class Post extends Component { if (this.props.currentUser === post.user) { return (