sag_components 1.0.663 → 1.0.665

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 (102) hide show
  1. package/dist/stories/CampaignTool/Card.stories.js +0 -1
  2. package/dist/stories/components/BannerEventBox.js +15 -26
  3. package/dist/stories/components/BannerEventBox.style.js +2 -2
  4. package/dist/stories/components/Datepicker.js +0 -4
  5. package/dist/stories/components/DropdownMulti.js +0 -2
  6. package/dist/stories/components/MonthPopupPicker.js +0 -1
  7. package/dist/stories/components/PopupCharts.js +0 -1
  8. package/dist/stories/components/QuarterPopupPicker.js +1 -0
  9. package/dist/stories/components/SagButton.js +0 -1
  10. package/dist/stories/components/Select.js +0 -1
  11. package/package.json +3 -3
  12. package/.history/.env_20231001120549 +0 -0
  13. package/.history/.env_20231001120613 +0 -1
  14. package/.history/.env_20231003143620 +0 -1
  15. package/.history/.eslintrc_20230928112617.js +0 -26
  16. package/.history/.eslintrc_20230928130534.js +0 -27
  17. package/.history/.eslintrc_20230928133400.js +0 -28
  18. package/.history/.eslintrc_20230928133404.js +0 -28
  19. package/.history/.eslintrc_20230928133416.js +0 -28
  20. package/.history/.eslintrc_20230928133419.js +0 -28
  21. package/.history/.eslintrc_20230928133432.js +0 -28
  22. package/.history/.eslintrc_20230928133439.js +0 -28
  23. package/.history/.eslintrc_20230928133458.js +0 -29
  24. package/.history/.eslintrc_20230928133500.js +0 -28
  25. package/.history/.eslintrc_20230928134009.js +0 -28
  26. package/.history/.eslintrc_20230928135318.js +0 -34
  27. package/.history/.eslintrc_20230928135321.js +0 -34
  28. package/.history/.eslintrc_20230928135323.js +0 -34
  29. package/.history/.eslintrc_20230928135332.js +0 -34
  30. package/.history/.eslintrc_20230928135333.js +0 -34
  31. package/.history/.eslintrc_20230928135352.js +0 -29
  32. package/.history/.eslintrc_20230928135353.js +0 -29
  33. package/.history/.eslintrc_20230928135355.js +0 -29
  34. package/.history/.eslintrc_20230928135408.js +0 -29
  35. package/.history/.eslintrc_20230928135538.js +0 -30
  36. package/.history/.eslintrc_20230928135539.js +0 -30
  37. package/.history/.eslintrc_20230928135543.js +0 -30
  38. package/.history/.gitignore_20230921093332 +0 -119
  39. package/.history/.gitignore_20230921111638 +0 -120
  40. package/.history/.gitignore_20230921111650 +0 -120
  41. package/.history/.gitignore_20230921111810 +0 -121
  42. package/.history/package-lock_20231114111138.json +0 -47810
  43. package/.history/package-lock_20231114111158.json +0 -47802
  44. package/.history/package_20231029152422.json +0 -82
  45. package/.history/package_20231029153420.json +0 -82
  46. package/.history/package_20231029154416.json +0 -82
  47. package/.history/package_20231030094127.json +0 -82
  48. package/.history/package_20231030114707.json +0 -82
  49. package/.history/package_20231030130704.json +0 -82
  50. package/.history/package_20231030132422.json +0 -82
  51. package/.history/package_20231030134051.json +0 -82
  52. package/.history/package_20231030142913.json +0 -82
  53. package/.history/package_20231030143556.json +0 -82
  54. package/.history/package_20231030144210.json +0 -82
  55. package/.history/package_20231101113942.json +0 -82
  56. package/.history/package_20231101114544.json +0 -82
  57. package/.history/package_20231101151518.json +0 -82
  58. package/.history/package_20231101154501.json +0 -82
  59. package/.history/package_20231101155811.json +0 -82
  60. package/.history/package_20231101160235.json +0 -82
  61. package/.history/package_20231101160406.json +0 -82
  62. package/.history/package_20231101161325.json +0 -82
  63. package/.history/package_20231101161333.json +0 -82
  64. package/.history/package_20231102123623.json +0 -82
  65. package/.history/package_20231102125741.json +0 -82
  66. package/.history/package_20231102130857.json +0 -82
  67. package/.history/package_20231102132227.json +0 -82
  68. package/.history/package_20231102142340.json +0 -82
  69. package/.history/package_20231102143256.json +0 -82
  70. package/.history/package_20231105153539.json +0 -82
  71. package/.history/package_20231105154332.json +0 -82
  72. package/.history/package_20231105171201.json +0 -82
  73. package/.history/package_20231106123849.json +0 -82
  74. package/.history/package_20231107170638.json +0 -82
  75. package/.history/package_20231109103647.json +0 -82
  76. package/.history/package_20231109103911.json +0 -82
  77. package/.history/package_20231109105426.json +0 -82
  78. package/.history/package_20231109132014.json +0 -82
  79. package/.history/package_20231109132115.json +0 -82
  80. package/.history/package_20231114100517.json +0 -82
  81. package/.history/package_20231114100859.json +0 -82
  82. package/.history/package_20231114101553.json +0 -82
  83. package/.history/package_20231114102545.json +0 -82
  84. package/.history/package_20231114111208.json +0 -83
  85. package/.history/package_20231114111515.json +0 -83
  86. package/.history/package_20231114112931.json +0 -83
  87. package/.history/package_20231114113014.json +0 -83
  88. package/.history/package_20231114113155.json +0 -83
  89. package/.history/package_20231114124318.json +0 -83
  90. package/.history/package_20231114125107.json +0 -83
  91. package/.history/package_20231114125510.json +0 -83
  92. package/.history/package_20231114132634.json +0 -83
  93. package/.history/package_20231116165815.json +0 -83
  94. package/.history/package_20231116165916.json +0 -83
  95. package/.history/package_20231119113637.json +0 -83
  96. package/.history/package_20231120100907.json +0 -83
  97. package/.history/package_20231121151523.json +0 -77
  98. package/.history/package_20231121155513.json +0 -77
  99. package/.history/package_20231121162434.json +0 -77
  100. package/.history/package_20231122100718.json +0 -77
  101. package/.history/package_20231128125149.json +0 -82
  102. package/.history/package_20231128125208.json +0 -82
