sag_components 1.0.466 → 1.0.468

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.
Files changed (93) hide show
  1. package/dist/stories/components/PerformanceAnalytics.js +67 -35
  2. package/package.json +1 -1
  3. package/.history/.env_20231001120549 +0 -0
  4. package/.history/.env_20231001120613 +0 -1
  5. package/.history/.env_20231003143620 +0 -1
  6. package/.history/.eslintrc_20230928112617.js +0 -26
  7. package/.history/.eslintrc_20230928130534.js +0 -27
  8. package/.history/.eslintrc_20230928133400.js +0 -28
  9. package/.history/.eslintrc_20230928133404.js +0 -28
  10. package/.history/.eslintrc_20230928133416.js +0 -28
  11. package/.history/.eslintrc_20230928133419.js +0 -28
  12. package/.history/.eslintrc_20230928133432.js +0 -28
  13. package/.history/.eslintrc_20230928133439.js +0 -28
  14. package/.history/.eslintrc_20230928133458.js +0 -29
  15. package/.history/.eslintrc_20230928133500.js +0 -28
  16. package/.history/.eslintrc_20230928134009.js +0 -28
  17. package/.history/.eslintrc_20230928135318.js +0 -34
  18. package/.history/.eslintrc_20230928135321.js +0 -34
  19. package/.history/.eslintrc_20230928135323.js +0 -34
  20. package/.history/.eslintrc_20230928135332.js +0 -34
  21. package/.history/.eslintrc_20230928135333.js +0 -34
  22. package/.history/.eslintrc_20230928135352.js +0 -29
  23. package/.history/.eslintrc_20230928135353.js +0 -29
  24. package/.history/.eslintrc_20230928135355.js +0 -29
  25. package/.history/.eslintrc_20230928135408.js +0 -29
  26. package/.history/.eslintrc_20230928135538.js +0 -30
  27. package/.history/.eslintrc_20230928135539.js +0 -30
  28. package/.history/.eslintrc_20230928135543.js +0 -30
  29. package/.history/.gitignore_20230921093332 +0 -119
  30. package/.history/.gitignore_20230921111638 +0 -120
  31. package/.history/.gitignore_20230921111650 +0 -120
  32. package/.history/.gitignore_20230921111810 +0 -121
  33. package/.history/package-lock_20231114111138.json +0 -47810
  34. package/.history/package-lock_20231114111158.json +0 -47802
  35. package/.history/package_20231029152422.json +0 -82
  36. package/.history/package_20231029153420.json +0 -82
  37. package/.history/package_20231029154416.json +0 -82
  38. package/.history/package_20231030094127.json +0 -82
  39. package/.history/package_20231030114707.json +0 -82
  40. package/.history/package_20231030130704.json +0 -82
  41. package/.history/package_20231030132422.json +0 -82
  42. package/.history/package_20231030134051.json +0 -82
  43. package/.history/package_20231030142913.json +0 -82
  44. package/.history/package_20231030143556.json +0 -82
  45. package/.history/package_20231030144210.json +0 -82
  46. package/.history/package_20231101113942.json +0 -82
  47. package/.history/package_20231101114544.json +0 -82
  48. package/.history/package_20231101151518.json +0 -82
  49. package/.history/package_20231101154501.json +0 -82
  50. package/.history/package_20231101155811.json +0 -82
  51. package/.history/package_20231101160235.json +0 -82
  52. package/.history/package_20231101160406.json +0 -82
  53. package/.history/package_20231101161325.json +0 -82
  54. package/.history/package_20231101161333.json +0 -82
  55. package/.history/package_20231102123623.json +0 -82
  56. package/.history/package_20231102125741.json +0 -82
  57. package/.history/package_20231102130857.json +0 -82
  58. package/.history/package_20231102132227.json +0 -82
  59. package/.history/package_20231102142340.json +0 -82
  60. package/.history/package_20231102143256.json +0 -82
  61. package/.history/package_20231105153539.json +0 -82
  62. package/.history/package_20231105154332.json +0 -82
  63. package/.history/package_20231105171201.json +0 -82
  64. package/.history/package_20231106123849.json +0 -82
  65. package/.history/package_20231107170638.json +0 -82
  66. package/.history/package_20231109103647.json +0 -82
  67. package/.history/package_20231109103911.json +0 -82
  68. package/.history/package_20231109105426.json +0 -82
  69. package/.history/package_20231109132014.json +0 -82
  70. package/.history/package_20231109132115.json +0 -82
  71. package/.history/package_20231114100517.json +0 -82
  72. package/.history/package_20231114100859.json +0 -82
  73. package/.history/package_20231114101553.json +0 -82
  74. package/.history/package_20231114102545.json +0 -82
  75. package/.history/package_20231114111208.json +0 -83
  76. package/.history/package_20231114111515.json +0 -83
  77. package/.history/package_20231114112931.json +0 -83
  78. package/.history/package_20231114113014.json +0 -83
  79. package/.history/package_20231114113155.json +0 -83
  80. package/.history/package_20231114124318.json +0 -83
  81. package/.history/package_20231114125107.json +0 -83
  82. package/.history/package_20231114125510.json +0 -83
  83. package/.history/package_20231114132634.json +0 -83
  84. package/.history/package_20231116165815.json +0 -83
  85. package/.history/package_20231116165916.json +0 -83
  86. package/.history/package_20231119113637.json +0 -83
  87. package/.history/package_20231120100907.json +0 -83
  88. package/.history/package_20231121151523.json +0 -77
  89. package/.history/package_20231121155513.json +0 -77
  90. package/.history/package_20231121162434.json +0 -77
  91. package/.history/package_20231122100718.json +0 -77
  92. package/.history/package_20231128125149.json +0 -82
  93. package/.history/package_20231128125208.json +0 -82
