Skip to content

Commit

Permalink
Fix: eslint resolver (elastic#860)
Browse files Browse the repository at this point in the history
* fix: link to kibana eslint resolver

* fix: linting issues
  • Loading branch information
w33ble authored Jul 26, 2018
1 parent b2459f6 commit 4a8549c
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion common/functions/pie.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { get, map, groupBy, sortBy } from 'lodash';
import keyBy from 'lodash.keyby';
import { get, map, groupBy, sortBy } from 'lodash';
import { getColorsFromPalette } from '../lib/get_colors_from_palette';
import { getLegendConfig } from '../lib/get_legend_config';

Expand Down
2 changes: 1 addition & 1 deletion common/functions/plot/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { groupBy, get, set, map, sortBy } from 'lodash';
import keyBy from 'lodash.keyby';
import { groupBy, get, set, map, sortBy } from 'lodash';
import { getColorsFromPalette } from '../../lib/get_colors_from_palette';
import { getLegendConfig } from '../../lib/get_legend_config';
import { getFlotAxisConfig } from './get_flot_axis_config';
Expand Down
2 changes: 1 addition & 1 deletion common/interpreter/interpret.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { each, keys, last, mapValues, reduce, zipObject } from 'lodash';
import clone from 'lodash.clone';
import { each, keys, last, mapValues, reduce, zipObject } from 'lodash';
import { getType } from '../lib/get_type';
import { fromExpression } from '../lib/ast';
import { getByAlias } from '../lib/get_by_alias';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"devDependencies": {
"@elastic/eslint-config-kibana": "link:../../kibana/packages/eslint-config-kibana",
"@elastic/eslint-import-resolver-kibana": "^2.0.0",
"@kbn/eslint-import-resolver-kibana": "link:../../kibana/packages/kbn-eslint-import-resolver-kibana",
"@kbn/plugin-helpers": "link:../../kibana/packages/kbn-plugin-helpers",
"ansi-colors": "^1.0.1",
"aws-sdk": "^2.141.0",
Expand Down
2 changes: 1 addition & 1 deletion public/components/element_content/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import { compose, withProps } from 'recompose';
import { get } from 'lodash';
import PropTypes from 'prop-types';
import { renderFunctionsRegistry } from '../../lib/render_functions_registry';
import { ElementContent as Component } from './element_content';

Expand Down
4 changes: 2 additions & 2 deletions public/components/element_types/element_types.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { map, includes, sortBy } from 'lodash';
import lowerCase from 'lodash.lowercase';
import { EuiFieldSearch, EuiContextMenuItem, EuiPopoverTitle } from '@elastic/eui';
import lowerCase from 'lodash.lowercase';
import { map, includes, sortBy } from 'lodash';

export const ElementTypes = ({ elements, onClick, search, setSearch }) => {
search = lowerCase(search);
Expand Down
2 changes: 1 addition & 1 deletion public/components/enhance/error_boundary.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Fragment } from 'react';
import { withState, withHandlers, lifecycle, mapProps, compose } from 'recompose';
import PropTypes from 'prop-types';
import { omit } from 'lodash';
import { withState, withHandlers, lifecycle, mapProps, compose } from 'recompose';

export const errorBoundaryHoc = compose(
withState('error', 'setError', null),
Expand Down
2 changes: 1 addition & 1 deletion public/components/palette_picker/palette_picker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { map } from 'lodash';
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { map } from 'lodash';
import { Popover } from '../popover';
import { PaletteSwatch } from '../palette_swatch';
import { palettes } from '../../../common/lib/palettes';
Expand Down
4 changes: 2 additions & 2 deletions public/components/workpad_loader/workpad_loader.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { sortByOrder } from 'lodash';
import {
EuiFlexGroup,
EuiFlexItem,
Expand All @@ -10,6 +8,8 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import { sortByOrder } from 'lodash';
import moment from 'moment';
import { ConfirmModal } from '../confirm_modal';
import { Link } from '../link';
import { Tooltip } from '../tooltip';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import { set } from 'object-path-immutable';
import { EuiSelect, EuiFormRow, EuiText } from '@elastic/eui';
import { set } from 'object-path-immutable';
import { get } from 'lodash';

const defaultExpression = {
type: 'expression',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { withHandlers } from 'recompose';
import { get } from 'lodash';
import { set } from 'object-path-immutable';
import { get } from 'lodash';
import { templateFromReactComponent } from '../../../lib/template_from_react_component';
import { SimpleTemplate } from './simple_template';
import { ExtendedTemplate } from './extended_template';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';
import { EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiSelect } from '@elastic/eui';
import { get } from 'lodash';
import { set, del } from 'object-path-immutable';
import { get } from 'lodash';

export const ExtendedTemplate = props => {
const { typeInstance, onValueChange, labels, argValue } = props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import { set, del } from 'object-path-immutable';
import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiLink, EuiButtonIcon } from '@elastic/eui';
import { set, del } from 'object-path-immutable';
import { get } from 'lodash';
import { ColorPickerMini } from '../../../components/color_picker_mini';
import { TooltipIcon } from '../../../components/tooltip_icon';

Expand Down
2 changes: 1 addition & 1 deletion public/expression_types/arg_types/textarea.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';
import { compose, withProps } from 'recompose';
import { get } from 'lodash';
import { EuiForm, EuiTextArea, EuiSpacer, EuiButton } from '@elastic/eui';
import { get } from 'lodash';
import { createStatefulPropHoc } from '../../components/enhance/stateful_prop';
import { templateFromReactComponent } from '../../lib/template_from_react_component';

Expand Down
2 changes: 1 addition & 1 deletion public/expression_types/function_form.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EuiCallOut } from '@elastic/eui';
import React from 'react';
import { isPlainObject, uniq, last, compact } from 'lodash';
import { EuiCallOut } from '@elastic/eui';
import { fromExpression } from '../../common/lib/ast';
import { ArgAddPopover } from '../components/arg_add_popover';
import { SidebarSection } from '../components/sidebar/sidebar_section';
Expand Down
2 changes: 1 addition & 1 deletion public/lib/autocomplete_proposals.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { flatten, get, map, filter, includes } from 'lodash';
import uniqBy from 'lodash.uniqby';
import { flatten, get, map, filter, includes } from 'lodash';
import { parse } from '../../common/lib/grammar';
import { functionsRegistry } from './functions_registry';
import { typesRegistry } from './types_registry';
Expand Down
2 changes: 1 addition & 1 deletion public/render_functions/pie/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { debounce, includes } from 'lodash';
import '../../lib/flot-charts';
import $ from 'jquery';
import { pie as piePlugin } from './plugins/pie';

export const pie = () => ({
Expand Down
2 changes: 1 addition & 1 deletion public/render_functions/plot/plot.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { debounce, includes } from 'lodash';
import $ from 'jquery';
import { debounce, includes } from 'lodash';
import { size } from './plugins/size';
import { text } from './plugins/text';
import '../../lib/flot-charts';
Expand Down
2 changes: 1 addition & 1 deletion public/render_functions/plot/plugins/text.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { get } from 'lodash';
import $ from 'jquery';
import { get } from 'lodash';

/*
FreeBSD-License
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import moment from 'moment';
import dateMath from '@elastic/datemath';
import moment from 'moment';
import { quickRanges } from './quick_ranges';
import { timeUnits } from './time_units';

Expand Down
4 changes: 2 additions & 2 deletions public/state/actions/elements.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createAction } from 'redux-actions';
import { get, pick, cloneDeep, without } from 'lodash';
import { set, del } from 'object-path-immutable';
import { createThunk } from 'redux-thunks';
import { set, del } from 'object-path-immutable';
import { get, pick, cloneDeep, without } from 'lodash';
import { getPages, getElementById, getSelectedPageIndex } from '../selectors/workpad';
import { getValue } from '../selectors/resolved_args';
import { getDefaultElement } from '../defaults';
Expand Down
2 changes: 1 addition & 1 deletion public/state/reducers/elements.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { handleActions } from 'redux-actions';
import { get } from 'lodash';
import { assign, push, del, set } from 'object-path-immutable';
import { get } from 'lodash';
import * as actions from '../actions/elements';

function getPageIndexById(workpadState, pageId) {
Expand Down
2 changes: 1 addition & 1 deletion public/state/reducers/resolved_args.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { handleActions } from 'redux-actions';
import { get } from 'lodash';
import { set, del } from 'object-path-immutable';
import { get } from 'lodash';
import { prepend } from '../../lib/modify_path';
import * as actions from '../actions/resolved_args';
import { flushContext } from '../actions/elements';
Expand Down
4 changes: 2 additions & 2 deletions server/functions/pointseries/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { groupBy, zipObject, omit, values } from 'lodash';
import uniqBy from 'lodash.uniqby';
import moment from 'moment';
import { evaluate } from 'tinymath';
import { groupBy, zipObject, omit, values } from 'lodash';
import moment from 'moment';
import { pivotObjectArray } from '../../../common/lib/pivot_object_array';
import { unquoteString } from '../../../common/lib/unquote_string';
import { isColumnReference } from './lib/is_column_reference';
Expand Down

0 comments on commit 4a8549c

Please sign in to comment.