sag_components 1.0.396 → 1.0.397

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/KpiFilter.js +75 -37
  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
@@ -28,15 +28,19 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
28
28
  onClick = props.onClick,
29
29
  onClickIncludeBenchmark = props.onClickIncludeBenchmark,
30
30
  onClickPeriod = props.onClickPeriod;
31
- var DEFAULT_PERIOD = '4 weeks';
31
+ var DEFAULT_PERIOD = {
32
+ weeks4: true,
33
+ weeks8: false,
34
+ weeks13: false
35
+ };
32
36
  var _useState = (0, _react.useState)(kpiData),
33
37
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
34
38
  KpiDataState = _useState2[0],
35
39
  setKpiDataState = _useState2[1];
36
- var _useState3 = (0, _react.useState)('4 weeks'),
40
+ var _useState3 = (0, _react.useState)(DEFAULT_PERIOD),
37
41
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
38
42
  periodState = _useState4[0],
39
- setPeriodSate = _useState4[1];
43
+ setPeriodState = _useState4[1];
40
44
 
41
45
  // ------------------------- CheckBox Buttons OnClick Handler - Begin ------------------
42
46
  (0, _react.useEffect)(function () {
@@ -54,7 +58,7 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
54
58
  kpiSelectedButtonsLabels.push(kpiSelectedData[i][j].label);
55
59
  }
56
60
  if (kpiSelectedData[i][j].secondButtonLabel && kpiSelectedData[i][j].secondButtonChecked === true) {
57
- kpiSelectedButtonsLabels.push(''.concat('', kpiSelectedData[i][j].label, ':', kpiSelectedData[i][j].secondButtonLabel));
61
+ kpiSelectedButtonsLabels.push("".concat("", kpiSelectedData[i][j].label, ":", kpiSelectedData[i][j].secondButtonLabel));
58
62
  }
59
63
  }
60
64
  }
@@ -66,7 +70,7 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
66
70
  // ------------------------- Buttons OnClick Handler - End ------------------
67
71
 
68
72
  var dispalyColumnButtons = function dispalyColumnButtons(data, height) {
69
- var paddingBottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '5px';
73
+ var paddingBottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "5px";
70
74
  if (data && data.length > 0) {
71
75
  return /*#__PURE__*/_react.default.createElement(_KpiFilter.ButtonsContainer, {
72
76
  id: "ButtonsContainer",
@@ -76,8 +80,8 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
76
80
  var _item$marginBottom;
77
81
  return /*#__PURE__*/_react.default.createElement(_KpiFilter.ButtonContainer, {
78
82
  id: "ButtonContainer",
79
- className: item.marginBottom ? 'marginBottom' : '',
80
- marginBottom: (_item$marginBottom = item.marginBottom) !== null && _item$marginBottom !== void 0 ? _item$marginBottom : '0px'
83
+ className: item.marginBottom ? "marginBottom" : "",
84
+ marginBottom: (_item$marginBottom = item.marginBottom) !== null && _item$marginBottom !== void 0 ? _item$marginBottom : "0px"
81
85
  }, /*#__PURE__*/_react.default.createElement(_CheckBoxButton.CheckBoxButton, {
82
86
  backgroundColorChecked: buttonsBackgroundColorChecked,
83
87
  backgroundColorUnchecked: buttonsBackgroundColorUnchecked,
@@ -101,7 +105,7 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
101
105
  })
102
106
  });
103
107
  });
104
- console.log('newDataKpi', newDataKpi);
108
+ console.log("newDataKpi", newDataKpi);
105
109
  setKpiDataState(newDataKpi);
106
110
  },
107
111
  textColorChecked: buttonsTextColorChecked,
@@ -118,26 +122,26 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
118
122
  height: "29px",
119
123
  iconColor: buttonsIconColor,
120
124
  iconSize: "12px",
121
- label: ''.concat('', item.label, ':', item.secondButtonLabel),
125
+ label: "".concat("", item.label, ":", item.secondButtonLabel),
122
126
  displayLabel: item.secondButtonLabel,
