sag_components 1.0.368 → 1.0.370

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 (94) hide show
  1. package/dist/stories/components/Dropdown.js +126 -83
  2. package/dist/stories/components/TotalDoughnutChart.js +1 -1
  3. package/package.json +1 -1
  4. package/.history/.env_20231001120549 +0 -0
  5. package/.history/.env_20231001120613 +0 -1
  6. package/.history/.env_20231003143620 +0 -1
  7. package/.history/.eslintrc_20230928112617.js +0 -26
  8. package/.history/.eslintrc_20230928130534.js +0 -27
  9. package/.history/.eslintrc_20230928133400.js +0 -28
  10. package/.history/.eslintrc_20230928133404.js +0 -28
  11. package/.history/.eslintrc_20230928133416.js +0 -28
  12. package/.history/.eslintrc_20230928133419.js +0 -28
  13. package/.history/.eslintrc_20230928133432.js +0 -28
  14. package/.history/.eslintrc_20230928133439.js +0 -28
  15. package/.history/.eslintrc_20230928133458.js +0 -29
  16. package/.history/.eslintrc_20230928133500.js +0 -28
  17. package/.history/.eslintrc_20230928134009.js +0 -28
  18. package/.history/.eslintrc_20230928135318.js +0 -34
  19. package/.history/.eslintrc_20230928135321.js +0 -34
  20. package/.history/.eslintrc_20230928135323.js +0 -34
  21. package/.history/.eslintrc_20230928135332.js +0 -34
  22. package/.history/.eslintrc_20230928135333.js +0 -34
  23. package/.history/.eslintrc_20230928135352.js +0 -29
  24. package/.history/.eslintrc_20230928135353.js +0 -29
  25. package/.history/.eslintrc_20230928135355.js +0 -29
  26. package/.history/.eslintrc_20230928135408.js +0 -29
  27. package/.history/.eslintrc_20230928135538.js +0 -30
  28. package/.history/.eslintrc_20230928135539.js +0 -30
  29. package/.history/.eslintrc_20230928135543.js +0 -30
  30. package/.history/.gitignore_20230921093332 +0 -119
  31. package/.history/.gitignore_20230921111638 +0 -120
  32. package/.history/.gitignore_20230921111650 +0 -120
  33. package/.history/.gitignore_20230921111810 +0 -121
  34. package/.history/package-lock_20231114111138.json +0 -47810
  35. package/.history/package-lock_20231114111158.json +0 -47802
  36. package/.history/package_20231029152422.json +0 -82
  37. package/.history/package_20231029153420.json +0 -82
  38. package/.history/package_20231029154416.json +0 -82
  39. package/.history/package_20231030094127.json +0 -82
  40. package/.history/package_20231030114707.json +0 -82
  41. package/.history/package_20231030130704.json +0 -82
  42. package/.history/package_20231030132422.json +0 -82
  43. package/.history/package_20231030134051.json +0 -82
  44. package/.history/package_20231030142913.json +0 -82
  45. package/.history/package_20231030143556.json +0 -82
  46. package/.history/package_20231030144210.json +0 -82
  47. package/.history/package_20231101113942.json +0 -82
  48. package/.history/package_20231101114544.json +0 -82
  49. package/.history/package_20231101151518.json +0 -82
  50. package/.history/package_20231101154501.json +0 -82
  51. package/.history/package_20231101155811.json +0 -82
  52. package/.history/package_20231101160235.json +0 -82
  53. package/.history/package_20231101160406.json +0 -82
  54. package/.history/package_20231101161325.json +0 -82
  55. package/.history/package_20231101161333.json +0 -82
  56. package/.history/package_20231102123623.json +0 -82
  57. package/.history/package_20231102125741.json +0 -82
  58. package/.history/package_20231102130857.json +0 -82
  59. package/.history/package_20231102132227.json +0 -82
  60. package/.history/package_20231102142340.json +0 -82
  61. package/.history/package_20231102143256.json +0 -82
  62. package/.history/package_20231105153539.json +0 -82
  63. package/.history/package_20231105154332.json +0 -82
  64. package/.history/package_20231105171201.json +0 -82
  65. package/.history/package_20231106123849.json +0 -82
  66. package/.history/package_20231107170638.json +0 -82
  67. package/.history/package_20231109103647.json +0 -82
  68. package/.history/package_20231109103911.json +0 -82
  69. package/.history/package_20231109105426.json +0 -82
  70. package/.history/package_20231109132014.json +0 -82
  71. package/.history/package_20231109132115.json +0 -82
  72. package/.history/package_20231114100517.json +0 -82
  73. package/.history/package_20231114100859.json +0 -82
  74. package/.history/package_20231114101553.json +0 -82
  75. package/.history/package_20231114102545.json +0 -82
  76. package/.history/package_20231114111208.json +0 -83
  77. package/.history/package_20231114111515.json +0 -83
  78. package/.history/package_20231114112931.json +0 -83
  79. package/.history/package_20231114113014.json +0 -83
  80. package/.history/package_20231114113155.json +0 -83
  81. package/.history/package_20231114124318.json +0 -83
  82. package/.history/package_20231114125107.json +0 -83
  83. package/.history/package_20231114125510.json +0 -83
  84. package/.history/package_20231114132634.json +0 -83
  85. package/.history/package_20231116165815.json +0 -83
  86. package/.history/package_20231116165916.json +0 -83
  87. package/.history/package_20231119113637.json +0 -83
  88. package/.history/package_20231120100907.json +0 -83
  89. package/.history/package_20231121151523.json +0 -77
  90. package/.history/package_20231121155513.json +0 -77
  91. package/.history/package_20231121162434.json +0 -77
  92. package/.history/package_20231122100718.json +0 -77
  93. package/.history/package_20231128125149.json +0 -82
  94. package/.history/package_20231128125208.json +0 -82