@@ -15,9 +15,9 @@ var _PerformanceAnalyticsTotals = require("./PerformanceAnalyticsTotals");
15
15
  var _PerformanceAnalyticsLegend = require("./PerformanceAnalyticsLegend");
16
16
  var _CommonFunctions = require("./CommonFunctions");
17
17
  var _PerformanceAnalytics = require("./PerformanceAnalytics.style");
18
- const INDIVIDUAL_PERFORMANCE_STR = 'Individual Performance';
19
- const PERCENT_INCREMENTAL_GROWTH_STR = '% Incremental Growth';
20
- const PERCENT_CONTRIBUTION_OF_TOTAL_STR = '% Contribution of Total';
18
+ const INDIVIDUAL_PERFORMANCE_STR = "Individual Performance";
19
+ const PERCENT_INCREMENTAL_GROWTH_STR = "% Incremental Growth";
20
+ const PERCENT_CONTRIBUTION_OF_TOTAL_STR = "% Contribution of Total";
21
21
 
22
22
  /* PerformanceAnalytics */
23
23
  const PerformanceAnalytics = props => {
@@ -35,12 +35,17 @@ const PerformanceAnalytics = props => {
35
35
  noDataText,
36
36
  totalsData,
37
37
  data,
38
- legendData
38
+ legendData,
39
+ tooltipBarchartLabel1,
40
+ tooltipBarchartLabel2,
41
+ tooltipBarchartLabel3,
42
+ tooltipBarchartLabel_ContributionOfTotal1,
43
+ tooltipBarchartLabel_ContributionOfTotal2
39
44
  } = props;
40
45
  const [segmentedButtonsFilter, setSegmentedButtonsFilter] = (0, _react.useState)(INDIVIDUAL_PERFORMANCE_STR);
41
46
  const [showLegendTooltip, setShowLegendTooltip] = (0, _react.useState)(false);
42
47
  const [tooltipCouponText, setTooltipCouponText] = (0, _react.useState)({
43
- content: '',
48
+ content: "",
44
49
  clientX: 0,
45
50
  clientY: 0
46
51
  });
@@ -102,7 +107,7 @@ const PerformanceAnalytics = props => {
102
107
  return null;
103
108
  };
104
109
  const CustomTooltipBarChart = _ref2 => {
105
- var _payload$0$payload$In;
110
+ var _payload$0$payload$In, _payload$0$payload$co, _payload$0$payload$co2;
106
111
  let {
107
112
  active,
108
113
  payload
@@ -127,13 +132,13 @@ const PerformanceAnalytics = props => {
127
132
  id: "ToolTipLabelAndValueContainer"
128
133
  }, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
129
134
  id: "TooltipLabel"
130
- }, "Package Cost:"), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
135
+ }, tooltipBarchartLabel1), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
131
136
  id: "TooltipValue"
