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 (