@@ -33,7 +33,7 @@ var checkedIcon = /*#__PURE__*/_react.default.createElement(_CheckBox.default, {
33
33
  */
34
34
  var Dropdown = exports.Dropdown = function Dropdown(_ref) {
35
35
  var _ref$width = _ref.width,
36
- width = _ref$width === void 0 ? '100%' : _ref$width,
36
+ width = _ref$width === void 0 ? "100%" : _ref$width,
37
37
  size = _ref.size,
38
38
  text = _ref.text,
39
39
  shape = _ref.shape,
@@ -46,18 +46,24 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
46
46
  onChange = _ref.onChange,
47
47
  onInputChange = _ref.onInputChange,
48
48
  _ref$labelColor = _ref.labelColor,
49
- labelColor = _ref$labelColor === void 0 ? '#1B30AA' : _ref$labelColor,
49
+ labelColor = _ref$labelColor === void 0 ? "#1B30AA" : _ref$labelColor,
50
50
  required = _ref.required,
51
51
  inputRef = _ref.inputRef,
52
52
  defaultValue = _ref.defaultValue,
53
53
  _ref$allowedInput = _ref.allowedInput,
54
- allowedInput = _ref$allowedInput === void 0 ? 'all' : _ref$allowedInput,
54
+ allowedInput = _ref$allowedInput === void 0 ? "all" : _ref$allowedInput,
55
55
  _ref$reset = _ref.reset,
56
56
  reset = _ref$reset === void 0 ? false : _ref$reset,
57
57
  _ref$disableClearable = _ref.disableClearable,
58
58
  disableClearable = _ref$disableClearable === void 0 ? false : _ref$disableClearable,
59
59
  _ref$disabled = _ref.disabled,
60
- disabled = _ref$disabled === void 0 ? false : _ref$disabled;
60
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
61
+ _ref$dropdownListfont = _ref.dropdownListfontSize,
62
+ dropdownListfontSize = _ref$dropdownListfont === void 0 ? "14px" : _ref$dropdownListfont,
63
+ _ref$inputLabelFontSi = _ref.inputLabelFontSize,
64
+ inputLabelFontSize = _ref$inputLabelFontSi === void 0 ? "16px" : _ref$inputLabelFontSi,
65
+ _ref$placeHolderFontS = _ref.placeHolderFontSize,
66
+ placeHolderFontSize = _ref$placeHolderFontS === void 0 ? "14px" : _ref$placeHolderFontS;
61
67
  /**
62
68
  * SAG Dropdown
63
69
  */
@@ -89,60 +95,114 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
89
95
  MuiFormLabel: {
90
96
  styleOverrides: {
91
97
  asterisk: {
92
- color: '#db3131'
98
+ color: "#db3131"
93
99
  }
94
100
  }
95
101
  }
96
102
  }
97
103
  });
98
104
 
