diff --git a/.eslintrc.json b/.eslintrc.json
index 293657679..5cdd4dfa9 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -5,8 +5,16 @@
},
"extends": "eslint:recommended",
"parserOptions": {
- "ecmaVersion": 2017
+ "ecmaVersion": 2017,
+ "sourceType": "module",
+ "ecmaFeatures": {
+ "jsx": true,
+ "experimentalObjectRestSpread": true
+ }
},
+ "plugins": [
+ "react"
+ ],
"rules": {
"indent": ["error",
2
@@ -53,6 +61,8 @@
}],
"newline-per-chained-call": ["error", {
"ignoreChainWithDepth": 2
- }]
+ }],
+ "react/jsx-uses-react": "error",
+ "react/jsx-uses-vars": "error"
}
}
diff --git a/client/.babelrc b/client/.babelrc
index d4a414b9f..e054da899 100644
--- a/client/.babelrc
+++ b/client/.babelrc
@@ -2,6 +2,8 @@
"extends": "../.babelrc",
"plugins": [
"transform-async-to-generator",
- "syntax-dynamic-import"
+ "syntax-dynamic-import",
+ "transform-regenerator",
+ "transform-runtime"
]
}
diff --git a/client/coral-embed-stream/src/Comment.js b/client/coral-embed-stream/src/Comment.js
index b89958278..20c4de893 100644
--- a/client/coral-embed-stream/src/Comment.js
+++ b/client/coral-embed-stream/src/Comment.js
@@ -19,6 +19,7 @@ import FlagComment from 'coral-plugin-flags/FlagComment';
import LikeButton from 'coral-plugin-likes/LikeButton';
import {BestButton, IfUserCanModifyBest, BEST_TAG, commentIsBest, BestIndicator} from 'coral-plugin-best/BestButton';
import LoadMore from 'coral-embed-stream/src/LoadMore';
+import Pluggable from './Pluggable';
import styles from './Comment.css';
@@ -168,7 +169,6 @@ class Comment extends React.Component {
deleteAction={deleteAction}
showSignInDialog={showSignInDialog}
currentUser={currentUser} />
-
{
!disableReply &&
@@ -189,6 +189,7 @@ class Comment extends React.Component {
+