132
137
  }, "".concat((0, _CommonFunctions.getCurrencySign)(currencyType)).concat((0, _CommonFunctions.getFormattedValue)(payload[0].payload.packageCostValue), "\n ").concat((0, _CommonFunctions.getFormattedUnits)(payload[0].payload.packageCostValue), " (").concat(packageCostPercent.toFixed(1), "%) "))), redemptionCostPercent > 0 && /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
133
138
  id: "ToolTipLabelAndValueContainer"
134
139
  }, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
135
140
  id: "TooltipLabel"
136
- }, "Redemption Cost:"), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
141
+ }, tooltipBarchartLabel2), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
137
142
  id: "TooltipValue"
138
143
  }, "".concat((0, _CommonFunctions.getCurrencySign)(currencyType), "\n ").concat((0, _CommonFunctions.getFormattedValue)(payload[0].payload.redemptionCostValue), "\n ").concat((0, _CommonFunctions.getFormattedUnits)(payload[0].payload.redemptionCostValue), " \n (").concat(redemptionCostPercent.toFixed(1), "%) "))))), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
139
144
  id: "ToolTipLabelAndValueContainer"
@@ -142,7 +147,7 @@ const PerformanceAnalytics = props => {
142
147
  color: colorBarchart2
143
148
  }), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
144
149
  id: "TooltipLabel"
145
- }, "Incremental Sales:"), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
150
+ }, tooltipBarchartLabel3), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
146
151
  id: "TooltipValue"
147
152
  }, "".concat((0, _CommonFunctions.getCurrencySign)(currencyType)).concat((0, _CommonFunctions.getFormattedValue)(payload[0].payload.incrementalSalesValue), "\n ").concat((0, _CommonFunctions.getFormattedUnits)(payload[0].payload.incrementalSalesValue), " "))));
148
153
  case PERCENT_INCREMENTAL_GROWTH_STR:
@@ -158,6 +163,32 @@ const PerformanceAnalytics = props => {
158
163
  }, "Incremental Growth Value:"), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
159
164
  id: "TooltipValue"
160
165
  }, "".concat((_payload$0$payload$In = payload[0].payload.IncrementalGrowthValue) === null || _payload$0$payload$In === void 0 ? void 0 : _payload$0$payload$In.toFixed(1), "% "))));
166
+ case PERCENT_CONTRIBUTION_OF_TOTAL_STR:
167
+ return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, {
168
+ id: "TooltipContainer"
169
+ }, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipBarchart1Container, {
170
+ id: "ToolTipBarchart1Container"
171
+ }, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
172
+ id: "LegendColorRectangle",
173
+ color: colorBarchart1
174
+ }), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipBarchart1LabelAndValueContainer, {
175
+ id: "ToolTipBarchart1LabelAndValueContainer"
176
+ }, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
177
+ id: "ToolTipLabelAndValueContainer"
178
+ }, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
179
+ id: "TooltipLabel"
180
+ }, tooltipBarchartLabel_ContributionOfTotal1), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
181
+ id: "TooltipValue"
182
+ }, "".concat((_payload$0$payload$co = payload[0].payload.contributionTotalCostValue) === null || _payload$0$payload$co === void 0 ? void 0 : _payload$0$payload$co.toFixed(1), "% "))))), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
183
+ id: "ToolTipLabelAndValueContainer"
184
+ }, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
185
+ id: "LegendColorRectangle",
186
+ color: colorBarchart2
187
+ }), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
188
+ id: "TooltipLabel"
189
+ }, tooltipBarchartLabel_ContributionOfTotal2), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
190
+ id: "TooltipValue"
191
+ }, "".concat((_payload$0$payload$co2 = payload[0].payload.contributionIncrementalSalesValue) === null || _payload$0$payload$co2 === void 0 ? void 0 : _payload$0$payload$co2.toFixed(1), "% "))));
161
192
  default:
162
193
  return null;
163
194
  }
