@leexi/shared 0.3.6 → 0.3.8
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/README.md +62 -38
- package/dist/eslint/base.eslint.config.d.ts +79 -143
- package/dist/eslint/base.eslint.config.mjs +25 -61
- package/dist/eslint/vue.eslint.config.d.ts +81 -146
- package/dist/eslint/vue.eslint.config.mjs +2 -3
- package/dist/module.json +1 -1
- package/dist/runtime/composables/useLocalStorage.d.ts +15 -9
- package/dist/runtime/utils/objects/deepDup.d.ts +13 -4
- package/dist/runtime/utils/objects/isSame.d.ts +12 -3
- package/dist/runtime/utils/records/omit.d.ts +9 -4
- package/dist/runtime/utils/records/pick.d.ts +9 -4
- package/dist/runtime/utils/records/set.d.ts +10 -9
- package/dist/runtime/utils/strings/camelcase.d.ts +7 -3
- package/dist/runtime/utils/strings/camelcase.js +1 -1
- package/dist/runtime/utils/strings/capitalize.d.ts +7 -3
- package/dist/runtime/utils/strings/capitalize.js +1 -1
- package/dist/runtime/utils/strings/kebabcase.d.ts +7 -3
- package/dist/runtime/utils/strings/kebabcase.js +1 -1
- package/dist/runtime/utils/strings/snakecase.d.ts +7 -3
- package/dist/runtime/utils/strings/snakecase.js +1 -1
- package/package.json +13 -14
package/README.md
CHANGED
|
@@ -79,132 +79,156 @@ export default defineNuxtConfig({
|
|
|
79
79
|
|
|
80
80
|
## Composables
|
|
81
81
|
### useLocalStorage
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
A composable that provides a reactive reference to a value stored in localStorage.
|
|
83
|
+
It handles JSON parsing/stringifying and migration from kebab-case/snake_case keys to camelCase.
|
|
84
84
|
- Type
|
|
85
85
|
```ts
|
|
86
86
|
const useLocalStorage: <T>(key: string, defaultValue?: T) => Ref<undefined | T>;
|
|
87
87
|
```
|
|
88
88
|
- Example
|
|
89
89
|
```ts
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
const userSetting = useLocalStorage('userSetting', { theme: 'light' });
|
|
91
|
+
console.log(userSetting.value); // Output: { theme: 'light' }
|
|
92
|
+
console.log(localStorage.userSetting); // Output: '{"theme":"light"}'
|
|
93
|
+
|
|
94
|
+
const sameUserSetting = useLocalStorage('userSetting');
|
|
95
|
+
console.log(sameUserSetting.value); // Output: { theme: 'light' }
|
|
96
|
+
|
|
97
|
+
userSetting.value = { theme: 'dark', notifications: true };
|
|
98
|
+
console.log(sameUserSetting.value); // Output: { theme: 'dark', notifications: true }
|
|
99
|
+
console.log(localStorage.userSetting); // Output: '{"theme":"dark","notifications":true}'
|
|
94
100
|
```
|
|
95
101
|
|
|
96
102
|
## Utils
|
|
97
103
|
### Records
|
|
98
104
|
#### set
|
|
99
|
-
|
|
100
|
-
|
|
105
|
+
Sets a value within a nested object structure based on a provided path.
|
|
106
|
+
It mutates the original object and creates nested objects if they don't exist along the path.
|
|
101
107
|
- Type
|
|
102
108
|
```ts
|
|
103
109
|
const set: <T extends Record<string, unknown>, const P extends string[], V>(record: T, path: P, value: V) => SetRecord<T, P, V>;
|
|
104
110
|
```
|
|
105
111
|
- Example
|
|
106
112
|
```ts
|
|
107
|
-
const
|
|
108
|
-
set(
|
|
109
|
-
|
|
113
|
+
const myObject = { a: { b: { c: 1 } } };
|
|
114
|
+
set(myObject, ['a', 'b', 'd'], 2);
|
|
115
|
+
|
|
116
|
+
console.log(myObject); // Output: { a: { b: { c: 1, d: 2 } } }
|
|
110
117
|
```
|
|
111
118
|
|
|
112
119
|
#### omit
|
|
113
|
-
|
|
120
|
+
Creates a new object by omitting the specified keys from the input record.
|
|
114
121
|
- Type
|
|
115
122
|
```ts
|
|
116
123
|
const omit: <T extends Record<string, unknown>, K extends (keyof T)[]>(record: T, keys: K) => Omit<T, K[number]>;
|
|
117
124
|
```
|
|
118
125
|
- Example
|
|
119
126
|
```ts
|
|
120
|
-
const
|
|
121
|
-
const
|
|
122
|
-
|
|
127
|
+
const myObject = { a: 1, b: 2, c: 3, d: 4 };
|
|
128
|
+
const omittedObject = omit(myObject, ['b', 'd']);
|
|
129
|
+
|
|
130
|
+
console.log(omittedObject); // Output: { a: 1, c: 3 }
|
|
123
131
|
```
|
|
124
132
|
|
|
125
133
|
#### pick
|
|
126
|
-
|
|
134
|
+
Creates a new object by picking only the specified keys from the input record.
|
|
127
135
|
- Type
|
|
128
136
|
```ts
|
|
129
137
|
const pick: <T extends Record<string, unknown>, K extends (keyof T)[]>(record: T, keys: K) => Pick<T, K[number]>;
|
|
130
138
|
```
|
|
131
139
|
- Example
|
|
132
140
|
```ts
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
|
|
141
|
+
const myObject = { a: 1, b: 2, c: 3, d: 4 };
|
|
142
|
+
const pickedObject = pick(myObject, ['a', 'c']);
|
|
143
|
+
|
|
144
|
+
console.log(pickedObject); // Output: { a: 1, c: 3 }
|
|
136
145
|
```
|
|
137
146
|
|
|
138
147
|
### Strings
|
|
139
148
|
#### camelcase
|
|
140
|
-
|
|
149
|
+
Converts a string from snake_case or kebab-case to camelCase.
|
|
141
150
|
- Type
|
|
142
151
|
```ts
|
|
143
152
|
const camelcase: (string: string) => string;
|
|
144
153
|
```
|
|
145
154
|
- Example
|
|
146
155
|
```ts
|
|
147
|
-
camelcase('
|
|
148
|
-
camelcase('
|
|
156
|
+
console.log(camelcase('my_variable_name')); // Output: myVariableName
|
|
157
|
+
console.log(camelcase('my-variable-name')); // Output: myVariableName
|
|
158
|
+
console.log(camelcase('myVariable')); // Output: myVariable
|
|
149
159
|
```
|
|
150
160
|
|
|
151
161
|
#### capitalize
|
|
152
|
-
Capitalizes a string
|
|
162
|
+
Capitalizes the first letter of a string.
|
|
153
163
|
- Type
|
|
154
164
|
```ts
|
|
155
|
-
const capitalize: (string
|
|
165
|
+
const capitalize: (string: string) => string;
|
|
156
166
|
```
|
|
157
167
|
- Example
|
|
158
168
|
```ts
|
|
159
|
-
capitalize('
|
|
169
|
+
console.log(capitalize('hello world')); // Output: Hello world
|
|
170
|
+
console.log(capitalize('')); // Output: ''
|
|
160
171
|
```
|
|
161
172
|
|
|
162
173
|
#### kebabcase
|
|
163
|
-
|
|
174
|
+
Converts a string from camelCase or snake_case to kebab-case.
|
|
164
175
|
- Type
|
|
165
176
|
```ts
|
|
166
177
|
const kebabcase: (string: string) => string;
|
|
167
178
|
```
|
|
168
179
|
- Example
|
|
169
180
|
```ts
|
|
170
|
-
kebabcase('
|
|
171
|
-
kebabcase('
|
|
181
|
+
console.log(kebabcase('myVariableName')); // Output: my-variable-name
|
|
182
|
+
console.log(kebabcase('my_variable_name')); // Output: my-variable-name
|
|
183
|
+
console.log(kebabcase('my-variable-name')); // Output: my-variable-name
|
|
172
184
|
```
|
|
173
185
|
|
|
174
186
|
#### snakecase
|
|
175
|
-
|
|
187
|
+
Converts a string from camelCase or kebab-case to snake_case.
|
|
176
188
|
- Type
|
|
177
189
|
```ts
|
|
178
190
|
const snakecase: (string: string) => string;
|
|
179
191
|
```
|
|
180
192
|
- Example
|
|
181
193
|
```ts
|
|
182
|
-
snakecase('
|
|
183
|
-
snakecase('
|
|
194
|
+
console.log(snakecase('myVariableName')); // Output: my_variable_name
|
|
195
|
+
console.log(snakecase('my-variable-name')); // Output: my_variable_name
|
|
196
|
+
console.log(snakecase('my_variable_name')); // Output: my_variable_name
|
|
184
197
|
```
|
|
185
198
|
|
|
186
199
|
### Objects
|
|
187
200
|
#### deepDup
|
|
188
|
-
|
|
201
|
+
Creates a deep duplicate of an object, array, or Set.
|
|
202
|
+
It handles nested objects, arrays, and Sets but does not handle functions, Dates, or circular references.
|
|
189
203
|
- Type
|
|
190
204
|
```ts
|
|
191
205
|
const deepDup: <T extends object>(object: T) => T;
|
|
192
206
|
```
|
|
193
207
|
- Example
|
|
194
208
|
```ts
|
|
195
|
-
const
|
|
196
|
-
const
|
|
197
|
-
|
|
209
|
+
const originalObject = { a: 1, b: { c: 2, d: [3, 4] }, e: new Set([5, 6]) };
|
|
210
|
+
const duplicatedObject = deepDup(originalObject);
|
|
211
|
+
|
|
212
|
+
console.log(duplicatedObject); // Output: { a: 1, b: { c: 2, d: [3, 4] }, e: Set { 5, 6 } }
|
|
213
|
+
console.log(originalObject === duplicatedObject); // Output: false
|
|
214
|
+
console.log(originalObject.b === duplicatedObject.b); // Output: false
|
|
215
|
+
console.log(originalObject.b.d === duplicatedObject.b.d); // Output: false
|
|
216
|
+
console.log(originalObject.e === duplicatedObject.e); // Output: false
|
|
198
217
|
```
|
|
199
218
|
|
|
200
219
|
#### isSame
|
|
201
|
-
|
|
220
|
+
Checks if two objects are the same by comparing their JSON stringified representations.
|
|
221
|
+
Note: This method has limitations and may not accurately compare objects with different key orders, non-primitive values like functions or Dates, or circular references.
|
|
202
222
|
- Type
|
|
203
223
|
```ts
|
|
204
224
|
const isSame: (a: object, b: object) => boolean;
|
|
205
225
|
```
|
|
206
226
|
- Example
|
|
207
227
|
```ts
|
|
208
|
-
|
|
209
|
-
|
|
228
|
+
const obj1 = { a: 1, b: 2 };
|
|
229
|
+
const obj2 = { a: 1, b: 2 };
|
|
230
|
+
const obj3 = { b: 2, a: 1 };
|
|
231
|
+
|
|
232
|
+
console.log(isSame(obj1, obj2)); // Output: true
|
|
233
|
+
console.log(isSame(obj1, obj3)); // Output: false (due to key order difference in JSON stringification)
|
|
210
234
|
```
|
|
@@ -7,6 +7,7 @@ declare const _default: ({
|
|
|
7
7
|
__filename: false;
|
|
8
8
|
AbortController: false;
|
|
9
9
|
AbortSignal: false;
|
|
10
|
+
AsyncDisposableStack: false;
|
|
10
11
|
atob: false;
|
|
11
12
|
Blob: false;
|
|
12
13
|
BroadcastChannel: false;
|
|
@@ -25,6 +26,7 @@ declare const _default: ({
|
|
|
25
26
|
CryptoKey: false;
|
|
26
27
|
CustomEvent: false;
|
|
27
28
|
DecompressionStream: false;
|
|
29
|
+
DisposableStack: false;
|
|
28
30
|
DOMException: false;
|
|
29
31
|
Event: false;
|
|
30
32
|
EventTarget: false;
|
|
@@ -64,6 +66,7 @@ declare const _default: ({
|
|
|
64
66
|
setTimeout: false;
|
|
65
67
|
structuredClone: false;
|
|
66
68
|
SubtleCrypto: false;
|
|
69
|
+
SuppressedError: false;
|
|
67
70
|
TextDecoder: false;
|
|
68
71
|
TextDecoderStream: false;
|
|
69
72
|
TextEncoder: false;
|
|
@@ -71,6 +74,7 @@ declare const _default: ({
|
|
|
71
74
|
TransformStream: false;
|
|
72
75
|
TransformStreamDefaultController: false;
|
|
73
76
|
URL: false;
|
|
77
|
+
URLPattern: false;
|
|
74
78
|
URLSearchParams: false;
|
|
75
79
|
WebAssembly: false;
|
|
76
80
|
WebSocket: false;
|
|
@@ -83,6 +87,7 @@ declare const _default: ({
|
|
|
83
87
|
addEventListener: false;
|
|
84
88
|
ai: false;
|
|
85
89
|
AI: false;
|
|
90
|
+
AICreateMonitor: false;
|
|
86
91
|
AITextSession: false;
|
|
87
92
|
alert: false;
|
|
88
93
|
AnalyserNode: false;
|
|
@@ -154,11 +159,13 @@ declare const _default: ({
|
|
|
154
159
|
CharacterData: false;
|
|
155
160
|
clientInformation: false;
|
|
156
161
|
Clipboard: false;
|
|
162
|
+
ClipboardChangeEvent: false;
|
|
157
163
|
ClipboardEvent: false;
|
|
158
164
|
ClipboardItem: false;
|
|
159
165
|
close: false;
|
|
160
166
|
closed: false;
|
|
161
167
|
CloseWatcher: false;
|
|
168
|
+
CommandEvent: false;
|
|
162
169
|
Comment: false;
|
|
163
170
|
CompositionEvent: false;
|
|
164
171
|
confirm: false;
|
|
@@ -171,11 +178,13 @@ declare const _default: ({
|
|
|
171
178
|
CookieStore: false;
|
|
172
179
|
CookieStoreManager: false;
|
|
173
180
|
createImageBitmap: false;
|
|
181
|
+
CreateMonitor: false;
|
|
174
182
|
Credential: false;
|
|
175
183
|
credentialless: false;
|
|
176
184
|
CredentialsContainer: false;
|
|
177
185
|
CropTarget: false;
|
|
178
186
|
crossOriginIsolated: false;
|
|
187
|
+
CSPViolationReportBody: false;
|
|
179
188
|
CSS: false;
|
|
180
189
|
CSSAnimation: false;
|
|
181
190
|
CSSConditionRule: false;
|
|
@@ -251,6 +260,7 @@ declare const _default: ({
|
|
|
251
260
|
DeviceMotionEventRotationRate: false;
|
|
252
261
|
DeviceOrientationEvent: false;
|
|
253
262
|
devicePixelRatio: false;
|
|
263
|
+
DevicePosture: false;
|
|
254
264
|
dispatchEvent: false;
|
|
255
265
|
document: false;
|
|
256
266
|
Document: false;
|
|
@@ -305,9 +315,9 @@ declare const _default: ({
|
|
|
305
315
|
FileSystemFileEntry: false;
|
|
306
316
|
FileSystemFileHandle: false;
|
|
307
317
|
FileSystemHandle: false;
|
|
318
|
+
FileSystemObserver: false;
|
|
308
319
|
FileSystemWritableFileStream: false;
|
|
309
320
|
find: false;
|
|
310
|
-
Float16Array: false;
|
|
311
321
|
focus: false;
|
|
312
322
|
FocusEvent: false;
|
|
313
323
|
FontData: false;
|
|
@@ -442,6 +452,7 @@ declare const _default: ({
|
|
|
442
452
|
HTMLProgressElement: false;
|
|
443
453
|
HTMLQuoteElement: false;
|
|
444
454
|
HTMLScriptElement: false;
|
|
455
|
+
HTMLSelectedContentElement: false;
|
|
445
456
|
HTMLSelectElement: false;
|
|
446
457
|
HTMLSlotElement: false;
|
|
447
458
|
HTMLSourceElement: false;
|
|
@@ -493,6 +504,7 @@ declare const _default: ({
|
|
|
493
504
|
InputDeviceCapabilities: false;
|
|
494
505
|
InputDeviceInfo: false;
|
|
495
506
|
InputEvent: false;
|
|
507
|
+
IntegrityViolationReportBody: false;
|
|
496
508
|
IntersectionObserver: false;
|
|
497
509
|
IntersectionObserverEntry: false;
|
|
498
510
|
isSecureContext: false;
|
|
@@ -500,6 +512,7 @@ declare const _default: ({
|
|
|
500
512
|
KeyboardEvent: false;
|
|
501
513
|
KeyboardLayoutMap: false;
|
|
502
514
|
KeyframeEffect: false;
|
|
515
|
+
LanguageDetector: false;
|
|
503
516
|
LargestContentfulPaint: false;
|
|
504
517
|
LaunchParams: false;
|
|
505
518
|
launchQueue: false;
|
|
@@ -592,6 +605,7 @@ declare const _default: ({
|
|
|
592
605
|
NotifyPaintEvent: false;
|
|
593
606
|
NotRestoredReasonDetails: false;
|
|
594
607
|
NotRestoredReasons: false;
|
|
608
|
+
Observable: false;
|
|
595
609
|
OfflineAudioCompletionEvent: false;
|
|
596
610
|
OfflineAudioContext: false;
|
|
597
611
|
offscreenBuffering: false;
|
|
@@ -619,6 +633,7 @@ declare const _default: ({
|
|
|
619
633
|
onchange: true;
|
|
620
634
|
onclick: true;
|
|
621
635
|
onclose: true;
|
|
636
|
+
oncommand: true;
|
|
622
637
|
oncontentvisibilityautostatechange: true;
|
|
623
638
|
oncontextlost: true;
|
|
624
639
|
oncontextmenu: true;
|
|
@@ -791,12 +806,14 @@ declare const _default: ({
|
|
|
791
806
|
PushSubscription: false;
|
|
792
807
|
PushSubscriptionOptions: false;
|
|
793
808
|
queryLocalFonts: false;
|
|
809
|
+
QuotaExceededError: false;
|
|
794
810
|
RadioNodeList: false;
|
|
795
811
|
Range: false;
|
|
796
812
|
registerProcessor: false;
|
|
797
813
|
RelativeOrientationSensor: false;
|
|
798
814
|
RemotePlayback: false;
|
|
799
815
|
removeEventListener: false;
|
|
816
|
+
ReportBody: false;
|
|
800
817
|
reportError: false;
|
|
801
818
|
ReportingObserver: false;
|
|
802
819
|
requestAnimationFrame: false;
|
|
@@ -806,6 +823,7 @@ declare const _default: ({
|
|
|
806
823
|
ResizeObserverEntry: false;
|
|
807
824
|
ResizeObserverSize: false;
|
|
808
825
|
resizeTo: false;
|
|
826
|
+
RestrictionTarget: false;
|
|
809
827
|
RTCCertificate: false;
|
|
810
828
|
RTCDataChannel: false;
|
|
811
829
|
RTCDataChannelEvent: false;
|
|
@@ -864,6 +882,11 @@ declare const _default: ({
|
|
|
864
882
|
ShadowRoot: false;
|
|
865
883
|
sharedStorage: false;
|
|
866
884
|
SharedStorage: false;
|
|
885
|
+
SharedStorageAppendMethod: false;
|
|
886
|
+
SharedStorageClearMethod: false;
|
|
887
|
+
SharedStorageDeleteMethod: false;
|
|
888
|
+
SharedStorageModifierMethod: false;
|
|
889
|
+
SharedStorageSetMethod: false;
|
|
867
890
|
SharedStorageWorklet: false;
|
|
868
891
|
SharedWorker: false;
|
|
869
892
|
showDirectoryPicker: false;
|
|
@@ -894,6 +917,8 @@ declare const _default: ({
|
|
|
894
917
|
StyleSheet: false;
|
|
895
918
|
StyleSheetList: false;
|
|
896
919
|
SubmitEvent: false;
|
|
920
|
+
Subscriber: false;
|
|
921
|
+
Summarizer: false;
|
|
897
922
|
SVGAElement: false;
|
|
898
923
|
SVGAngle: false;
|
|
899
924
|
SVGAnimatedAngle: false;
|
|
@@ -1017,6 +1042,7 @@ declare const _default: ({
|
|
|
1017
1042
|
TouchList: false;
|
|
1018
1043
|
TrackEvent: false;
|
|
1019
1044
|
TransitionEvent: false;
|
|
1045
|
+
Translator: false;
|
|
1020
1046
|
TreeWalker: false;
|
|
1021
1047
|
TrustedHTML: false;
|
|
1022
1048
|
TrustedScript: false;
|
|
@@ -1025,7 +1051,6 @@ declare const _default: ({
|
|
|
1025
1051
|
TrustedTypePolicyFactory: false;
|
|
1026
1052
|
trustedTypes: false;
|
|
1027
1053
|
UIEvent: false;
|
|
1028
|
-
URLPattern: false;
|
|
1029
1054
|
USB: false;
|
|
1030
1055
|
USBAlternateInterface: false;
|
|
1031
1056
|
USBConfiguration: false;
|
|
@@ -1046,6 +1071,8 @@ declare const _default: ({
|
|
|
1046
1071
|
VideoEncoder: false;
|
|
1047
1072
|
VideoFrame: false;
|
|
1048
1073
|
VideoPlaybackQuality: false;
|
|
1074
|
+
viewport: false;
|
|
1075
|
+
Viewport: false;
|
|
1049
1076
|
ViewTimeline: false;
|
|
1050
1077
|
ViewTransition: false;
|
|
1051
1078
|
ViewTransitionTypeSet: false;
|
|
@@ -1087,6 +1114,7 @@ declare const _default: ({
|
|
|
1087
1114
|
WebTransportSendStream: false;
|
|
1088
1115
|
WGSLLanguageFeatures: false;
|
|
1089
1116
|
WheelEvent: false;
|
|
1117
|
+
when: false;
|
|
1090
1118
|
window: false;
|
|
1091
1119
|
Window: false;
|
|
1092
1120
|
WindowControlsOverlay: false;
|
|
@@ -1148,15 +1176,10 @@ declare const _default: ({
|
|
|
1148
1176
|
};
|
|
1149
1177
|
};
|
|
1150
1178
|
plugins: {
|
|
1151
|
-
'@stylistic
|
|
1152
|
-
rules: import("@stylistic/eslint-plugin
|
|
1153
|
-
configs:
|
|
1154
|
-
"disable-legacy": import("eslint").Linter.Config;
|
|
1155
|
-
"all": import("eslint").Linter.Config;
|
|
1156
|
-
"all-flat": import("eslint").Linter.Config;
|
|
1157
|
-
};
|
|
1179
|
+
'@stylistic': {
|
|
1180
|
+
rules: import("@stylistic/eslint-plugin").Rules;
|
|
1181
|
+
configs: import("eslint").ESLint.Plugin["configs"] & import("@stylistic/eslint-plugin").Configs;
|
|
1158
1182
|
};
|
|
1159
|
-
'@stylistic/ts'?: undefined;
|
|
1160
1183
|
};
|
|
1161
1184
|
rules: {
|
|
1162
1185
|
'arrow-body-style': string[];
|
|
@@ -1172,117 +1195,42 @@ declare const _default: ({
|
|
|
1172
1195
|
destructuring: string;
|
|
1173
1196
|
})[];
|
|
1174
1197
|
'prefer-template': string;
|
|
1175
|
-
'@stylistic/
|
|
1176
|
-
'@stylistic/
|
|
1177
|
-
'@stylistic/
|
|
1178
|
-
'@stylistic/
|
|
1179
|
-
'@stylistic/
|
|
1180
|
-
'@stylistic/
|
|
1198
|
+
'@stylistic/array-bracket-spacing': string[];
|
|
1199
|
+
'@stylistic/arrow-parens': string[];
|
|
1200
|
+
'@stylistic/comma-dangle': string[];
|
|
1201
|
+
'@stylistic/comma-spacing': string;
|
|
1202
|
+
'@stylistic/eol-last': string[];
|
|
1203
|
+
'@stylistic/indent': (string | number | {
|
|
1181
1204
|
SwitchCase: number;
|
|
1182
1205
|
})[];
|
|
1183
|
-
'@stylistic/
|
|
1184
|
-
'@stylistic/
|
|
1185
|
-
'@stylistic/
|
|
1186
|
-
'@stylistic/
|
|
1187
|
-
'@stylistic/
|
|
1206
|
+
'@stylistic/key-spacing': string;
|
|
1207
|
+
'@stylistic/keyword-spacing': string;
|
|
1208
|
+
'@stylistic/multiline-ternary': string[];
|
|
1209
|
+
'@stylistic/no-multi-spaces': string;
|
|
1210
|
+
'@stylistic/no-multiple-empty-lines': (string | {
|
|
1188
1211
|
max: number;
|
|
1189
1212
|
})[];
|
|
1190
|
-
'@stylistic/
|
|
1191
|
-
'@stylistic/
|
|
1192
|
-
'@stylistic/
|
|
1193
|
-
'@stylistic/
|
|
1194
|
-
'@stylistic/
|
|
1195
|
-
'@stylistic/
|
|
1196
|
-
'@stylistic/
|
|
1197
|
-
'@stylistic/
|
|
1198
|
-
'@stylistic/
|
|
1199
|
-
'@stylistic/
|
|
1200
|
-
'@stylistic/
|
|
1201
|
-
'@stylistic/
|
|
1213
|
+
'@stylistic/no-trailing-spaces': string;
|
|
1214
|
+
'@stylistic/object-curly-spacing': string[];
|
|
1215
|
+
'@stylistic/quote-props': string[];
|
|
1216
|
+
'@stylistic/quotes': string[];
|
|
1217
|
+
'@stylistic/semi': string[];
|
|
1218
|
+
'@stylistic/semi-spacing': string;
|
|
1219
|
+
'@stylistic/space-before-blocks': string[];
|
|
1220
|
+
'@stylistic/space-before-function-paren': string[];
|
|
1221
|
+
'@stylistic/space-in-parens': string[];
|
|
1222
|
+
'@stylistic/space-infix-ops': string;
|
|
1223
|
+
'@stylistic/spaced-comment': string;
|
|
1224
|
+
'@stylistic/template-curly-spacing': string[];
|
|
1202
1225
|
'@typescript-eslint/no-unused-expressions': string;
|
|
1203
1226
|
'@typescript-eslint/no-unused-vars': (string | {
|
|
1204
1227
|
argsIgnorePattern: string;
|
|
1205
1228
|
destructuredArrayIgnorePattern: string;
|
|
1206
1229
|
ignoreRestSiblings: boolean;
|
|
1207
1230
|
})[];
|
|
1208
|
-
'@stylistic/ts/comma-dangle'?: undefined;
|
|
1209
|
-
'@stylistic/ts/comma-spacing'?: undefined;
|
|
1210
|
-
'@stylistic/ts/indent'?: undefined;
|
|
1211
|
-
'@stylistic/ts/key-spacing'?: undefined;
|
|
1212
|
-
'@stylistic/ts/keyword-spacing'?: undefined;
|
|
1213
|
-
'@stylistic/ts/object-curly-spacing'?: undefined;
|
|
1214
|
-
'@stylistic/ts/quote-props'?: undefined;
|
|
1215
|
-
'@stylistic/ts/quotes'?: undefined;
|
|
1216
|
-
'@stylistic/ts/semi'?: undefined;
|
|
1217
|
-
'@stylistic/ts/space-before-blocks'?: undefined;
|
|
1218
|
-
'@stylistic/ts/space-before-function-paren'?: undefined;
|
|
1219
|
-
'@stylistic/ts/space-infix-ops'?: undefined;
|
|
1220
1231
|
'sort-keys'?: undefined;
|
|
1221
1232
|
};
|
|
1222
1233
|
files?: undefined;
|
|
1223
|
-
} | {
|
|
1224
|
-
files: string[];
|
|
1225
|
-
plugins: {
|
|
1226
|
-
'@stylistic/ts': {
|
|
1227
|
-
rules: import("@stylistic/eslint-plugin-ts").Rules;
|
|
1228
|
-
configs: {
|
|
1229
|
-
"disable-legacy": import("eslint").Linter.Config;
|
|
1230
|
-
"all": import("eslint").Linter.Config;
|
|
1231
|
-
"all-flat": import("eslint").Linter.Config;
|
|
1232
|
-
};
|
|
1233
|
-
};
|
|
1234
|
-
'@stylistic/js'?: undefined;
|
|
1235
|
-
};
|
|
1236
|
-
rules: {
|
|
1237
|
-
'@stylistic/js/comma-dangle': string;
|
|
1238
|
-
'@stylistic/js/comma-spacing': string;
|
|
1239
|
-
'@stylistic/js/indent': string;
|
|
1240
|
-
'@stylistic/js/key-spacing': string;
|
|
1241
|
-
'@stylistic/js/keyword-spacing': string;
|
|
1242
|
-
'@stylistic/js/object-curly-spacing': string;
|
|
1243
|
-
'@stylistic/js/quote-props': string;
|
|
1244
|
-
'@stylistic/js/quotes': string;
|
|
1245
|
-
'@stylistic/js/semi': string;
|
|
1246
|
-
'@stylistic/js/space-before-blocks': string;
|
|
1247
|
-
'@stylistic/js/space-before-function-paren': string;
|
|
1248
|
-
'@stylistic/js/space-infix-ops': string;
|
|
1249
|
-
'@stylistic/ts/comma-dangle': string[];
|
|
1250
|
-
'@stylistic/ts/comma-spacing': string;
|
|
1251
|
-
'@stylistic/ts/indent': (string | number | {
|
|
1252
|
-
SwitchCase: number;
|
|
1253
|
-
})[];
|
|
1254
|
-
'@stylistic/ts/key-spacing': string;
|
|
1255
|
-
'@stylistic/ts/keyword-spacing': string;
|
|
1256
|
-
'@stylistic/ts/object-curly-spacing': string[];
|
|
1257
|
-
'@stylistic/ts/quote-props': string[];
|
|
1258
|
-
'@stylistic/ts/quotes': string[];
|
|
1259
|
-
'@stylistic/ts/semi': string[];
|
|
1260
|
-
'@stylistic/ts/space-before-blocks': string[];
|
|
1261
|
-
'@stylistic/ts/space-before-function-paren': string[];
|
|
1262
|
-
'@stylistic/ts/space-infix-ops': string;
|
|
1263
|
-
'arrow-body-style'?: undefined;
|
|
1264
|
-
eqeqeq?: undefined;
|
|
1265
|
-
'no-console'?: undefined;
|
|
1266
|
-
'no-nested-ternary'?: undefined;
|
|
1267
|
-
'no-unused-vars'?: undefined;
|
|
1268
|
-
'prefer-const'?: undefined;
|
|
1269
|
-
'prefer-template'?: undefined;
|
|
1270
|
-
'@stylistic/js/array-bracket-spacing'?: undefined;
|
|
1271
|
-
'@stylistic/js/arrow-parens'?: undefined;
|
|
1272
|
-
'@stylistic/js/eol-last'?: undefined;
|
|
1273
|
-
'@stylistic/js/multiline-ternary'?: undefined;
|
|
1274
|
-
'@stylistic/js/no-multi-spaces'?: undefined;
|
|
1275
|
-
'@stylistic/js/no-multiple-empty-lines'?: undefined;
|
|
1276
|
-
'@stylistic/js/no-trailing-spaces'?: undefined;
|
|
1277
|
-
'@stylistic/js/semi-spacing'?: undefined;
|
|
1278
|
-
'@stylistic/js/space-in-parens'?: undefined;
|
|
1279
|
-
'@stylistic/js/spaced-comment'?: undefined;
|
|
1280
|
-
'@stylistic/js/template-curly-spacing'?: undefined;
|
|
1281
|
-
'@typescript-eslint/no-unused-expressions'?: undefined;
|
|
1282
|
-
'@typescript-eslint/no-unused-vars'?: undefined;
|
|
1283
|
-
'sort-keys'?: undefined;
|
|
1284
|
-
};
|
|
1285
|
-
languageOptions?: undefined;
|
|
1286
1234
|
} | {
|
|
1287
1235
|
files: string[];
|
|
1288
1236
|
rules: {
|
|
@@ -1297,43 +1245,31 @@ declare const _default: ({
|
|
|
1297
1245
|
'no-unused-vars'?: undefined;
|
|
1298
1246
|
'prefer-const'?: undefined;
|
|
1299
1247
|
'prefer-template'?: undefined;
|
|
1300
|
-
'@stylistic/
|
|
1301
|
-
'@stylistic/
|
|
1302
|
-
'@stylistic/
|
|
1303
|
-
'@stylistic/
|
|
1304
|
-
'@stylistic/
|
|
1305
|
-
'@stylistic/
|
|
1306
|
-
'@stylistic/
|
|
1307
|
-
'@stylistic/
|
|
1308
|
-
'@stylistic/
|
|
1309
|
-
'@stylistic/
|
|
1310
|
-
'@stylistic/
|
|
1311
|
-
'@stylistic/
|
|
1312
|
-
'@stylistic/
|
|
1313
|
-
'@stylistic/
|
|
1314
|
-
'@stylistic/
|
|
1315
|
-
'@stylistic/
|
|
1316
|
-
'@stylistic/
|
|
1317
|
-
'@stylistic/
|
|
1318
|
-
'@stylistic/
|
|
1319
|
-
'@stylistic/
|
|
1320
|
-
'@stylistic/
|
|
1321
|
-
'@stylistic/
|
|
1322
|
-
'@stylistic/
|
|
1248
|
+
'@stylistic/array-bracket-spacing'?: undefined;
|
|
1249
|
+
'@stylistic/arrow-parens'?: undefined;
|
|
1250
|
+
'@stylistic/comma-dangle'?: undefined;
|
|
1251
|
+
'@stylistic/comma-spacing'?: undefined;
|
|
1252
|
+
'@stylistic/eol-last'?: undefined;
|
|
1253
|
+
'@stylistic/indent'?: undefined;
|
|
1254
|
+
'@stylistic/key-spacing'?: undefined;
|
|
1255
|
+
'@stylistic/keyword-spacing'?: undefined;
|
|
1256
|
+
'@stylistic/multiline-ternary'?: undefined;
|
|
1257
|
+
'@stylistic/no-multi-spaces'?: undefined;
|
|
1258
|
+
'@stylistic/no-multiple-empty-lines'?: undefined;
|
|
1259
|
+
'@stylistic/no-trailing-spaces'?: undefined;
|
|
1260
|
+
'@stylistic/object-curly-spacing'?: undefined;
|
|
1261
|
+
'@stylistic/quote-props'?: undefined;
|
|
1262
|
+
'@stylistic/quotes'?: undefined;
|
|
1263
|
+
'@stylistic/semi'?: undefined;
|
|
1264
|
+
'@stylistic/semi-spacing'?: undefined;
|
|
1265
|
+
'@stylistic/space-before-blocks'?: undefined;
|
|
1266
|
+
'@stylistic/space-before-function-paren'?: undefined;
|
|
1267
|
+
'@stylistic/space-in-parens'?: undefined;
|
|
1268
|
+
'@stylistic/space-infix-ops'?: undefined;
|
|
1269
|
+
'@stylistic/spaced-comment'?: undefined;
|
|
1270
|
+
'@stylistic/template-curly-spacing'?: undefined;
|
|
1323
1271
|
'@typescript-eslint/no-unused-expressions'?: undefined;
|
|
1324
1272
|
'@typescript-eslint/no-unused-vars'?: undefined;
|
|
1325
|
-
'@stylistic/ts/comma-dangle'?: undefined;
|
|
1326
|
-
'@stylistic/ts/comma-spacing'?: undefined;
|
|
1327
|
-
'@stylistic/ts/indent'?: undefined;
|
|
1328
|
-
'@stylistic/ts/key-spacing'?: undefined;
|
|
1329
|
-
'@stylistic/ts/keyword-spacing'?: undefined;
|
|
1330
|
-
'@stylistic/ts/object-curly-spacing'?: undefined;
|
|
1331
|
-
'@stylistic/ts/quote-props'?: undefined;
|
|
1332
|
-
'@stylistic/ts/quotes'?: undefined;
|
|
1333
|
-
'@stylistic/ts/semi'?: undefined;
|
|
1334
|
-
'@stylistic/ts/space-before-blocks'?: undefined;
|
|
1335
|
-
'@stylistic/ts/space-before-function-paren'?: undefined;
|
|
1336
|
-
'@stylistic/ts/space-infix-ops'?: undefined;
|
|
1337
1273
|
};
|
|
1338
1274
|
languageOptions?: undefined;
|
|
1339
1275
|
plugins?: undefined;
|