diff --git a/.eslintrc.json b/.eslintrc.json
index 16afd70..9053717 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -25,9 +25,6 @@
"jest"
],
"rules": {
- "prettier/prettier": "warn",
- "react/prop-types": "warn",
- "no-prototype-builtins": "warn",
- "react/no-string-refs": "warn"
+ "prettier/prettier": "warn"
}
}
diff --git a/src/App.jsx b/src/App.jsx
index e5b95b8..46a306c 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -262,7 +262,7 @@ class App extends IPCContainer {
col={0}
colSpan={'remain'}
row={10}
- rowSpan={'17'}
+ rowSpan={17}
key={'md_' + key++}
dxStyle={{ padding: 'var(--default_spacing)' }}>
{props.ErrorMessage}
+{props.ErrorMessage}
-| + + | ++ + | ++ {!isActiveRelease ? ( + + ) : null} + | +
| - - | -- - | -- {!isActiveRelease ? ( - - ) : null} - | -
{this.state.RetryItems[provider].RetryMessage}
diff --git a/src/containers/SkynetImport/ImportList/Import/Import.js b/src/containers/SkynetImport/ImportList/Import/Import.js index 88a9fe4..d639b88 100644 --- a/src/containers/SkynetImport/ImportList/Import/Import.js +++ b/src/containers/SkynetImport/ImportList/Import/Import.js @@ -1,5 +1,6 @@ import React from 'react'; import './Import.css'; +import PropTypes from 'prop-types'; const Import = ({ data }) => { return ( @@ -35,4 +36,8 @@ const Import = ({ data }) => { ); }; +Import.propTypes = { + data: PropTypes.object, +}; + export default Import; diff --git a/src/containers/SkynetImport/ImportList/ImportList.js b/src/containers/SkynetImport/ImportList/ImportList.js index 97900cd..1aea753 100644 --- a/src/containers/SkynetImport/ImportList/ImportList.js +++ b/src/containers/SkynetImport/ImportList/ImportList.js @@ -1,6 +1,7 @@ import React from 'react'; import './ImportList.css'; import Import from './Import/Import'; +import PropTypes from 'prop-types'; import Text from '../../../components/UI/Text/Text'; const ImportList = ({ imports_array }) => { @@ -34,4 +35,8 @@ const ImportList = ({ imports_array }) => { ); }; +ImportList.propTypes = { + imports_array: PropTypes.array.isRequired, +}; + export default ImportList; diff --git a/src/containers/UI/Password/Password.js b/src/containers/UI/Password/Password.js index bef623a..3d2fd19 100644 --- a/src/containers/UI/Password/Password.js +++ b/src/containers/UI/Password/Password.js @@ -1,9 +1,10 @@ import React, { Component } from 'react'; import './Password.css'; -import { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons'; +import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons'; -export default class Password extends Component { +class Password extends Component { state = { button_text: 'clear', password: '', @@ -137,3 +138,15 @@ export default class Password extends Component { ); } } + +Password.propTypes = { + autoFocus: PropTypes.bool, + changed: PropTypes.func, + disabled: PropTypes.bool, + mismatchHandler: PropTypes.func, + readOnly: PropTypes.bool, + style: PropTypes.object, + value: PropTypes.string, +}; + +export default Password; diff --git a/src/utils.jsx b/src/utils.jsx index 4811d4c..ae3bab9 100644 --- a/src/utils.jsx +++ b/src/utils.jsx @@ -5,7 +5,7 @@ import Modal from './components/UI/Modal/Modal'; import * as Constants from './constants'; const ipcRenderer = - !process.versions.hasOwnProperty('electron') && window && window.require + !Object.prototype.hasOwnProperty.call(process.versions, 'electron') && window && window.require ? window.require('electron').ipcRenderer : null;