99
- // defines shape: squire or round
100
- var getTextFieldStyle = function getTextFieldStyle() {
101
- if (shape === 'round') {
105
+ // Single Text Style
106
+ var getTextFieldStyleSingle = function getTextFieldStyleSingle() {
107
+ if (shape === "round") {
102
108
  // round
103
109
  return {
104
- '& .MuiOutlinedInput-root': {
105
- borderRadius: '12px',
110
+ "& .MuiOutlinedInput-root": {
111
+ borderRadius: "12px",
106
112
  legend: {
107
- marginLeft: '10px'
113
+ marginLeft: "10px"
108
114
  }
109
115
  },
110
- '& .MuiAutocomplete-inputRoot': {
111
- paddingLeft: '10px !important',
112
- borderRadius: '12px',
116
+ "& .MuiAutocomplete-inputRoot": {
117
+ paddingLeft: "10px !important",
118
+ borderRadius: "12px",
113
119
  // This matches the specificity of the default styles at https://github.com/mui-org/material-ui/blob/v4.11.3/packages/material-ui-lab/src/Autocomplete/Autocomplete.js#L90
114
120
  '&[class*="MuiOutlinedInput-root"] .MuiAutocomplete-input:first-of-type': {
115
121
  // Default left padding is 6px
116
- paddingLeft: '10px'
122
+ paddingLeft: "10px"
117
123
  },
118
- '& .MuiOutlinedInput-notchedOutline': {
119
- borderColor: '#E7E7E7'
124
+ "& .MuiOutlinedInput-notchedOutline": {
125
+ borderColor: "#E7E7E7"
120
126
  },
121
- '&:hover .MuiOutlinedInput-notchedOutline': {
122
- borderColor: disabled ? '#E7E7E7' : labelColor
127
+ "&:hover .MuiOutlinedInput-notchedOutline": {
128
+ borderColor: disabled ? "#E7E7E7" : labelColor
123
129
  },
124
- '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
125
- borderColor: disabled ? '#E7E7E7' : labelColor
130
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
131
+ borderColor: disabled ? "#E7E7E7" : labelColor
126
132
  }
127
133
  },
128
- '& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)': {
134
+ "& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
129
135
  // Default transform is "translate(14px, 20px) scale(1)""
130
136
  // This lines up the label with the initial cursor position in the input
131
137
  // after changing its padding-left.
132
- transform: 'translate(14px, 18px) scale(1);',
133
- fontSize: '14px',
134
- color: disabled ? '#E7E7E7' : currentInputValue && currentInputValue.length > 0 ? '#212121' : '#757575'
138
+ transform: "translate(14px, 18px) scale(1);",
139
+ fontSize: "14px",
140
+ color: disabled ? "#E7E7E7" : currentInputValue && currentInputValue.length > 0 ? "#212121" : "#757575"
135
141
  },
136
- '& .MuiInputLabel-outlined': {
137
- paddingLeft: '10px',
138
- color: disabled ? '#E7E7E7' : labelColor,
139
- fontSize: '18px'
142
+ "& .MuiInputLabel-outlined": {
143
+ paddingLeft: "10px",
144
+ color: disabled ? "#E7E7E7" : labelColor,
145
+ fontSize: "18px"
140
146
  },
141
- '& .MuiInputLabel-shrink': {
142
- marginLeft: '1px',
143
- paddingLeft: '4px',
144
- paddingRight: '6px',
145
- background: 'white'
147
+ "& .MuiInputLabel-shrink": {
148
+ marginLeft: "1px",
149
+ paddingLeft: "4px",
150
+ paddingRight: "6px",
151
+ background: "white"
152
+ }
153
+ };
154
+ }
155
+ // square
156
+ return null;
157
+ };
158
+
159
+ // ---------------------------- Multi Text Style -----------------------------------------
160
+ var getTextFieldStyleMulti = function getTextFieldStyleMulti() {
161
+ if (shape === "round") {
162
+ // round
163
+ return {
164
+ "& .MuiOutlinedInput-root": {
165
+ borderRadius: "12px",
166
+ legend: {
167
+ marginLeft: "10px"
168
+ }
169
+ },
170
+ "& .MuiAutocomplete-inputRoot": {
171
+ paddingLeft: "10px !important",
172
+ borderRadius: "12px",
173
+ // This matches the specificity of the default styles at https://github.com/mui-org/material-ui/blob/v4.11.3/packages/material-ui-lab/src/Autocomplete/Autocomplete.js#L90
174
+ '&[class*="MuiOutlinedInput-root"] .MuiAutocomplete-input:first-of-type': {
175
+ // Default left padding is 6px
176
+ paddingLeft: "10px"
177
+ },
178
+ "& .MuiOutlinedInput-notchedOutline": {
179
+ borderColor: "#E7E7E7"
180
+ },
181
+ "&:hover .MuiOutlinedInput-notchedOutline": {
182
+ borderColor: disabled ? "#E7E7E7" : labelColor
183
+ },
184
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
185
+ borderColor: disabled ? "#E7E7E7" : labelColor
186
+ }
187
+ },
188
+ "& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
189
+ // Default transform is "translate(14px, 20px) scale(1)""
190
+ // This lines up the label with the initial cursor position in the input
191
+ // after changing its padding-left.
192
+ transform: "translate(14px, 18px) scale(1);",
193
+ fontSize: "14px",
194
+ color: disabled ? "#E7E7E7" : currentInputValue && currentInputValue.length > 0 ? "#212121" : "#757575"
195
+ },
196
+ "& .MuiInputLabel-outlined": {
197
+ paddingLeft: "10px",
198
+ color: disabled ? "#E7E7E7" : labelColor,
199
+ fontSize: "18px"
200
+ },
201
+ "& .MuiInputLabel-shrink": {
202
+ marginLeft: "1px",
203
+ paddingLeft: "4px",
204
+ paddingRight: "6px",
205
+ background: "white"
146
206
  }
147
207
  };
148
208
  }
@@ -180,21 +240,23 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
180
240
  var ALPHA_REGEX = /^[a-zA-Z]+$/;
181
241
  var ALPHA_NUMERIC_REGEX = /^[a-zA-Z0-9-]+$/;
182
242
  switch (allowedInput) {
183
- case 'all':
243
+ case "all":
184
244
  return true;
185
- case 'alpha':
245
+ case "alpha":
186
246
  if (ALPHA_REGEX.test(inputChar)) return true;
187
247
  return false;
188
- case 'numeric':
248
+ case "numeric":
189
249
  if (NUMERIC_REGEX.test(inputChar)) return true;
190
250
  return false;
191
- case 'alphaNumeric':
251
+ case "alphaNumeric":
192
252
  if (ALPHA_NUMERIC_REGEX.test(inputChar)) return true;
193
253
  return false;
194
254
  default:
195
255
  return true;
196
256
  }
197
257
  };
258
+
259
+ // --------------------------------------- DROPDOWN SINGLE --------------------------------
198
260
  var getAutocompleteSingle = function getAutocompleteSingle() {
199
261
  return /*#__PURE__*/_react.default.createElement(_styles.ThemeProvider, {
200
262
  theme: theme
@@ -231,36 +293,32 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
231
293
  label: text,
232
294
  inputRef: inputRef || null,
233
295
  size: size,
234
- sx: getTextFieldStyle(),
296
+ sx: getTextFieldStyleSingle(),
235
297
  placeholder: placeHolder,
236
298
  InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
237
299
  style: {
238
- fontSize: '14px',
239
- fontFamily: 'Poppins'
300
+ fontSize: placeHolderFontSize,
301
+ fontFamily: "Poppins"
240
302
  },
241
303
  startAdornment: showSearchIcon ? /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
242
304
  position: "start"
243
305
  }, /*#__PURE__*/_react.default.createElement(_Search.default, {
244
306
  fontSize: "medium"
245
307
  })) : null
246
- }),
247
- InputLabelProps: {
248
- style: {
249
- // color: labelColor,
250
- // fontSize: "14px",
251
- fontFamily: 'Poppins'
252
- }
253
- }
308
+ })
254
309
  }));
