diff --git a/.eslintrc b/.eslintrc
index afa6e369..cb9e01d5 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -109,7 +109,6 @@
"quote-props": ["warn", "consistent-as-needed"],
"quotes": ["error", "single", "avoid-escape"],
"radix": "error",
- "react/jsx-wrap-multilines": "error",
"react/no-string-refs": "error",
"react/jsx-boolean-value": "error",
"react/jsx-closing-bracket-location": ["error", "line-aligned"],
@@ -117,7 +116,6 @@
"react/jsx-equals-spacing": "error",
"react/jsx-first-prop-new-line": ["error", "multiline"],
"react/jsx-indent": ["error", 2],
- "react/jsx-no-bind": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prefer-stateless-function": "error",
diff --git a/js/components/Character.jsx b/js/components/Character.jsx
index 63e0de3e..3706470d 100644
--- a/js/components/Character.jsx
+++ b/js/components/Character.jsx
@@ -1,7 +1,7 @@
import React from 'react';
module.exports = (props) => {
- const char = '' + props.children;
+ const char = `${props.children}`;
const className = `character character-${char.toLowerCase().charCodeAt(0)}`;
return
{props.children}
;
};
diff --git a/js/components/CharacterString.jsx b/js/components/CharacterString.jsx
index 3d5dc6ed..799ca8e7 100644
--- a/js/components/CharacterString.jsx
+++ b/js/components/CharacterString.jsx
@@ -2,7 +2,7 @@ import React from 'react';
import Character from './Character.jsx';
module.exports = (props) => {
- const text = '' + props.children;
+ const text = `${props.children}`;
const chars = text.split('');
return
{chars.map((character, index) => {
diff --git a/js/components/EqGraph.jsx b/js/components/EqGraph.jsx
index d8ce74ea..f3c3d998 100644
--- a/js/components/EqGraph.jsx
+++ b/js/components/EqGraph.jsx
@@ -19,10 +19,10 @@ class EqGraph extends React.Component {
}
componentDidMount() {
- this.canvasCtx = this.refs.canvas.getContext('2d');
+ this.canvasCtx = this.canvas.getContext('2d');
this.canvasCtx.imageSmoothingEnabled = false;
- this.width = this.refs.canvas.width * 1; // Cast to int
- this.height = this.refs.canvas.height * 1; // Cast to int
+ this.width = this.canvas.width * 1; // Cast to int
+ this.height = this.canvas.height * 1; // Cast to int
}
componentDidUpdate() {
@@ -113,7 +113,7 @@ class EqGraph extends React.Component {
render() {
return