123
127
  onClick: function onClick(props) {
124
128
  var newDataKpi = KpiDataState === null || KpiDataState === void 0 ? void 0 : KpiDataState.map(function (itemColumn) {
125
129
  var _itemColumn$buttonsAr3;
126
130
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemColumn), {}, {
127
131
  buttonsArray: (_itemColumn$buttonsAr3 = itemColumn.buttonsArray) === null || _itemColumn$buttonsAr3 === void 0 ? void 0 : _itemColumn$buttonsAr3.map(function (itemButton) {
128
- return ''.concat('', itemButton.label, ':', itemButton.secondButtonLabel) === props.label ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemButton), {}, {
132
+ return "".concat("", itemButton.label, ":", itemButton.secondButtonLabel) === props.label ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemButton), {}, {
129
133
  secondButtonChecked: props.checked
130
134
  }) : (0, _objectSpread2.default)({}, itemButton);
131
135
  })
132
136
  });
133
137
  });
134
138
  setKpiDataState(newDataKpi);
135
- console.log('newDataKpi', newDataKpi, props);
139
+ console.log("newDataKpi", newDataKpi, props);
136
140
  },
137
141
  textColorChecked: buttonsTextColorChecked,
138
142
  textColorUnchecked: buttonsTextColorUnchecked,
139
143
  width: "100%"
140
- }) : '');
144
+ }) : "");
141
145
  }));
142
146
  }
143
147
  };
@@ -188,9 +192,34 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
188
192
  })));
189
193
  };
190
194
  var onClickPeriodHandler = function onClickPeriodHandler(props) {
191
- setPeriodSate(props.checked ? props.label : DEFAULT_PERIOD);
195
+ var label = props.label,
196
+ checked = props.checked;
197
+ var newPeriod;
198
+ var periodCheckedArray = [];
199
+ switch (label) {
200
+ case "4 weeks":
201
+ newPeriod = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, periodState), {}, {
202
+ weeks4: checked
203
+ });
204
+ break;
205
+ case "8 weeks":
206
+ newPeriod = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, periodState), {}, {
207
+ weeks8: checked
208
+ });
209
+ break;
210
+ case "13 weeks":
211
+ newPeriod = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, periodState), {}, {
212
+ weeks13: checked
213
+ });
214
+ break;
215
+ }
216
+ console.log("onClickPeriodHandler", newPeriod);
217
+ setPeriodState(newPeriod);
218
+ if (newPeriod.weeks4) periodCheckedArray.push("4 weeks");
219
+ if (newPeriod.weeks8) periodCheckedArray.push("8 weeks");
220
+ if (newPeriod.weeks13) periodCheckedArray.push("13 weeks");
192
221
  onClickPeriod({
193
- period: props.checked ? props.label : DEFAULT_PERIOD
222
+ periodChecked: periodCheckedArray
194
223
  });
195
224
  };
