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.
- package/dist/stories/CampaignTool/Card.stories.js +0 -1
- package/dist/stories/components/BannerEventBox.js +15 -26
- package/dist/stories/components/BannerEventBox.style.js +2 -2
- package/dist/stories/components/Datepicker.js +0 -4
- package/dist/stories/components/DropdownMulti.js +0 -2
- package/dist/stories/components/MonthPopupPicker.js +0 -1
- package/dist/stories/components/PopupCharts.js +0 -1
- package/dist/stories/components/QuarterPopupPicker.js +1 -0
- package/dist/stories/components/SagButton.js +0 -1
- package/dist/stories/components/Select.js +0 -1
- package/package.json +3 -3
- package/.history/.env_20231001120549 +0 -0
- package/.history/.env_20231001120613 +0 -1
- package/.history/.env_20231003143620 +0 -1
- package/.history/.eslintrc_20230928112617.js +0 -26
- package/.history/.eslintrc_20230928130534.js +0 -27
- package/.history/.eslintrc_20230928133400.js +0 -28
- package/.history/.eslintrc_20230928133404.js +0 -28
- package/.history/.eslintrc_20230928133416.js +0 -28
- package/.history/.eslintrc_20230928133419.js +0 -28
- package/.history/.eslintrc_20230928133432.js +0 -28
- package/.history/.eslintrc_20230928133439.js +0 -28
- package/.history/.eslintrc_20230928133458.js +0 -29
- package/.history/.eslintrc_20230928133500.js +0 -28
- package/.history/.eslintrc_20230928134009.js +0 -28
- package/.history/.eslintrc_20230928135318.js +0 -34
- package/.history/.eslintrc_20230928135321.js +0 -34
- package/.history/.eslintrc_20230928135323.js +0 -34
- package/.history/.eslintrc_20230928135332.js +0 -34
- package/.history/.eslintrc_20230928135333.js +0 -34
- package/.history/.eslintrc_20230928135352.js +0 -29
- package/.history/.eslintrc_20230928135353.js +0 -29
- package/.history/.eslintrc_20230928135355.js +0 -29
- package/.history/.eslintrc_20230928135408.js +0 -29
- package/.history/.eslintrc_20230928135538.js +0 -30
- package/.history/.eslintrc_20230928135539.js +0 -30
- package/.history/.eslintrc_20230928135543.js +0 -30
- package/.history/.gitignore_20230921093332 +0 -119
- package/.history/.gitignore_20230921111638 +0 -120
- package/.history/.gitignore_20230921111650 +0 -120
- package/.history/.gitignore_20230921111810 +0 -121
- package/.history/package-lock_20231114111138.json +0 -47810
- package/.history/package-lock_20231114111158.json +0 -47802
- package/.history/package_20231029152422.json +0 -82
- package/.history/package_20231029153420.json +0 -82
- package/.history/package_20231029154416.json +0 -82
- package/.history/package_20231030094127.json +0 -82
- package/.history/package_20231030114707.json +0 -82
- package/.history/package_20231030130704.json +0 -82
- package/.history/package_20231030132422.json +0 -82
- package/.history/package_20231030134051.json +0 -82
- package/.history/package_20231030142913.json +0 -82
- package/.history/package_20231030143556.json +0 -82
- package/.history/package_20231030144210.json +0 -82
- package/.history/package_20231101113942.json +0 -82
- package/.history/package_20231101114544.json +0 -82
- package/.history/package_20231101151518.json +0 -82
- package/.history/package_20231101154501.json +0 -82
- package/.history/package_20231101155811.json +0 -82
- package/.history/package_20231101160235.json +0 -82
- package/.history/package_20231101160406.json +0 -82
- package/.history/package_20231101161325.json +0 -82
- package/.history/package_20231101161333.json +0 -82
- package/.history/package_20231102123623.json +0 -82
- package/.history/package_20231102125741.json +0 -82
- package/.history/package_20231102130857.json +0 -82
- package/.history/package_20231102132227.json +0 -82
- package/.history/package_20231102142340.json +0 -82
- package/.history/package_20231102143256.json +0 -82
- package/.history/package_20231105153539.json +0 -82
- package/.history/package_20231105154332.json +0 -82
- package/.history/package_20231105171201.json +0 -82
- package/.history/package_20231106123849.json +0 -82
- package/.history/package_20231107170638.json +0 -82
- package/.history/package_20231109103647.json +0 -82
- package/.history/package_20231109103911.json +0 -82
- package/.history/package_20231109105426.json +0 -82
- package/.history/package_20231109132014.json +0 -82
- package/.history/package_20231109132115.json +0 -82
- package/.history/package_20231114100517.json +0 -82
- package/.history/package_20231114100859.json +0 -82
- package/.history/package_20231114101553.json +0 -82
- package/.history/package_20231114102545.json +0 -82
- package/.history/package_20231114111208.json +0 -83
- package/.history/package_20231114111515.json +0 -83
- package/.history/package_20231114112931.json +0 -83
- package/.history/package_20231114113014.json +0 -83
- package/.history/package_20231114113155.json +0 -83
- package/.history/package_20231114124318.json +0 -83
- package/.history/package_20231114125107.json +0 -83
- package/.history/package_20231114125510.json +0 -83
- package/.history/package_20231114132634.json +0 -83
- package/.history/package_20231116165815.json +0 -83
- package/.history/package_20231116165916.json +0 -83
- package/.history/package_20231119113637.json +0 -83
- package/.history/package_20231120100907.json +0 -83
- package/.history/package_20231121151523.json +0 -77
- package/.history/package_20231121155513.json +0 -77
- package/.history/package_20231121162434.json +0 -77
- package/.history/package_20231122100718.json +0 -77
- package/.history/package_20231128125149.json +0 -82
- package/.history/package_20231128125208.json +0 -82
|
@@ -23,32 +23,31 @@ const BannerEventBox = props => {
|
|
|
23
23
|
description,
|
|
24
24
|
dates,
|
|
25
25
|
data,
|
|
26
|
-
|
|
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
|
|
32
|
+
const [showItemTooltip, setShowItemTooltip] = (0, _react.useState)(Array(data.length).fill(false));
|
|
34
33
|
const formatedBanners = () => {
|
|
35
34
|
switch (banner) {
|
|
36
|
-
case '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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:
|
|
74
|
-
y:
|
|
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
|
-
|
|
85
|
-
|
|
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
|
|
111
|
-
left: tooltipPos.x
|
|
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: '
|
|
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
|
-
|
|
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.
|
|
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();
|
|
@@ -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, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sag_components",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
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
|
-
};
|