255
310
  },
256
311
  ListboxProps: {
257
312
  style: {
258
- fontSize: '14px',
259
- fontFamily: 'Poppins'
313
+ fontSize: dropdownListfontSize,
314
+ //default: 14px
315
+ fontFamily: "Poppins"
260
316
  }
261
317
  }
262
318
  }));
263
319
  };
320
+
321
+ // --------------------------------------- DROPDOWN MULTI --------------------------------
264
322
  var getAutocompleteMulti = function getAutocompleteMulti() {
265
323
  return /*#__PURE__*/_react.default.createElement(_styles.ThemeProvider, {
266
324
  theme: theme
@@ -295,11 +353,6 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
295
353
  return /*#__PURE__*/_react.default.createElement("li", props, /*#__PURE__*/_react.default.createElement(_Checkbox.default, {
296
354
  icon: icon,
297
355
  checkedIcon: checkedIcon,
298
- style: {
299
- marginRight: 8,
300
- fontSize: '14px',
301
- fontFamily: 'Poppins'
302
- },
303
356
  checked: selected
304
357
  }), option.label);
305
358
  },
@@ -307,7 +360,7 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
307
360
  return showSearchIcon && (!currentOption || currentOption && currentOption.length === 0) ? /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, params, {
308
361
  label: text,
309
362
  size: size,
310
- sx: getTextFieldStyle(),
363
+ sx: getTextFieldStyleMulti(),
311
364
  placeholder: placeHolder,
312
365
  onKeyDown: function onKeyDown(event) {
313
366
  if (!isInputAllowed(event.key)) {
@@ -318,51 +371,41 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
318
371
  required: required,
319
372
  InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
320
373
  style: {
321
- fontSize: '14px',
322
- fontFamily: 'Poppins'
323
- },
324
- startAdornment: /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
325
- position: "start"
326
- }, /*#__PURE__*/_react.default.createElement(_Search.default, {
327
- fontSize: "medium"
328
- }))
329
- }),
330
- InputLabelProps: {
331
- style: {
332
- // color: labelColor,
333
- fontSize: '16px',
334
- fontFamily: 'Poppins'
374
+ fontSize: placeHolderFontSize,
375
+ fontFamily: "Poppins"
335
376
  }
336
- }
377
+ })
337
378
  })) : /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, params, {
338
379
  label: text,
339
380
  size: size,
340
- sx: getTextFieldStyle(),
381
+ sx: getTextFieldStyleMulti(),
341
382
  placeholder: placeHolder,
383
+ InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
384
+ style: {
385
+ fontSize: placeHolderFontSize,
386
+ fontFamily: "Poppins"
387
+ }
388
+ }),
342
389
  onKeyDown: function onKeyDown(event) {
343
390
  if (!isInputAllowed(event.key)) {
344
391
  event.preventDefault();
345
392
  }
346
393
  },
