fix lint.

This commit is contained in:
Nawaz Dhandala 2021-05-14 09:49:00 +01:00
parent 89924bec83
commit 844fc54b88
16 changed files with 21 additions and 35 deletions

View File

@ -32,23 +32,14 @@
"no-func-assign": "error",
"no-extra-semi": "error",
"linebreak-style": ["error", "unix"],
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "[iI]gnored",
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "[iI]gnored"
}
],
"no-unused-vars": "error",
"no-console": "error",
"no-undef": "error",
"no-empty": "error",
"no-case-declarations": "error",
"no-mixed-spaces-and-tabs": "error",
"no-useless-escape": "error",
"prettier/prettier": "warn",
"prettier/prettier": "error",
"react/jsx-no-undef": "error",
"react/jsx-no-bind": [
"error",
@ -74,12 +65,7 @@
"react/no-string-refs": "error",
"jsx-a11y/href-no-hash": [0],
"react/no-unescaped-entities": "error",
"react/display-name": [
"error",
{
"ignoreTranspilerName": true
}
],
"react/display-name": "error",
"react/jsx-pascal-case": "error",
"array-callback-return": "error",
"no-loop-func": "error",

View File

@ -190,7 +190,7 @@ const companyForm = reduxForm({
validate, // <------ unregister fields on unmoun
})(CompanyForm);
const mapDispatchToProps = dispatch_Ignored => {
const mapDispatchToProps = () => {
return {};
};

View File

@ -76,7 +76,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = dispatch_Ignored => {
const mapDispatchToProps = () => {
return null;
};

View File

@ -29,7 +29,7 @@ export default function(ComposedComponent) {
}
}
function mapStateToProps(state_Ignored) {
function mapStateToProps() {
return {};
}

View File

@ -44,11 +44,11 @@ export default function(ComposedComponent) {
Authentication.displayName = 'RequireAuth';
function mapStateToProps(state_Ignored) {
function mapStateToProps() {
return {};
}
function mapDispatchToProps(dispatch_Ignored) {
function mapDispatchToProps() {
return {};
}

View File

@ -100,7 +100,7 @@ AdminNotes.displayName = 'AdminNotes';
const mapDispatchToProps = dispatch => bindActionCreators({}, dispatch);
const mapStateToProps = state_Ignored => {
const mapStateToProps = () => {
return {};
};

View File

@ -191,7 +191,7 @@ export class SidebarNavItem extends Component {
SidebarNavItem.displayName = 'SidebarNavItem';
const mapStateToProps = state_Ignored => ({});
const mapStateToProps = () => ({});
const mapDispatchToProps = dispatch =>
bindActionCreators({ loadPage }, dispatch);

View File

@ -34,7 +34,7 @@ class Search extends Component {
Search.displayName = 'Search';
const mapStateToProps = state_Ignored => {
const mapStateToProps = () => {
return {};
};

View File

@ -93,11 +93,11 @@ ConfirmNumberDeleteModal.propTypes = {
closeThisDialog: PropTypes.func.isRequired,
};
const mapStateToProps = state_Ignored => {
const mapStateToProps = () => {
return {};
};
const mapDispatchToProps = state_Ignored => {
const mapDispatchToProps = () => {
return {};
};

View File

@ -128,7 +128,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = state_Ignored => {
const mapDispatchToProps = () => {
return null;
};

View File

@ -117,7 +117,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = state_Ignored => {
const mapDispatchToProps = () => {
return null;
};

View File

@ -110,7 +110,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = state_Ignored => {
const mapDispatchToProps = () => {
return null;
};

View File

@ -123,7 +123,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = state_Ignored => {
const mapDispatchToProps = () => {
return null;
};

View File

@ -112,7 +112,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = state_Ignored => {
const mapDispatchToProps = () => {
return null;
};

View File

@ -201,7 +201,7 @@ EscalationSummary.propTypes = {
const mapDispatchToProps = dispatch => bindActionCreators({}, dispatch);
const mapStateToProps = (state_ignored, props_ignored) => {
const mapStateToProps = () => {
return {};
};

View File

@ -65,11 +65,11 @@ class ChangePasswordPage extends React.Component {
}
}
const mapStateToProps = state_Ignored => {
const mapStateToProps = () => {
return null;
};
const mapDispatchToProps = dispatch_Ignored => {
const mapDispatchToProps = () => {
return null;
};