196
225
  var displayPeriod = function displayPeriod() {
@@ -199,45 +228,54 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
199
228
  }, /*#__PURE__*/_react.default.createElement(_CheckBox.CheckBox, {
200
229
  id: "CheckBox",
201
230
  label: "4 weeks",
202
- checked: periodState === '4 weeks',
231
+ checked: periodState.weeks4,
203
232
  colorChecked: buttonsIconColor,
204
- colorUnchecked: buttonsIconColor,
205
- colorDisabled: buttonsIconColor,
233
+ colorUnchecked: buttonsIconColor
234
+ //colorDisabled={buttonsIconColor}
235
+ ,
206
236
  fontSize: "14px",
207
237
  height: "20px",
208
238
  width: "100%",
209
239
  iconSize: "14px",
210
- disabled: periodState === '4 weeks',
240
+ disabled: false
241
+ //disabled={periodState === "4 weeks"}
242
+ ,
211
243
  onClick: function onClick(props) {
212
244
  onClickPeriodHandler(props);
213
245
  }
214
246
  }), /*#__PURE__*/_react.default.createElement(_CheckBox.CheckBox, {
215
247
  id: "CheckBox",
216
248
  label: "8 weeks",
217
- checked: periodState === '8 weeks',
249
+ checked: periodState.weeks8,
218
250
  colorChecked: buttonsIconColor,
219
- colorUnchecked: buttonsIconColor,
220
- colorDisabled: buttonsIconColor,
251
+ colorUnchecked: buttonsIconColor
252
+ //colorDisabled={buttonsIconColor}
253
+ ,
221
254
  fontSize: "12px",
222
255
  height: "20px",
223
256
  width: "100%",
224
257
  iconSize: "14px",
225
- disabled: periodState === '8 weeks',
258
+ disabled: false
259
+ //disabled={periodState === "8 weeks"}
260
+ ,
226
261
  onClick: function onClick(props) {
227
262
  onClickPeriodHandler(props);
228
263
  }
229
264
  }), /*#__PURE__*/_react.default.createElement(_CheckBox.CheckBox, {
230
265
  id: "CheckBox",
231
266
  label: "13 weeks",
232
- checked: periodState === '13 weeks',
267
+ checked: periodState.weeks13,
233
268
  colorChecked: buttonsIconColor,
234
- colorUnchecked: buttonsIconColor,
235
- colorDisabled: buttonsIconColor,
269
+ colorUnchecked: buttonsIconColor
270
+ //colorDisabled={buttonsIconColor}
271
+ ,
236
272
  fontSize: "12px",
237
273
  height: "20px",
238
274
  width: "100%",
239
275
  iconSize: "14px",
240
- disabled: periodState === '13 weeks',
276
+ disabled: false
277
+ //disabled={periodState === "13 weeks"}
278
+ ,
241
279
  onClick: function onClick(props) {
242
280
  onClickPeriodHandler(props);
243
281
  }
@@ -256,7 +294,7 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
256
294
  id: "ColumnTitleContainer"
257
295
  }, /*#__PURE__*/_react.default.createElement(_KpiFilter.ColumnTitle, {
258
296
  id: "ColumnTitle"
259
- }, item.columnTitle)), dispalyColumnButtons(item.buttonsArray, height = '160px', '0px'), i === (KpiDataState === null || KpiDataState === void 0 ? void 0 : KpiDataState.length) - 1 ? /*#__PURE__*/_react.default.createElement(_KpiFilter.PeriodColumnTitle, null, periodTitle) : '', i === (KpiDataState === null || KpiDataState === void 0 ? void 0 : KpiDataState.length) - 1 ? displayPeriod() : ''), item.rightBorder ? /*#__PURE__*/_react.default.createElement(_KpiFilter.ColumnRightLineSeporator, null) : '');
297
+ }, item.columnTitle)), dispalyColumnButtons(item.buttonsArray, height = "160px", "0px"), i === (KpiDataState === null || KpiDataState === void 0 ? void 0 : KpiDataState.length) - 1 ? /*#__PURE__*/_react.default.createElement(_KpiFilter.PeriodColumnTitle, null, periodTitle) : "", i === (KpiDataState === null || KpiDataState === void 0 ? void 0 : KpiDataState.length) - 1 ? displayPeriod() : ""), item.rightBorder ? /*#__PURE__*/_react.default.createElement(_KpiFilter.ColumnRightLineSeporator, null) : "");
260
298
  }));
261
299
  }
262
300
  };
@@ -273,17 +311,17 @@ var KpiFilter = exports.KpiFilter = function KpiFilter(props) {
273
311
  };
274
312
  var _default = exports.default = KpiFilter;
275
313
  KpiFilter.defaultProps = {
276
- mainTitle: 'Select Table Columns',
277
- periodTitle: 'Pre and Post Event Period',
314
+ mainTitle: "Select Table Columns",
315
+ periodTitle: "Pre and Post Event Period",
278
316
  kpiData: [],
279
- width: '100%',
280
- height: '100%',
281
- buttonsIconColor: '#1B30AA',
282
- buttonsBorderColor: '#1B30AA',
283
- buttonsTextColorChecked: '#212121',
284
- buttonsTextColorUnchecked: '#212121',
285
- buttonsBackgroundColorChecked: '#E9F1FF',
286
- buttonsBackgroundColorUnchecked: '#F2F2F2',
317
+ width: "100%",
318
+ height: "100%",
319
+ buttonsIconColor: "#1B30AA",
320
+ buttonsBorderColor: "#1B30AA",
321
+ buttonsTextColorChecked: "#212121",
322
+ buttonsTextColorUnchecked: "#212121",
323
+ buttonsBackgroundColorChecked: "#E9F1FF",
324
+ buttonsBackgroundColorUnchecked: "#F2F2F2",
287
325
  onClick: function onClick() {},
288
326
  onClickIncludeBenchmark: function onClickIncludeBenchmark() {},
289
327
  onClickPeriod: function onClickPeriod() {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.396",
3
+ "version": "1.0.397",
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
- };