@@ -195,7 +226,7 @@ const PerformanceAnalytics = props => {
195
226
  payload
196
227
  } = props;
197
228
  const radius = 10;
198
- const plusSign = value > 0 ? '+' : '';
229
+ const plusSign = value > 0 ? "+" : "";
199
230
  return /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("text", {
200
231
  x: x + width / 2,
201
232
  y: y - radius,
@@ -204,7 +235,7 @@ const PerformanceAnalytics = props => {
204
235
  fontSize: "16px",
205
236
  textAnchor: "middle",
206
237
  dominantBaseline: "middle"
207
- }, segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? currencyType ? "".concat((0, _CommonFunctions.getCurrencySign)(currencyType).toString(), "\n ").concat(dotCut ? (0, _CommonFunctions.getFormattedValue)(value) : (0, _CommonFunctions.getNumberWithCommas)(value), "\n ").concat(dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : '', " ") : '' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? "".concat(plusSign).concat(value, "%") : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? "".concat(value, "%") : ''));
238
+ }, segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? currencyType ? "".concat((0, _CommonFunctions.getCurrencySign)(currencyType).toString(), "\n ").concat(dotCut ? (0, _CommonFunctions.getFormattedValue)(value) : (0, _CommonFunctions.getNumberWithCommas)(value), "\n ").concat(dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : "", " ") : "" : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? "".concat(plusSign).concat(value, "%") : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? "".concat(value, "%") : ""));
208
239
  };
209
240
  function CustomizedTickBarChart(props) {
210
241
  const {
@@ -258,8 +289,8 @@ const PerformanceAnalytics = props => {
258
289
  }
259
290
  return null;
260
291
  }
261
- const getDataKeyNameBar1 = () => segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? 'totalValue' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? '' : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? 'contributionTotalCostValue' : '';
262
- const getDataKeyNameBar2 = () => segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? 'incrementalSalesValue' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? 'IncrementalGrowthValue' : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? 'contributionIncrementalSalesValue' : '';
292
+ const getDataKeyNameBar1 = () => segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? "totalValue" : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? "" : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? "contributionTotalCostValue" : "";
293
+ const getDataKeyNameBar2 = () => segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? "incrementalSalesValue" : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? "IncrementalGrowthValue" : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? "contributionIncrementalSalesValue" : "";
263
294
  const displayBarChart = () => {
264
295
  if (data && data.length > 0) {
265
296
  const formatedData = data.map(item => ({
@@ -285,7 +316,7 @@ const PerformanceAnalytics = props => {
285
316
  tick: CustomizedTickBarChart,
286
317
  tickLine: false,
287
318
  height: 120,
288
- stroke: isNegativeValueFound() === true ? '#D0D0D0' : '#000'
319
+ stroke: isNegativeValueFound() === true ? "#D0D0D0" : "#000"
289
320
  }), showLegendTooltip && /*#__PURE__*/_react.default.createElement(_TspanTooltip.default, {
290
321
  id: "Tooltip",
291
322
  content: tooltipCouponText.content,
@@ -294,7 +325,7 @@ const PerformanceAnalytics = props => {
294
325
  direction: "top"
295
326
  }), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
296
327
  cursor: {
297
- fill: 'transparent'
328
+ fill: "transparent"
298
329
  },
299
330
  content: CustomTooltipBarChart
300
331
  }), /*#__PURE__*/_react.default.createElement(_recharts.ReferenceLine, {
@@ -308,7 +339,7 @@ const PerformanceAnalytics = props => {
308
339
  }, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
309
340
  dataKey: getDataKeyNameBar1(),
310
341
  content: CustomizedLabelBarchart
311
- })) : '', /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
342
+ })) : "", /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
312
343
  dataKey: getDataKeyNameBar2(),
313
344
  fill: colorBarchart2,
314
345
  minPointSize: 10,