@@ -85,7 +85,6 @@ var _default = exports.default = {
85
85
  // },
86
86
  }
87
87
  };
88
-
89
88
  const Template = args => /*#__PURE__*/_react.default.createElement(_Card.default, args);
90
89
  const SingleCard = exports.SingleCard = Template.bind({});
91
90
  _Card.default.args = {
@@ -23,32 +23,31 @@ const BannerEventBox = props => {
23
23
  description,
24
24
  dates,
25
25
  data,
26
- viewBannerTooltip
26
+ fileUrl
27
27
  } = props;
28
- const [showTooltip, setShowTooltip] = (0, _react.useState)(false);
29
28
  const [tooltipPos, setTooltipPos] = (0, _react.useState)({
30
29
  x: 0,
31
30
  y: 0
32
31
  });
33
- const moreInfo = (0, _react.useRef)(null);
32
+ const [showItemTooltip, setShowItemTooltip] = (0, _react.useState)(Array(data.length).fill(false));
34
33
  const formatedBanners = () => {
35
34
  switch (banner) {
36
- case 'StopAndShop':
35
+ case 'Stop&Shop':
37
36
  return {
38
37
  icon: /*#__PURE__*/_react.default.createElement(_StopAndShopNewIcon.StopAndShopNewIcon, null),
39
38
  name: 'Stop&Shop'
40
39
  };
41
- case 'FoodLion':
40
+ case 'Food Lion':
42
41
  return {
43
42
  icon: /*#__PURE__*/_react.default.createElement(_FoodLionNewIcon.FoodLionNewIcon, null),
44
43
  name: 'Food Lion'
45
44
  };
46
- case 'GiantFood':
45
+ case 'Giant Food':
47
46
  return {
48
47
  icon: /*#__PURE__*/_react.default.createElement(_GiantFoodIcon_new.GiantFoodNewIcon, null),
49
48
  name: 'Giant Food'
50
49
  };
51
- case 'TheGiantCompany':
50
+ case 'The Giant Company':
52
51
  return {
53
52
  icon: /*#__PURE__*/_react.default.createElement(_TheGiantCompanyNewIcon.TheGiantCompanyIcon, null),
54
53
  name: 'The Giant Company'
@@ -62,16 +61,16 @@ const BannerEventBox = props => {
62
61
  return null;
63
62
  }
64
63
  };
65
- const [showItemTooltip, setShowItemTooltip] = (0, _react.useState)(Array(data.length).fill(false));
66
64
  const handleItemMouseEnter = (index, e) => {
65
+ const iconBounds = e.target.getBoundingClientRect();
67
66
  setShowItemTooltip(prevState => {
68
67
  const newState = [...prevState];
69
68
  newState[index] = true;
70
69
  return newState;
71
70
  });
72
71
  setTooltipPos({
73
- x: e.clientX,
74
- y: e.clientY
72
+ x: iconBounds.left + iconBounds.width / 2,
73
+ y: iconBounds.top / 1.25
75
74
  });
76
75
  };
77
76
  const handleItemMouseLeave = () => {
@@ -81,18 +80,8 @@ const BannerEventBox = props => {
81
80
  height: height,
82
81
  width: width
83
82
  }, /*#__PURE__*/_react.default.createElement(_BannerEventBox.TitleWrapper, null, formatedBanners(banner).icon, "|", /*#__PURE__*/_react.default.createElement(_BannerEventBox.CardTitle, null, formatedBanners(banner).name)), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Block, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Headline, null, "Event Description"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Text, null, description)), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Block, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Headline, null, "Event Dates:"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Text, null, dates.join(' - '))), /*#__PURE__*/_react.default.createElement(_BannerEventBox.MoreInfo, {
84
- ref: moreInfo,
85
- onMouseEnter: () => setShowTooltip(true),
86
- onMouseLeave: () => setShowTooltip(false)
87
- }, "Creatives"), showTooltip && /*#__PURE__*/_react.default.createElement(_TspanTooltip.default, {
88
- direction: "top",
89
- content: viewBannerTooltip,
90
- top: moreInfo.current.offsetTop - 20,
91
- left: moreInfo.current.offsetLeft + 30,
92
- style: {
93
- pointerEvents: 'none'
94
- }
95
- }), /*#__PURE__*/_react.default.createElement(_BannerEventBox.DetailsWrapper, null, data === null || data === void 0 ? void 0 : data.map((item, index) => {
83
+ href: fileUrl
84
+ }, "Creatives"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.DetailsWrapper, null, data === null || data === void 0 ? void 0 : data.map((item, index) => {
96
85
  var _item$items, _item$items2;
97
86
  return item && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
98
87
  key: item.name
@@ -107,8 +96,8 @@ const BannerEventBox = props => {
107
96
  content: /*#__PURE__*/_react.default.createElement("ul", null, (_item$items = item.items) === null || _item$items === void 0 ? void 0 : _item$items.map(i => /*#__PURE__*/_react.default.createElement("li", {
108
97
  key: i
109
98
  }, i))),
110
- top: tooltipPos.y - 70,
111
- left: tooltipPos.x - 30,
99
+ top: tooltipPos.y,
100
+ left: tooltipPos.x,
112
101
  style: {
113
102
  pointerEvents: 'none'
114
103
  }
@@ -120,7 +109,7 @@ var _default = exports.default = BannerEventBox;
120
109
  BannerEventBox.defaultProps = {
121
110
  width: 'auto',
122
111
  height: 'auto',
123
- banner: 'FoodLion',
112
+ banner: 'Food Lion',
124
113
  description: 'Dreft Portable Pretreater Pen',
125
114
  dates: ['2021-06-01', '2021-06-30'],
126
115
  data: [{
@@ -133,5 +122,5 @@ BannerEventBox.defaultProps = {
133
122
  name: 'Product Lines',
134
123
  items: ['coca', 'cola', 'spring']
135
124
  }],
136
- viewBannerTooltip: 'View banner creative....'
125
+ fileUrl: 'https://www.google.com'
137
126
  };
@@ -14,9 +14,9 @@ const CardTitle = exports.CardTitle = _styledComponents.default.h5(_templateObje
14
14
  const Headline = exports.Headline = _styledComponents.default.h6(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n font-weight: 500;\n margin: 0;\n"])));
15
15
  const Block = exports.Block = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: 12px;\n"])));
16
16
  const Text = exports.Text = _styledComponents.default.p(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: #8B8989;\n font-size: 12px;\n font-weight: 400;\n margin: 0;\n"])));
17
- const MoreInfo = exports.MoreInfo = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n color: #229E38;\n font-size: 12px;\n font-weight: 400;\n text-decoration-line: underline;\n"])));
17
+ const MoreInfo = exports.MoreInfo = _styledComponents.default.a(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n color: #229E38;\n font-size: 12px;\n font-weight: 400;\n"])));
18
18
  const DetailsWrapper = exports.DetailsWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n align-items: stretch;\n margin-top: 12px;\n"])));
19
- const KeyBlock = exports.KeyBlock = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)([""])));
19
+ const KeyBlock = exports.KeyBlock = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n /* position: relative; */\n"])));
20
20
  const Key = exports.Key = _styledComponents.default.span(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n font-weight: 500;\n"])));
21
21
  const Count = exports.Count = _styledComponents.default.span(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n color: #8B8989;\n font-size: 12px;\n font-weight: 400;\n"])));
22
22
  const Seperator = exports.Seperator = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n border-right: 1px solid #F2F2F2;\n"])));
@@ -55,7 +55,6 @@ const Datepicker = _ref => {
55
55
  width
56
56
  // color: labelColor,
57
57
  },
58
-
59
58
  '& .MuiOutlinedInput-root': {
60
59
  borderRadius: '12px',
61
60
  fontFamily: 'Poppins',
@@ -75,18 +74,15 @@ const Datepicker = _ref => {
75
74
  borderColor: '#E7E7E7'
76
75
  // color: labelColor,
77
76
  },
78
-
79
77
  '&:hover .MuiOutlinedInput-notchedOutline': {
80
78
  borderColor: disabled ? '#E7E7E7' : labelColor // "#757575",
81
79
  // color: labelColor,
82
80
  },
83
-
84
81
  '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
85
82
  borderColor: disabled ? '#E7E7E7' : labelColor
86
83
  // color: labelColor,
87
84
  }
88
85
  },
89
-
90
86
  '& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)': {
91
87
  // Default transform is "translate(14px, 20px) scale(1)""
92
88
  // This lines up the label with the initial cursor position in the input
@@ -86,7 +86,6 @@ const DropdownMulti = props => {
86
86
  // marginRight: '10px',
87
87
  // },
88
88
  },
89
-
90
89
  '& .MuiAutocomplete-inputRoot': {
91
90
  paddingLeft: '10px !important',
92
91
  borderRadius: '12px',
@@ -234,7 +233,6 @@ const DropdownMulti = props => {
234
233
  // </>
235
234
  // ),
236
235
  },
237
-
238
236
  onKeyDown: event => {
239
237
  if (!isInputAllowed(event.key)) {
240
238
  event.preventDefault();
@@ -123,7 +123,6 @@ const MonthPopupPicker = _ref => {
123
123
  // return null;
124
124
  })));
125
125
  };
126
-
127
126
  return /*#__PURE__*/_react.default.createElement(DatePickerContainer, null, isOpen && renderDatePicker());
128
127
  };
129
128
  var _default = exports.default = MonthPopupPicker;
@@ -96,7 +96,6 @@ const PopupCharts = props => {
96
96
  width: "100%",
97
97
  xselectedColor: rowsData === null || rowsData === void 0 ? void 0 : rowsData.xselectedColor // "#C7E7CD"
98
98
  });
99
-
100
99
  const displayTotalHorizontalCharts = rowsData => /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.TotalHorizontalCharts, {
101
100
  currencySign: true,
102
101
  dotCut: true,
@@ -15,6 +15,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
15
15
  /* eslint-disable react/prop-types */
16
16
  // import ChervronRightIcon from './icons/ChervronRightIcon';
17
17
  // import ChervronLeftIcon from './icons/ChervronLeftIcon';
18
+
18
19
  // Styled components for the date picker
19
20
  const DatePickerContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n"])));
20
21
  const DatePickerPopup = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n width: auto;\n margin: 5px;\n height: 120px;\n top: calc(100% + 5px);\n box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);\n left: 0;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n padding: 10px;\n z-index: 1000;\n"])));
@@ -31,7 +31,6 @@ const SagButton = props => {
31
31
  // Add any logic you want to execute after the transition is complete
32
32
  }, 300); // Adjust the transition duration (in milliseconds) as needed
33
33
  };
34
-
35
34
  return /*#__PURE__*/_react.default.createElement(_SagButton.ButtonContainer, {
36
35
  id: "ButtonContainer"
37
36
  }, /*#__PURE__*/_react.default.createElement(_SagButton.Button, {
@@ -45,7 +45,6 @@ const Select = _ref => {
45
45
  setIsFocused(false);
46
46
  setTimeout(() => setShowOptions(false), 200); // Delay hiding options to allow clicking on them
47
47
  };
48
-
49
48
  const handleOptionClick = option => {
50
49
  onChange({
51
50
  target: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.663",
3
+ "version": "1.0.665",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  "react-loading-skeleton": "^3.3.1",
72
72
  "recharts": "^2.9.2",
73
73
  "storybook": "^7.4.6",
74
- "styled-components": "^6.1.9"
74
+ "styled-components": "^6.1.11"
75
75
  },
76
76
  "browserslist": {
77
77
  "production": [
@@ -85,4 +85,4 @@
85
85
  "last 1 safari version"
86
86
  ]
87
87
  }
88
- }
88
+ }
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
- };