victory-box-plot 37.3.1 → 37.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import _groupBy from "lodash/groupBy";
2
- import _uniq from "lodash/uniq";
3
- import _defaults from "lodash/defaults";
4
- import _orderBy from "lodash/orderBy";
1
+ import defaults from "lodash/defaults";
2
+ import groupBy from "lodash/groupBy";
3
+ import orderBy from "lodash/orderBy";
4
+ import uniq from "lodash/uniq";
5
5
  import { Helpers, Scale, Domain, Data, Collection } from "victory-core";
6
6
  import { min as d3Min, max as d3Max, quantile as d3Quantile } from "victory-vendor/d3-array";
7
7
  const TYPES = ["max", "min", "median", "q1", "q3"];
@@ -14,7 +14,7 @@ const checkProcessedData = data => {
14
14
  if (hasQuartileAttributes) {
15
15
  // check that the independent variable is distinct
16
16
  const values = data.map(d => d._x);
17
- if (!_uniq(values).length === values.length) {
17
+ if (!uniq(values).length === values.length) {
18
18
  throw new Error(`
19
19
  data prop may only take an array of objects with a unique
20
20
  independent variable. Make sure your x values are distinct.
@@ -61,15 +61,15 @@ const processData = data => {
61
61
  const dataArray = datum[sortKey].map(d => Object.assign({}, datum, {
62
62
  [sortKey]: d
63
63
  }));
64
- const sortedData = _orderBy(dataArray, sortKey);
64
+ const sortedData = orderBy(dataArray, sortKey);
65
65
  return getSummaryStatistics(sortedData);
66
66
  });
67
67
  } else {
68
68
  /* Group data by independent variable and generate summary statistics for each group */
69
- const groupedData = _groupBy(data, groupKey);
69
+ const groupedData = groupBy(data, groupKey);
70
70
  return Object.keys(groupedData).map(key => {
71
71
  const datum = groupedData[key];
72
- const sortedData = _orderBy(datum, sortKey);
72
+ const sortedData = orderBy(datum, sortKey);
73
73
  return getSummaryStatistics(sortedData);
74
74
  });
75
75
  }
@@ -123,7 +123,7 @@ const getLabelStyle = (props, styleObject, namespace) => {
123
123
  return baseStyle;
124
124
  }
125
125
  const tooltipTheme = props.theme && props.theme.tooltip || {};
126
- return _defaults({}, tooltipTheme.style, baseStyle);
126
+ return defaults({}, tooltipTheme.style, baseStyle);
127
127
  };
128
128
  const getStyles = function (props, styleObject) {
129
129
  if (styleObject === void 0) {
@@ -137,23 +137,23 @@ const getStyles = function (props, styleObject) {
137
137
  height: "100%",
138
138
  width: "100%"
139
139
  };
140
- const labelStyles = _defaults({}, style.labels, getLabelStyle(props, styleObject));
141
- const boxStyles = _defaults({}, style.boxes, styleObject.boxes);
142
- const whiskerStyles = _defaults({}, style.whiskers, styleObject.whiskers);
140
+ const labelStyles = defaults({}, style.labels, getLabelStyle(props, styleObject));
141
+ const boxStyles = defaults({}, style.boxes, styleObject.boxes);
142
+ const whiskerStyles = defaults({}, style.whiskers, styleObject.whiskers);
143
143
  return {
144
144
  boxes: boxStyles,
145
145
  labels: labelStyles,
146
- parent: _defaults({}, style.parent, styleObject.parent, parentStyles),
147
- max: _defaults({}, style.max, styleObject.max, whiskerStyles),
148
- maxLabels: _defaults({}, style.maxLabels, getLabelStyle(props, styleObject, "max"), labelStyles),
149
- median: _defaults({}, style.median, styleObject.median, whiskerStyles),
150
- medianLabels: _defaults({}, style.medianLabels, getLabelStyle(props, styleObject, "median"), labelStyles),
151
- min: _defaults({}, style.min, styleObject.min, whiskerStyles),
152
- minLabels: _defaults({}, style.minLabels, getLabelStyle(props, styleObject, "min"), labelStyles),
153
- q1: _defaults({}, style.q1, styleObject.q1, boxStyles),
154
- q1Labels: _defaults({}, style.q1Labels, getLabelStyle(props, styleObject, "q1"), labelStyles),
155
- q3: _defaults({}, style.q3, styleObject.q3, boxStyles),
156
- q3Labels: _defaults({}, style.q3Labels, getLabelStyle(props, styleObject, "q3"), labelStyles),
146
+ parent: defaults({}, style.parent, styleObject.parent, parentStyles),
147
+ max: defaults({}, style.max, styleObject.max, whiskerStyles),
148
+ maxLabels: defaults({}, style.maxLabels, getLabelStyle(props, styleObject, "max"), labelStyles),
149
+ median: defaults({}, style.median, styleObject.median, whiskerStyles),
150
+ medianLabels: defaults({}, style.medianLabels, getLabelStyle(props, styleObject, "median"), labelStyles),
151
+ min: defaults({}, style.min, styleObject.min, whiskerStyles),
152
+ minLabels: defaults({}, style.minLabels, getLabelStyle(props, styleObject, "min"), labelStyles),
153
+ q1: defaults({}, style.q1, styleObject.q1, boxStyles),
154
+ q1Labels: defaults({}, style.q1Labels, getLabelStyle(props, styleObject, "q1"), labelStyles),
155
+ q3: defaults({}, style.q3, styleObject.q3, boxStyles),
156
+ q3Labels: defaults({}, style.q3Labels, getLabelStyle(props, styleObject, "q3"), labelStyles),
157
157
  whiskers: whiskerStyles
158
158
  };
159
159
  };
@@ -190,8 +190,6 @@ const getCalculatedValues = props => {
190
190
  boxWidth
191
191
  };
192
192
  };
193
-
194
- // eslint-disable-next-line complexity
195
193
  const getWhiskerProps = (props, type) => {
196
194
  const {
197
195
  horizontal,
@@ -368,7 +366,7 @@ const getLabelProps = (props, text, type) => {
368
366
  return labelProps;
369
367
  }
370
368
  const tooltipTheme = theme && theme.tooltip || {};
371
- return _defaults({}, labelProps, Helpers.omit(tooltipTheme, ["style"]));
369
+ return defaults({}, labelProps, Helpers.omit(tooltipTheme, ["style"]));
372
370
  };
373
371
  const getDataProps = (props, type) => {
374
372
  if (type === "median") {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
3
- export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
3
+ export type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
4
4
  (): any;
5
5
  } | {
6
6
  (data: any): string | null;
@@ -104,9 +104,9 @@ export declare const VictoryBoxPlot: {
104
104
  getAllEvents(props: any): any;
105
105
  getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
106
106
  renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
107
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
107
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement;
108
108
  renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
109
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
109
+ renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>;
110
110
  context: unknown;
111
111
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
112
112
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -123,17 +123,17 @@ export declare const VictoryBoxPlot: {
123
123
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
124
124
  componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
125
125
  UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
126
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
126
+ componentEvents: Array<import("@/victory-core/lib/victory-util/events").ComponentEvent>;
127
127
  getSharedEventState: (key: string, value: string) => unknown;
128
128
  baseProps: Record<string, object>;
129
129
  dataKeys: string[];
130
130
  hasEvents: unknown;
131
131
  events: unknown;
132
132
  };
133
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
134
- role?: string | undefined;
133
+ getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"];
134
+ role?: import("victory-core").VictoryComponentRole;
135
135
  expectedComponents?: string[] | undefined;
136
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
136
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
137
137
  animationWhitelist?: string[] | undefined;
138
138
  } & typeof VictoryBoxPlotBase;
139
139
  export {};
@@ -53,7 +53,7 @@ const options = {
53
53
  }]
54
54
  };
55
55
 
56
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
56
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
57
57
 
58
58
  class VictoryBoxPlotBase extends React.Component {
59
59
  static animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getDomain = exports.getData = exports.getBaseProps = void 0;
7
- var _groupBy2 = _interopRequireDefault(require("lodash/groupBy"));
8
- var _uniq2 = _interopRequireDefault(require("lodash/uniq"));
9
- var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
10
- var _orderBy2 = _interopRequireDefault(require("lodash/orderBy"));
7
+ var _defaults = _interopRequireDefault(require("lodash/defaults"));
8
+ var _groupBy = _interopRequireDefault(require("lodash/groupBy"));
9
+ var _orderBy = _interopRequireDefault(require("lodash/orderBy"));
10
+ var _uniq = _interopRequireDefault(require("lodash/uniq"));
11
11
  var _victoryCore = require("victory-core");
12
12
  var _d3Array = require("victory-vendor/d3-array");
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -21,7 +21,7 @@ const checkProcessedData = data => {
21
21
  if (hasQuartileAttributes) {
22
22
  // check that the independent variable is distinct
23
23
  const values = data.map(d => d._x);
24
- if (!(0, _uniq2.default)(values).length === values.length) {
24
+ if (!(0, _uniq.default)(values).length === values.length) {
25
25
  throw new Error(`
26
26
  data prop may only take an array of objects with a unique
27
27
  independent variable. Make sure your x values are distinct.
@@ -68,15 +68,15 @@ const processData = data => {
68
68
  const dataArray = datum[sortKey].map(d => Object.assign({}, datum, {
69
69
  [sortKey]: d
70
70
  }));
71
- const sortedData = (0, _orderBy2.default)(dataArray, sortKey);
71
+ const sortedData = (0, _orderBy.default)(dataArray, sortKey);
72
72
  return getSummaryStatistics(sortedData);
73
73
  });
74
74
  } else {
75
75
  /* Group data by independent variable and generate summary statistics for each group */
76
- const groupedData = (0, _groupBy2.default)(data, groupKey);
76
+ const groupedData = (0, _groupBy.default)(data, groupKey);
77
77
  return Object.keys(groupedData).map(key => {
78
78
  const datum = groupedData[key];
79
- const sortedData = (0, _orderBy2.default)(datum, sortKey);
79
+ const sortedData = (0, _orderBy.default)(datum, sortKey);
80
80
  return getSummaryStatistics(sortedData);
81
81
  });
82
82
  }
@@ -132,7 +132,7 @@ const getLabelStyle = (props, styleObject, namespace) => {
132
132
  return baseStyle;
133
133
  }
134
134
  const tooltipTheme = props.theme && props.theme.tooltip || {};
135
- return (0, _defaults2.default)({}, tooltipTheme.style, baseStyle);
135
+ return (0, _defaults.default)({}, tooltipTheme.style, baseStyle);
136
136
  };
137
137
  const getStyles = function (props, styleObject) {
138
138
  if (styleObject === void 0) {
@@ -146,23 +146,23 @@ const getStyles = function (props, styleObject) {
146
146
  height: "100%",
147
147
  width: "100%"
148
148
  };
149
- const labelStyles = (0, _defaults2.default)({}, style.labels, getLabelStyle(props, styleObject));
150
- const boxStyles = (0, _defaults2.default)({}, style.boxes, styleObject.boxes);
151
- const whiskerStyles = (0, _defaults2.default)({}, style.whiskers, styleObject.whiskers);
149
+ const labelStyles = (0, _defaults.default)({}, style.labels, getLabelStyle(props, styleObject));
150
+ const boxStyles = (0, _defaults.default)({}, style.boxes, styleObject.boxes);
151
+ const whiskerStyles = (0, _defaults.default)({}, style.whiskers, styleObject.whiskers);
152
152
  return {
153
153
  boxes: boxStyles,
154
154
  labels: labelStyles,
155
- parent: (0, _defaults2.default)({}, style.parent, styleObject.parent, parentStyles),
156
- max: (0, _defaults2.default)({}, style.max, styleObject.max, whiskerStyles),
157
- maxLabels: (0, _defaults2.default)({}, style.maxLabels, getLabelStyle(props, styleObject, "max"), labelStyles),
158
- median: (0, _defaults2.default)({}, style.median, styleObject.median, whiskerStyles),
159
- medianLabels: (0, _defaults2.default)({}, style.medianLabels, getLabelStyle(props, styleObject, "median"), labelStyles),
160
- min: (0, _defaults2.default)({}, style.min, styleObject.min, whiskerStyles),
161
- minLabels: (0, _defaults2.default)({}, style.minLabels, getLabelStyle(props, styleObject, "min"), labelStyles),
162
- q1: (0, _defaults2.default)({}, style.q1, styleObject.q1, boxStyles),
163
- q1Labels: (0, _defaults2.default)({}, style.q1Labels, getLabelStyle(props, styleObject, "q1"), labelStyles),
164
- q3: (0, _defaults2.default)({}, style.q3, styleObject.q3, boxStyles),
165
- q3Labels: (0, _defaults2.default)({}, style.q3Labels, getLabelStyle(props, styleObject, "q3"), labelStyles),
155
+ parent: (0, _defaults.default)({}, style.parent, styleObject.parent, parentStyles),
156
+ max: (0, _defaults.default)({}, style.max, styleObject.max, whiskerStyles),
157
+ maxLabels: (0, _defaults.default)({}, style.maxLabels, getLabelStyle(props, styleObject, "max"), labelStyles),
158
+ median: (0, _defaults.default)({}, style.median, styleObject.median, whiskerStyles),
159
+ medianLabels: (0, _defaults.default)({}, style.medianLabels, getLabelStyle(props, styleObject, "median"), labelStyles),
160
+ min: (0, _defaults.default)({}, style.min, styleObject.min, whiskerStyles),
161
+ minLabels: (0, _defaults.default)({}, style.minLabels, getLabelStyle(props, styleObject, "min"), labelStyles),
162
+ q1: (0, _defaults.default)({}, style.q1, styleObject.q1, boxStyles),
163
+ q1Labels: (0, _defaults.default)({}, style.q1Labels, getLabelStyle(props, styleObject, "q1"), labelStyles),
164
+ q3: (0, _defaults.default)({}, style.q3, styleObject.q3, boxStyles),
165
+ q3Labels: (0, _defaults.default)({}, style.q3Labels, getLabelStyle(props, styleObject, "q3"), labelStyles),
166
166
  whiskers: whiskerStyles
167
167
  };
168
168
  };
@@ -199,8 +199,6 @@ const getCalculatedValues = props => {
199
199
  boxWidth
200
200
  };
201
201
  };
202
-
203
- // eslint-disable-next-line complexity
204
202
  const getWhiskerProps = (props, type) => {
205
203
  const {
206
204
  horizontal,
@@ -377,7 +375,7 @@ const getLabelProps = (props, text, type) => {
377
375
  return labelProps;
378
376
  }
379
377
  const tooltipTheme = theme && theme.tooltip || {};
380
- return (0, _defaults2.default)({}, labelProps, _victoryCore.Helpers.omit(tooltipTheme, ["style"]));
378
+ return (0, _defaults.default)({}, labelProps, _victoryCore.Helpers.omit(tooltipTheme, ["style"]));
381
379
  };
382
380
  const getDataProps = (props, type) => {
383
381
  if (type === "median") {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
3
- export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
3
+ export type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
4
4
  (): any;
5
5
  } | {
6
6
  (data: any): string | null;
@@ -104,9 +104,9 @@ export declare const VictoryBoxPlot: {
104
104
  getAllEvents(props: any): any;
105
105
  getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
106
106
  renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
107
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
107
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement;
108
108
  renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
109
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
109
+ renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>;
110
110
  context: unknown;
111
111
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
112
112
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -123,17 +123,17 @@ export declare const VictoryBoxPlot: {
123
123
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
124
124
  componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
125
125
  UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
126
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
126
+ componentEvents: Array<import("@/victory-core/lib/victory-util/events").ComponentEvent>;
127
127
  getSharedEventState: (key: string, value: string) => unknown;
128
128
  baseProps: Record<string, object>;
129
129
  dataKeys: string[];
130
130
  hasEvents: unknown;
131
131
  events: unknown;
132
132
  };
133
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
134
- role?: string | undefined;
133
+ getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"];
134
+ role?: import("victory-core").VictoryComponentRole;
135
135
  expectedComponents?: string[] | undefined;
136
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
136
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
137
137
  animationWhitelist?: string[] | undefined;
138
138
  } & typeof VictoryBoxPlotBase;
139
139
  export {};
@@ -60,7 +60,7 @@ const options = {
60
60
  }]
61
61
  };
62
62
 
63
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
63
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
64
64
 
65
65
  class VictoryBoxPlotBase extends _react.default.Component {
66
66
  static animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-box-plot",
3
- "version": "37.3.1",
3
+ "version": "37.3.3",
4
4
  "description": "Box Plot Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -21,8 +21,8 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
- "victory-core": "37.3.1",
25
- "victory-vendor": "37.3.1"
24
+ "victory-core": "37.3.3",
25
+ "victory-vendor": "37.3.3"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=16.6.0"
@@ -190,38 +190,10 @@
190
190
  "pnpm-lock.yaml"
191
191
  ]
192
192
  },
193
- "format": {
194
- "command": "nps format:pkg",
195
- "files": [
196
- "src/**",
197
- "*.json",
198
- "../../.prettierignore",
199
- "../../.prettierrc.json"
200
- ],
201
- "output": [],
202
- "packageLocks": [
203
- "pnpm-lock.yaml"
204
- ]
205
- },
206
- "format:fix": {
207
- "command": "pnpm run format || nps format:pkg:fix",
208
- "files": [
209
- "src/**",
210
- "*.json",
211
- "../../.prettierignore",
212
- "../../.prettierrc.json"
213
- ],
214
- "output": [],
215
- "packageLocks": [
216
- "pnpm-lock.yaml"
217
- ]
218
- },
219
193
  "lint": {
220
- "command": "nps lint:pkg",
194
+ "command": "eslint src",
221
195
  "files": [
222
- "src/**",
223
- "../../.eslintignore",
224
- "../../.eslintrc.js"
196
+ "src/**"
225
197
  ],
226
198
  "output": [],
227
199
  "dependencies": [
@@ -236,11 +208,9 @@
236
208
  ]
237
209
  },
238
210
  "lint:fix": {
239
- "command": "pnpm run lint || nps lint:pkg:fix",
211
+ "command": "eslint --fix src",
240
212
  "files": [
241
- "src/**",
242
- "../../.eslintignore",
243
- "../../.eslintrc.js"
213
+ "src/**"
244
214
  ],
245
215
  "output": [],
246
216
  "dependencies": [
@@ -287,8 +257,6 @@
287
257
  "check": "wireit",
288
258
  "types:check": "wireit",
289
259
  "types:create": "wireit",
290
- "format": "wireit",
291
- "format:fix": "wireit",
292
260
  "lint": "wireit",
293
261
  "lint:fix": "wireit",
294
262
  "jest": "wireit"
@@ -1,4 +1,8 @@
1
- import { orderBy, defaults, uniq, groupBy } from "lodash";
1
+ import defaults from "lodash/defaults";
2
+ import groupBy from "lodash/groupBy";
3
+ import orderBy from "lodash/orderBy";
4
+ import uniq from "lodash/uniq";
5
+
2
6
  import { Helpers, Scale, Domain, Data, Collection } from "victory-core";
3
7
  import {
4
8
  min as d3Min,
@@ -238,7 +242,6 @@ const getCalculatedValues = (props) => {
238
242
  return { data, horizontal, domain, scale, style, labelOrientation, boxWidth };
239
243
  };
240
244
 
241
- // eslint-disable-next-line complexity
242
245
  const getWhiskerProps = (props, type) => {
243
246
  const {
244
247
  horizontal,
@@ -122,7 +122,7 @@ export interface VictoryBoxPlotProps
122
122
  whiskerWidth?: number;
123
123
  }
124
124
 
125
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
125
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
126
126
  interface VictoryBoxPlotBase extends EventsMixinClass<VictoryBoxPlotProps> {}
127
127
 
128
128
  class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {