Skip to content

Commit

Permalink
FIX ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Jul 3, 2023
1 parent 82d0389 commit f363c33
Show file tree
Hide file tree
Showing 25 changed files with 146 additions and 139 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/TinyMCE_sslink-email.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/dist/js/TinyMCE_sslink-external.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/dist/js/TinyMCE_sslink.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/src/boot/BootRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import i18n from 'i18n';
import { isDirty } from 'redux-form';
import getFormState from 'lib/getFormState';
import { Route } from 'react-router';
import joinUrlPaths from 'lib/urls';
import { joinUrlPaths } from 'lib/urls';
import NavigationBlocker from '../components/NavigationBlocker/NavigationBlocker';

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/boot/apollo/buildNetworkComponents.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ApolloLink, HttpLink } from '@apollo/client';
import { onError } from '@apollo/client/link/error';
import Config from 'lib/Config';
import joinUrlPaths from 'lib/urls';
import { joinUrlPaths } from 'lib/urls';

const buildNetworkComponents = (baseUrl) => {
const httpLink = new HttpLink({
Expand Down
2 changes: 1 addition & 1 deletion client/src/boot/apollo/getGraphqlFragments.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fetch from 'isomorphic-fetch';
import joinUrlPaths from 'lib/urls';
import { joinUrlPaths } from 'lib/urls';

const parseResponse = (result) => {
const fragmentData = result.data;
Expand Down
2 changes: 1 addition & 1 deletion client/src/boot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { combineReducers, createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import Config from 'lib/Config';
import buildApolloClient from 'boot/apollo/buildClient';
import setConfig from 'state/config/ConfigActions';
import { setConfig } from 'state/config/ConfigActions';
import registerComponents from 'boot/registerComponents';
import registerReducers from 'boot/registerReducers';
import applyDevtools from 'boot/applyDevtools';
Expand Down
6 changes: 4 additions & 2 deletions client/src/components/Search/Search.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* eslint-disable react/no-find-dom-node */
/* global document */
import i18n from 'i18n';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import ReactDOM from 'react-dom';
import { bindActionCreators } from 'redux';
import * as schemaActions from 'state/schema/SchemaActions';
import { reset, initialize, change } from 'redux-form';
Expand Down Expand Up @@ -164,7 +166,7 @@ class Search extends Component {
return;
}

const { node } = this;
const node = ReactDOM.findDOMNode(this);
if (!node) {
return;
}
Expand All @@ -187,7 +189,7 @@ class Search extends Component {
return;
}

const { node } = this;
const node = ReactDOM.findDOMNode(this);
if (!node) {
return;
}
Expand Down
8 changes: 5 additions & 3 deletions client/src/components/Search/SearchBox.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/* eslint-disable react/no-find-dom-node */
/* global document window */
import i18n from 'i18n';
import React, { Component } from 'react';
import { Label, Button } from 'reactstrap';
import classNames from 'classnames';
import CompactTagList from 'components/Tag/CompactTagList';
import ResizeAware from 'components/ResizeAware/ResizeAware';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import TagPropType from '../Tag/TagPropType';

Expand Down Expand Up @@ -72,7 +74,7 @@ class SearchBox extends Component {
* @returns number
*/
getComponentWidth() {
const { node } = this;
const node = ReactDOM.findDOMNode(this);
if (!node) {
return 0;
}
Expand Down Expand Up @@ -171,7 +173,7 @@ class SearchBox extends Component {
}

focusOnLastTag() {
const { node } = this;
const node = ReactDOM.findDOMNode(this);
if (!node) {
return;
}
Expand All @@ -182,7 +184,7 @@ class SearchBox extends Component {
}

focusOnInput() {
const { node } = this;
const node = ReactDOM.findDOMNode(this);
if (!node) {
return;
}
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/Tag/CompactTagList.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* eslint-disable react/no-find-dom-node */
import React, { Component } from 'react';
import TagList from 'components/Tag/TagList';
import ResizeAware from 'components/ResizeAware/ResizeAware';
import classnames from 'classnames';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import SummaryTag from './SummaryTag';

Expand Down Expand Up @@ -43,7 +45,7 @@ class CompactTagList extends Component {
* @returns {number}
*/
getPlaceholderSize() {
const { node } = this;
const node = ReactDOM.findDOMNode(this);
if (!node) {
return 0;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* global jest, test, beforeAll, afterAll, expect */
/* eslint-disable no-unused-vars */

import React from 'react';
import { render, fireEvent, act } from '@testing-library/react';
import { Component as TreeDropdownField } from '../TreeDropdownField';
import mockTree from './mockTree';

/* eslint-disable no-unused-vars */
let resolveApiCall;
let rejectApiCall;
let lastApiCallArgs;
Expand Down
Loading

0 comments on commit f363c33

Please sign in to comment.