@@ -338,30 +369,28 @@ const PerformanceAnalytics = props => {
338
369
  return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend, {
339
370
  legendData: [{
340
371
  iconColor: colorBarchart2,
341
- iconType: 'Square',
342
- title: '% Incremental Growth'
372
+ iconType: "Square",
373
+ title: "% Incremental Growth"
343
374
  }, {
344
- iconColor: {
345
- colorGraphROI
346
- },
347
- iconType: 'LegendUnionIcon',
348
- title: 'Incremental Sales ROI'
375
+ iconColor: colorGraphROI,
376
+ iconType: "LegendUnionIcon",
377
+ title: "Incremental Sales ROI"
349
378
  }]
350
379
  });
351
380
  case PERCENT_CONTRIBUTION_OF_TOTAL_STR:
352
381
  return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend, {
353
382
  legendData: [{
354
383
  iconColor: colorBarchart1,
355
- iconType: 'Square',
356
- title: '% Contribution to the Total Cost'
384
+ iconType: "Square",
385
+ title: "% Contribution to the Total Cost"
357
386
  }, {
358
387
  iconColor: colorBarchart2,
359
- iconType: 'Square',
360
- title: '% Contribution to the Inc. Sales'
388
+ iconType: "Square",
389
+ title: "% Contribution to the Inc. Sales"
361
390
  }]
362
391
  });
363
392
  default:
364
- return '';
393
+ return "";
365
394
  }
366
395
  };
367
396
  return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ControlsContainer, {
@@ -381,15 +410,18 @@ PerformanceAnalytics.defaultProps = {
381
410
  totalsData: [],
382
411
  data: [],
383
412
  legendData: [],
384
- currencyType: 'USD',
385
- colorGraphROI: '#9CCB3B',
386
- colorBarchart1: '#1F7677',
387
- colorBarchart2: '#90CE9C',
388
- textcolor: '#212121',
389
- width: '',
413
+ currencyType: "USD",
414
+ colorGraphROI: "#9CCB3B",
415
+ colorBarchart1: "#1F7677",
416
+ colorBarchart2: "#90CE9C",
417
+ textcolor: "#212121",
418
+ width: "",
390
419
  height: 130,
391
420
  barChartHeight: 130,
392
421
  lineChartHeight: 50,
393
422
  dotCut: true,
394
- noDataText: ''
423
+ noDataText: "",
424
+ tooltipBarchartLabel1: "Package Cost:",
425
+ tooltipBarchartLabel2: "Redemption Cost:",
426
+ tooltipBarchartLabel3: "Incremental Sales:"
395
427
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.466",
3
+ "version": "1.0.468",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
File without changes
@@ -1 +0,0 @@
1
- STORYBOOK_FIGMA_ACCESS_TOKEN=figd_YdAmQQKQ2B6ZngEijA0JiqNNUdJvP23G46NK7-fc
@@ -1 +0,0 @@
1
- STORYBOOK_FIGMA_ACCESS_TOKEN=figd_MOcc8-aS91XJ3mFdtNlH4oPVY73ChHlmw6-hKhsb
@@ -1,26 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- },
26
- };
@@ -1,27 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- },
27
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- /*eslint linebreak-style: ["error", "windows"]*/
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- eslint linebreak-style: ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- linebreak-style: ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows']
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows'],
27
- },
28
- };
@@ -1,29 +0,0 @@
1
- /* eslint-disable linebreak-style */
2
- module.exports = {
3
- env: {
4
- browser: true,
5
- es2021: true,
6
- },
7
- extends: 'airbnb',
8
- overrides: [
9
- {
10
- env: {
11
- node: true,
12
- },
13
- files: [
14
- '.eslintrc.{js,cjs}',
15
- ],
16
- parserOptions: {
17
- sourceType: 'script',
18
- },
19
- },
20
- ],
21
- parserOptions: {
22
- ecmaVersion: 'latest',
23
- sourceType: 'module',
24
- },
25
- rules: {
26
- 'max-len': 'off',
27
- 'linebreak-style': ['error', 'windows'],
28
- },
29
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows'],
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- },
28
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- "react/function-component-definition": [
28
- 2,
29
- {
30
- namedComponents: "function-declaration",
31
- },
32
- ],
33
- },
34
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition": [
28
- 2,
29
- {
30
- namedComponents: "function-declaration",
31
- },
32
- ],
33
- },
34
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition': [
28
- 2,
29
- {
30
- namedComponents: "function-declaration",
31
- },
32
- ],
33
- },
34
- };