347
394
  inputRef: inputRef || null,
348
- required: required,
349
- InputLabelProps: {
350
- style: {
351
- // color: labelColor,
352
- fontSize: '16px',
353
- fontFamily: 'Poppins'
354
- }
355
- }
395
+ required: required
356
396
  }));
357
397
  },
358
398
  ListboxProps: {
359
399
  style: {
360
- fontSize: '14px',
361
- fontFamily: 'Poppins'
400
+ fontSize: dropdownListfontSize,
401
+ //default: 14px
402
+ fontFamily: "Poppins"
362
403
  }
363
404
  }
364
405
  }));
365
406
  };
407
+
408
+ // --------------------------------- MAIN -------------------------------------
366
409
  return /*#__PURE__*/_react.default.createElement(_Dropdown.DropdownContainer, {
367
410
  width: width
368
411
  }, multiSelect ? getAutocompleteMulti() : getAutocompleteSingle());
@@ -115,7 +115,7 @@ var TotalDoughnutChart = exports.TotalDoughnutChart = function TotalDoughnutChar
115
115
  style: {
116
116
  fontWeight: itemsBoldedValues ? '700' : '500'
117
117
  }
118
- }, currencySign ? (0, _CommonFunctions.getCurrencySign)(currencyType, row.value) : '', row.value !== undefined && row.value !== null ? dotCutTrenty(row) : 'No Data', row.value !== undefined && row.value !== null && dotCut ? (0, _CommonFunctions.getFormattedUnits)(row.value) : '', itemsPercentagesValueAside && " (".concat(Math.round(row.value / value * 100), "%)")))));
118
+ }, row.value !== undefined && row.value !== null ? dotCutTrenty(row) : 'No Data', row.value !== undefined && row.value !== null && dotCut ? (0, _CommonFunctions.getFormattedUnits)(row.value) : '', itemsPercentagesValueAside && " (".concat(Math.round(row.value / value * 100), "%)")))));
119
119
  })))) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
120
120
  noDataText: noDataText
121
121
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.368",
3
+ "version": "1.0.370",
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
- };