From 046b239d6edbf7aaceababc079fbee1048de16ba Mon Sep 17 00:00:00 2001 From: BacLuc Date: Fri, 2 Aug 2024 15:39:25 +0200 Subject: [PATCH] e2e: migrate to flat config Using npx @eslint/migrate-config .eslintrc.json Then add the additional packages needed (@eslint/compat, globals, @eslint/eslintrc, @eslint/js) Add paths from the .gitignore file to the ignored patterns. Remove the options from the call to eslint which are not supported anymore in the package.json. The resulting schema of the command node_modules/.bin/eslint --print-config specs/login.cy.js > eslint-config-js.json is different. But diffing only the rules seemed to look the same. Issue: #5282 --- e2e/.eslintrc.json | 16 - e2e/eslint-config-js.json | 1283 ++++++++++++++++++++++++++++++------- e2e/eslint.config.mjs | 39 ++ e2e/package-lock.json | 216 +++++-- e2e/package.json | 12 +- 5 files changed, 1263 insertions(+), 303 deletions(-) delete mode 100644 e2e/.eslintrc.json create mode 100644 e2e/eslint.config.mjs diff --git a/e2e/.eslintrc.json b/e2e/.eslintrc.json deleted file mode 100644 index 079e0c3f02..0000000000 --- a/e2e/.eslintrc.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "root": true, - "env": { - "node": true, - "mocha": true - }, - "extends": [ - "eslint:recommended", - "plugin:cypress/recommended", - "plugin:prettier/recommended" - ], - "rules": { - "prefer-const": "error", - "prettier/prettier": "error" - } -} diff --git a/e2e/eslint-config-js.json b/e2e/eslint-config-js.json index 5232415e09..5bef341e13 100644 --- a/e2e/eslint-config-js.json +++ b/e2e/eslint-config-js.json @@ -1,259 +1,1058 @@ { - "env": { - "node": true, - "mocha": true, - "cypress/globals": true + "languageOptions": { + "ecmaVersion": 2019, + "sourceType": "module", + "globals": { + "cy": false, + "Cypress": false, + "expect": false, + "assert": false, + "chai": false, + "AbortController": false, + "AbortSignal": false, + "addEventListener": false, + "alert": false, + "AnalyserNode": false, + "Animation": false, + "AnimationEffectReadOnly": false, + "AnimationEffectTiming": false, + "AnimationEffectTimingReadOnly": false, + "AnimationEvent": false, + "AnimationPlaybackEvent": false, + "AnimationTimeline": false, + "applicationCache": false, + "ApplicationCache": false, + "ApplicationCacheErrorEvent": false, + "atob": false, + "Attr": false, + "Audio": false, + "AudioBuffer": false, + "AudioBufferSourceNode": false, + "AudioContext": false, + "AudioDestinationNode": false, + "AudioListener": false, + "AudioNode": false, + "AudioParam": false, + "AudioProcessingEvent": false, + "AudioScheduledSourceNode": false, + "AudioWorkletGlobalScope": false, + "AudioWorkletNode": false, + "AudioWorkletProcessor": false, + "BarProp": false, + "BaseAudioContext": false, + "BatteryManager": false, + "BeforeUnloadEvent": false, + "BiquadFilterNode": false, + "Blob": false, + "BlobEvent": false, + "blur": false, + "BroadcastChannel": false, + "btoa": false, + "BudgetService": false, + "ByteLengthQueuingStrategy": false, + "Cache": false, + "caches": false, + "CacheStorage": false, + "cancelAnimationFrame": false, + "cancelIdleCallback": false, + "CanvasCaptureMediaStreamTrack": false, + "CanvasGradient": false, + "CanvasPattern": false, + "CanvasRenderingContext2D": false, + "ChannelMergerNode": false, + "ChannelSplitterNode": false, + "CharacterData": false, + "clearInterval": false, + "clearTimeout": false, + "clientInformation": false, + "ClipboardEvent": false, + "ClipboardItem": false, + "close": false, + "closed": false, + "CloseEvent": false, + "Comment": false, + "CompositionEvent": false, + "CompressionStream": false, + "confirm": false, + "console": false, + "ConstantSourceNode": false, + "ConvolverNode": false, + "CountQueuingStrategy": false, + "createImageBitmap": false, + "Credential": false, + "CredentialsContainer": false, + "crypto": false, + "Crypto": false, + "CryptoKey": false, + "CSS": false, + "CSSConditionRule": false, + "CSSFontFaceRule": false, + "CSSGroupingRule": false, + "CSSImportRule": false, + "CSSKeyframeRule": false, + "CSSKeyframesRule": false, + "CSSMatrixComponent": false, + "CSSMediaRule": false, + "CSSNamespaceRule": false, + "CSSPageRule": false, + "CSSPerspective": false, + "CSSRotate": false, + "CSSRule": false, + "CSSRuleList": false, + "CSSScale": false, + "CSSSkew": false, + "CSSSkewX": false, + "CSSSkewY": false, + "CSSStyleDeclaration": false, + "CSSStyleRule": false, + "CSSStyleSheet": false, + "CSSSupportsRule": false, + "CSSTransformValue": false, + "CSSTranslate": false, + "CustomElementRegistry": false, + "customElements": false, + "CustomEvent": false, + "DataTransfer": false, + "DataTransferItem": false, + "DataTransferItemList": false, + "DecompressionStream": false, + "defaultstatus": false, + "defaultStatus": false, + "DelayNode": false, + "DeviceMotionEvent": false, + "DeviceOrientationEvent": false, + "devicePixelRatio": false, + "dispatchEvent": false, + "document": false, + "Document": false, + "DocumentFragment": false, + "DocumentType": false, + "DOMError": false, + "DOMException": false, + "DOMImplementation": false, + "DOMMatrix": false, + "DOMMatrixReadOnly": false, + "DOMParser": false, + "DOMPoint": false, + "DOMPointReadOnly": false, + "DOMQuad": false, + "DOMRect": false, + "DOMRectList": false, + "DOMRectReadOnly": false, + "DOMStringList": false, + "DOMStringMap": false, + "DOMTokenList": false, + "DragEvent": false, + "DynamicsCompressorNode": false, + "Element": false, + "ErrorEvent": false, + "event": false, + "Event": false, + "EventSource": false, + "EventTarget": false, + "external": false, + "fetch": false, + "File": false, + "FileList": false, + "FileReader": false, + "find": false, + "focus": false, + "FocusEvent": false, + "FontFace": false, + "FontFaceSetLoadEvent": false, + "FormData": false, + "FormDataEvent": false, + "frameElement": false, + "frames": false, + "GainNode": false, + "Gamepad": false, + "GamepadButton": false, + "GamepadEvent": false, + "getComputedStyle": false, + "getSelection": false, + "HashChangeEvent": false, + "Headers": false, + "history": false, + "History": false, + "HTMLAllCollection": false, + "HTMLAnchorElement": false, + "HTMLAreaElement": false, + "HTMLAudioElement": false, + "HTMLBaseElement": false, + "HTMLBodyElement": false, + "HTMLBRElement": false, + "HTMLButtonElement": false, + "HTMLCanvasElement": false, + "HTMLCollection": false, + "HTMLContentElement": false, + "HTMLDataElement": false, + "HTMLDataListElement": false, + "HTMLDetailsElement": false, + "HTMLDialogElement": false, + "HTMLDirectoryElement": false, + "HTMLDivElement": false, + "HTMLDListElement": false, + "HTMLDocument": false, + "HTMLElement": false, + "HTMLEmbedElement": false, + "HTMLFieldSetElement": false, + "HTMLFontElement": false, + "HTMLFormControlsCollection": false, + "HTMLFormElement": false, + "HTMLFrameElement": false, + "HTMLFrameSetElement": false, + "HTMLHeadElement": false, + "HTMLHeadingElement": false, + "HTMLHRElement": false, + "HTMLHtmlElement": false, + "HTMLIFrameElement": false, + "HTMLImageElement": false, + "HTMLInputElement": false, + "HTMLLabelElement": false, + "HTMLLegendElement": false, + "HTMLLIElement": false, + "HTMLLinkElement": false, + "HTMLMapElement": false, + "HTMLMarqueeElement": false, + "HTMLMediaElement": false, + "HTMLMenuElement": false, + "HTMLMetaElement": false, + "HTMLMeterElement": false, + "HTMLModElement": false, + "HTMLObjectElement": false, + "HTMLOListElement": false, + "HTMLOptGroupElement": false, + "HTMLOptionElement": false, + "HTMLOptionsCollection": false, + "HTMLOutputElement": false, + "HTMLParagraphElement": false, + "HTMLParamElement": false, + "HTMLPictureElement": false, + "HTMLPreElement": false, + "HTMLProgressElement": false, + "HTMLQuoteElement": false, + "HTMLScriptElement": false, + "HTMLSelectElement": false, + "HTMLShadowElement": false, + "HTMLSlotElement": false, + "HTMLSourceElement": false, + "HTMLSpanElement": false, + "HTMLStyleElement": false, + "HTMLTableCaptionElement": false, + "HTMLTableCellElement": false, + "HTMLTableColElement": false, + "HTMLTableElement": false, + "HTMLTableRowElement": false, + "HTMLTableSectionElement": false, + "HTMLTemplateElement": false, + "HTMLTextAreaElement": false, + "HTMLTimeElement": false, + "HTMLTitleElement": false, + "HTMLTrackElement": false, + "HTMLUListElement": false, + "HTMLUnknownElement": false, + "HTMLVideoElement": false, + "IDBCursor": false, + "IDBCursorWithValue": false, + "IDBDatabase": false, + "IDBFactory": false, + "IDBIndex": false, + "IDBKeyRange": false, + "IDBObjectStore": false, + "IDBOpenDBRequest": false, + "IDBRequest": false, + "IDBTransaction": false, + "IDBVersionChangeEvent": false, + "IdleDeadline": false, + "IIRFilterNode": false, + "Image": false, + "ImageBitmap": false, + "ImageBitmapRenderingContext": false, + "ImageCapture": false, + "ImageData": false, + "indexedDB": false, + "innerHeight": false, + "innerWidth": false, + "InputEvent": false, + "IntersectionObserver": false, + "IntersectionObserverEntry": false, + "Intl": false, + "isSecureContext": false, + "KeyboardEvent": false, + "KeyframeEffect": false, + "KeyframeEffectReadOnly": false, + "length": false, + "localStorage": false, + "location": true, + "Location": false, + "locationbar": false, + "matchMedia": false, + "MediaDeviceInfo": false, + "MediaDevices": false, + "MediaElementAudioSourceNode": false, + "MediaEncryptedEvent": false, + "MediaError": false, + "MediaKeyMessageEvent": false, + "MediaKeySession": false, + "MediaKeyStatusMap": false, + "MediaKeySystemAccess": false, + "MediaList": false, + "MediaMetadata": false, + "MediaQueryList": false, + "MediaQueryListEvent": false, + "MediaRecorder": false, + "MediaSettingsRange": false, + "MediaSource": false, + "MediaStream": false, + "MediaStreamAudioDestinationNode": false, + "MediaStreamAudioSourceNode": false, + "MediaStreamConstraints": false, + "MediaStreamEvent": false, + "MediaStreamTrack": false, + "MediaStreamTrackEvent": false, + "menubar": false, + "MessageChannel": false, + "MessageEvent": false, + "MessagePort": false, + "MIDIAccess": false, + "MIDIConnectionEvent": false, + "MIDIInput": false, + "MIDIInputMap": false, + "MIDIMessageEvent": false, + "MIDIOutput": false, + "MIDIOutputMap": false, + "MIDIPort": false, + "MimeType": false, + "MimeTypeArray": false, + "MouseEvent": false, + "moveBy": false, + "moveTo": false, + "MutationEvent": false, + "MutationObserver": false, + "MutationRecord": false, + "name": false, + "NamedNodeMap": false, + "NavigationPreloadManager": false, + "navigator": false, + "Navigator": false, + "NavigatorUAData": false, + "NetworkInformation": false, + "Node": false, + "NodeFilter": false, + "NodeIterator": false, + "NodeList": false, + "Notification": false, + "OfflineAudioCompletionEvent": false, + "OfflineAudioContext": false, + "offscreenBuffering": false, + "OffscreenCanvas": true, + "OffscreenCanvasRenderingContext2D": false, + "onabort": true, + "onafterprint": true, + "onanimationend": true, + "onanimationiteration": true, + "onanimationstart": true, + "onappinstalled": true, + "onauxclick": true, + "onbeforeinstallprompt": true, + "onbeforeprint": true, + "onbeforeunload": true, + "onblur": true, + "oncancel": true, + "oncanplay": true, + "oncanplaythrough": true, + "onchange": true, + "onclick": true, + "onclose": true, + "oncontextmenu": true, + "oncuechange": true, + "ondblclick": true, + "ondevicemotion": true, + "ondeviceorientation": true, + "ondeviceorientationabsolute": true, + "ondrag": true, + "ondragend": true, + "ondragenter": true, + "ondragleave": true, + "ondragover": true, + "ondragstart": true, + "ondrop": true, + "ondurationchange": true, + "onemptied": true, + "onended": true, + "onerror": true, + "onfocus": true, + "ongotpointercapture": true, + "onhashchange": true, + "oninput": true, + "oninvalid": true, + "onkeydown": true, + "onkeypress": true, + "onkeyup": true, + "onlanguagechange": true, + "onload": true, + "onloadeddata": true, + "onloadedmetadata": true, + "onloadstart": true, + "onlostpointercapture": true, + "onmessage": true, + "onmessageerror": true, + "onmousedown": true, + "onmouseenter": true, + "onmouseleave": true, + "onmousemove": true, + "onmouseout": true, + "onmouseover": true, + "onmouseup": true, + "onmousewheel": true, + "onoffline": true, + "ononline": true, + "onpagehide": true, + "onpageshow": true, + "onpause": true, + "onplay": true, + "onplaying": true, + "onpointercancel": true, + "onpointerdown": true, + "onpointerenter": true, + "onpointerleave": true, + "onpointermove": true, + "onpointerout": true, + "onpointerover": true, + "onpointerup": true, + "onpopstate": true, + "onprogress": true, + "onratechange": true, + "onrejectionhandled": true, + "onreset": true, + "onresize": true, + "onscroll": true, + "onsearch": true, + "onseeked": true, + "onseeking": true, + "onselect": true, + "onstalled": true, + "onstorage": true, + "onsubmit": true, + "onsuspend": true, + "ontimeupdate": true, + "ontoggle": true, + "ontransitionend": true, + "onunhandledrejection": true, + "onunload": true, + "onvolumechange": true, + "onwaiting": true, + "onwheel": true, + "open": false, + "openDatabase": false, + "opener": false, + "Option": false, + "origin": false, + "OscillatorNode": false, + "outerHeight": false, + "outerWidth": false, + "OverconstrainedError": false, + "PageTransitionEvent": false, + "pageXOffset": false, + "pageYOffset": false, + "PannerNode": false, + "parent": false, + "Path2D": false, + "PaymentAddress": false, + "PaymentRequest": false, + "PaymentRequestUpdateEvent": false, + "PaymentResponse": false, + "performance": false, + "Performance": false, + "PerformanceEntry": false, + "PerformanceLongTaskTiming": false, + "PerformanceMark": false, + "PerformanceMeasure": false, + "PerformanceNavigation": false, + "PerformanceNavigationTiming": false, + "PerformanceObserver": false, + "PerformanceObserverEntryList": false, + "PerformancePaintTiming": false, + "PerformanceResourceTiming": false, + "PerformanceTiming": false, + "PeriodicWave": false, + "Permissions": false, + "PermissionStatus": false, + "personalbar": false, + "PhotoCapabilities": false, + "Plugin": false, + "PluginArray": false, + "PointerEvent": false, + "PopStateEvent": false, + "postMessage": false, + "Presentation": false, + "PresentationAvailability": false, + "PresentationConnection": false, + "PresentationConnectionAvailableEvent": false, + "PresentationConnectionCloseEvent": false, + "PresentationConnectionList": false, + "PresentationReceiver": false, + "PresentationRequest": false, + "print": false, + "ProcessingInstruction": false, + "ProgressEvent": false, + "PromiseRejectionEvent": false, + "prompt": false, + "PushManager": false, + "PushSubscription": false, + "PushSubscriptionOptions": false, + "queueMicrotask": false, + "RadioNodeList": false, + "Range": false, + "ReadableByteStreamController": false, + "ReadableStream": false, + "ReadableStreamBYOBReader": false, + "ReadableStreamBYOBRequest": false, + "ReadableStreamDefaultController": false, + "ReadableStreamDefaultReader": false, + "registerProcessor": false, + "RemotePlayback": false, + "removeEventListener": false, + "reportError": false, + "Request": false, + "requestAnimationFrame": false, + "requestIdleCallback": false, + "resizeBy": false, + "ResizeObserver": false, + "ResizeObserverEntry": false, + "resizeTo": false, + "Response": false, + "RTCCertificate": false, + "RTCDataChannel": false, + "RTCDataChannelEvent": false, + "RTCDtlsTransport": false, + "RTCIceCandidate": false, + "RTCIceGatherer": false, + "RTCIceTransport": false, + "RTCPeerConnection": false, + "RTCPeerConnectionIceEvent": false, + "RTCRtpContributingSource": false, + "RTCRtpReceiver": false, + "RTCRtpSender": false, + "RTCSctpTransport": false, + "RTCSessionDescription": false, + "RTCStatsReport": false, + "RTCTrackEvent": false, + "screen": false, + "Screen": false, + "screenLeft": false, + "ScreenOrientation": false, + "screenTop": false, + "screenX": false, + "screenY": false, + "ScriptProcessorNode": false, + "scroll": false, + "scrollbars": false, + "scrollBy": false, + "scrollTo": false, + "scrollX": false, + "scrollY": false, + "SecurityPolicyViolationEvent": false, + "Selection": false, + "self": false, + "ServiceWorker": false, + "ServiceWorkerContainer": false, + "ServiceWorkerRegistration": false, + "sessionStorage": false, + "setInterval": false, + "setTimeout": false, + "ShadowRoot": false, + "SharedWorker": false, + "SourceBuffer": false, + "SourceBufferList": false, + "speechSynthesis": false, + "SpeechSynthesisEvent": false, + "SpeechSynthesisUtterance": false, + "StaticRange": false, + "status": false, + "statusbar": false, + "StereoPannerNode": false, + "stop": false, + "Storage": false, + "StorageEvent": false, + "StorageManager": false, + "structuredClone": false, + "styleMedia": false, + "StyleSheet": false, + "StyleSheetList": false, + "SubmitEvent": false, + "SubtleCrypto": false, + "SVGAElement": false, + "SVGAngle": false, + "SVGAnimatedAngle": false, + "SVGAnimatedBoolean": false, + "SVGAnimatedEnumeration": false, + "SVGAnimatedInteger": false, + "SVGAnimatedLength": false, + "SVGAnimatedLengthList": false, + "SVGAnimatedNumber": false, + "SVGAnimatedNumberList": false, + "SVGAnimatedPreserveAspectRatio": false, + "SVGAnimatedRect": false, + "SVGAnimatedString": false, + "SVGAnimatedTransformList": false, + "SVGAnimateElement": false, + "SVGAnimateMotionElement": false, + "SVGAnimateTransformElement": false, + "SVGAnimationElement": false, + "SVGCircleElement": false, + "SVGClipPathElement": false, + "SVGComponentTransferFunctionElement": false, + "SVGDefsElement": false, + "SVGDescElement": false, + "SVGDiscardElement": false, + "SVGElement": false, + "SVGEllipseElement": false, + "SVGFEBlendElement": false, + "SVGFEColorMatrixElement": false, + "SVGFEComponentTransferElement": false, + "SVGFECompositeElement": false, + "SVGFEConvolveMatrixElement": false, + "SVGFEDiffuseLightingElement": false, + "SVGFEDisplacementMapElement": false, + "SVGFEDistantLightElement": false, + "SVGFEDropShadowElement": false, + "SVGFEFloodElement": false, + "SVGFEFuncAElement": false, + "SVGFEFuncBElement": false, + "SVGFEFuncGElement": false, + "SVGFEFuncRElement": false, + "SVGFEGaussianBlurElement": false, + "SVGFEImageElement": false, + "SVGFEMergeElement": false, + "SVGFEMergeNodeElement": false, + "SVGFEMorphologyElement": false, + "SVGFEOffsetElement": false, + "SVGFEPointLightElement": false, + "SVGFESpecularLightingElement": false, + "SVGFESpotLightElement": false, + "SVGFETileElement": false, + "SVGFETurbulenceElement": false, + "SVGFilterElement": false, + "SVGForeignObjectElement": false, + "SVGGElement": false, + "SVGGeometryElement": false, + "SVGGradientElement": false, + "SVGGraphicsElement": false, + "SVGImageElement": false, + "SVGLength": false, + "SVGLengthList": false, + "SVGLinearGradientElement": false, + "SVGLineElement": false, + "SVGMarkerElement": false, + "SVGMaskElement": false, + "SVGMatrix": false, + "SVGMetadataElement": false, + "SVGMPathElement": false, + "SVGNumber": false, + "SVGNumberList": false, + "SVGPathElement": false, + "SVGPatternElement": false, + "SVGPoint": false, + "SVGPointList": false, + "SVGPolygonElement": false, + "SVGPolylineElement": false, + "SVGPreserveAspectRatio": false, + "SVGRadialGradientElement": false, + "SVGRect": false, + "SVGRectElement": false, + "SVGScriptElement": false, + "SVGSetElement": false, + "SVGStopElement": false, + "SVGStringList": false, + "SVGStyleElement": false, + "SVGSVGElement": false, + "SVGSwitchElement": false, + "SVGSymbolElement": false, + "SVGTextContentElement": false, + "SVGTextElement": false, + "SVGTextPathElement": false, + "SVGTextPositioningElement": false, + "SVGTitleElement": false, + "SVGTransform": false, + "SVGTransformList": false, + "SVGTSpanElement": false, + "SVGUnitTypes": false, + "SVGUseElement": false, + "SVGViewElement": false, + "TaskAttributionTiming": false, + "Text": false, + "TextDecoder": false, + "TextDecoderStream": false, + "TextEncoder": false, + "TextEncoderStream": false, + "TextEvent": false, + "TextMetrics": false, + "TextTrack": false, + "TextTrackCue": false, + "TextTrackCueList": false, + "TextTrackList": false, + "TimeRanges": false, + "ToggleEvent": false, + "toolbar": false, + "top": false, + "Touch": false, + "TouchEvent": false, + "TouchList": false, + "TrackEvent": false, + "TransformStream": false, + "TransformStreamDefaultController": false, + "TransitionEvent": false, + "TreeWalker": false, + "UIEvent": false, + "URL": false, + "URLSearchParams": false, + "ValidityState": false, + "visualViewport": false, + "VisualViewport": false, + "VTTCue": false, + "WaveShaperNode": false, + "WebAssembly": false, + "WebGL2RenderingContext": false, + "WebGLActiveInfo": false, + "WebGLBuffer": false, + "WebGLContextEvent": false, + "WebGLFramebuffer": false, + "WebGLProgram": false, + "WebGLQuery": false, + "WebGLRenderbuffer": false, + "WebGLRenderingContext": false, + "WebGLSampler": false, + "WebGLShader": false, + "WebGLShaderPrecisionFormat": false, + "WebGLSync": false, + "WebGLTexture": false, + "WebGLTransformFeedback": false, + "WebGLUniformLocation": false, + "WebGLVertexArrayObject": false, + "WebSocket": false, + "WheelEvent": false, + "window": false, + "Window": false, + "Worker": false, + "WritableStream": false, + "WritableStreamDefaultController": false, + "WritableStreamDefaultWriter": false, + "XMLDocument": false, + "XMLHttpRequest": false, + "XMLHttpRequestEventTarget": false, + "XMLHttpRequestUpload": false, + "XMLSerializer": false, + "XPathEvaluator": false, + "XPathExpression": false, + "XPathResult": false, + "XRAnchor": false, + "XRBoundedReferenceSpace": false, + "XRCPUDepthInformation": false, + "XRDepthInformation": false, + "XRFrame": false, + "XRInputSource": false, + "XRInputSourceArray": false, + "XRInputSourceEvent": false, + "XRInputSourcesChangeEvent": false, + "XRPose": false, + "XRReferenceSpace": false, + "XRReferenceSpaceEvent": false, + "XRRenderState": false, + "XRRigidTransform": false, + "XRSession": false, + "XRSessionEvent": false, + "XRSpace": false, + "XRSystem": false, + "XRView": false, + "XRViewerPose": false, + "XRViewport": false, + "XRWebGLBinding": false, + "XRWebGLDepthInformation": false, + "XRWebGLLayer": false, + "XSLTProcessor": false, + "after": false, + "afterEach": false, + "before": false, + "beforeEach": false, + "context": false, + "describe": false, + "it": false, + "mocha": false, + "run": false, + "setup": false, + "specify": false, + "suite": false, + "suiteSetup": false, + "suiteTeardown": false, + "teardown": false, + "test": false, + "xcontext": false, + "xdescribe": false, + "xit": false, + "xspecify": false, + "__dirname": false, + "__filename": false, + "Buffer": false, + "clearImmediate": false, + "exports": true, + "global": false, + "Iterator": false, + "module": false, + "process": false, + "require": false, + "setImmediate": false + }, + "parser": "espree@9.6.1", + "parserOptions": {} }, - "globals": {}, - "parser": null, - "parserOptions": {}, - "plugins": ["cypress", "prettier"], + "plugins": ["@", "cypress", "prettier:eslint-plugin-prettier@5.2.1"], "rules": { - "prefer-const": ["error"], - "prettier/prettier": ["error"], - "arrow-body-style": ["off"], - "prefer-arrow-callback": ["off"], - "curly": [0], + "constructor-super": [2], + "for-direction": [2], + "getter-return": [2], + "no-async-promise-executor": [2], + "no-case-declarations": [2], + "no-class-assign": [2], + "no-compare-neg-zero": [2], + "no-cond-assign": [2], + "no-const-assign": [2], + "no-constant-binary-expression": [2], + "no-constant-condition": [2], + "no-control-regex": [2], + "no-debugger": [2], + "no-delete-var": [2], + "no-dupe-args": [2], + "no-dupe-class-members": [2], + "no-dupe-else-if": [2], + "no-dupe-keys": [2], + "no-duplicate-case": [2], + "no-empty": [2], + "no-empty-character-class": [2], + "no-empty-pattern": [2], + "no-empty-static-block": [2], + "no-ex-assign": [2], + "no-extra-boolean-cast": [2], + "no-fallthrough": [2], + "no-func-assign": [2], + "no-global-assign": [2], + "no-import-assign": [2], + "no-invalid-regexp": [2], + "no-irregular-whitespace": [2], + "no-loss-of-precision": [2], + "no-misleading-character-class": [2], + "no-new-native-nonconstructor": [2], + "no-nonoctal-decimal-escape": [2], + "no-obj-calls": [2], + "no-octal": [2], + "no-prototype-builtins": [2], + "no-redeclare": [2], + "no-regex-spaces": [2], + "no-self-assign": [2], + "no-setter-return": [2], + "no-shadow-restricted-names": [2], + "no-sparse-arrays": [2], + "no-this-before-super": [2], + "no-undef": [2], "no-unexpected-multiline": [0], + "no-unreachable": [2], + "no-unsafe-finally": [2], + "no-unsafe-negation": [2], + "no-unsafe-optional-chaining": [2], + "no-unused-labels": [2], + "no-unused-private-class-members": [2], + "no-unused-vars": [2], + "no-useless-backreference": [2], + "no-useless-catch": [2], + "no-useless-escape": [2], + "no-with": [2], + "require-yield": [2], + "use-isnan": [2], + "valid-typeof": [2], + "cypress/no-assigning-return-values": [2], + "cypress/no-unnecessary-waiting": [2], + "cypress/no-async-tests": [2], + "cypress/unsafe-to-chain-command": [2], + "curly": [0], "@typescript-eslint/lines-around-comment": [0], "@typescript-eslint/quotes": [0], "babel/quotes": [0], "unicorn/template-indent": [0], "vue/html-self-closing": [0], "vue/max-len": [0], - "@babel/object-curly-spacing": ["off"], - "@babel/semi": ["off"], - "@typescript-eslint/block-spacing": ["off"], - "@typescript-eslint/brace-style": ["off"], - "@typescript-eslint/comma-dangle": ["off"], - "@typescript-eslint/comma-spacing": ["off"], - "@typescript-eslint/func-call-spacing": ["off"], - "@typescript-eslint/indent": ["off"], - "@typescript-eslint/key-spacing": ["off"], - "@typescript-eslint/keyword-spacing": ["off"], - "@typescript-eslint/member-delimiter-style": ["off"], - "@typescript-eslint/no-extra-parens": ["off"], - "@typescript-eslint/no-extra-semi": ["off"], - "@typescript-eslint/object-curly-spacing": ["off"], - "@typescript-eslint/semi": ["off"], - "@typescript-eslint/space-before-blocks": ["off"], - "@typescript-eslint/space-before-function-paren": ["off"], - "@typescript-eslint/space-infix-ops": ["off"], - "@typescript-eslint/type-annotation-spacing": ["off"], - "babel/object-curly-spacing": ["off"], - "babel/semi": ["off"], - "flowtype/boolean-style": ["off"], - "flowtype/delimiter-dangle": ["off"], - "flowtype/generic-spacing": ["off"], - "flowtype/object-type-curly-spacing": ["off"], - "flowtype/object-type-delimiter": ["off"], - "flowtype/quotes": ["off"], - "flowtype/semi": ["off"], - "flowtype/space-after-type-colon": ["off"], - "flowtype/space-before-generic-bracket": ["off"], - "flowtype/space-before-type-colon": ["off"], - "flowtype/union-intersection-spacing": ["off"], - "react/jsx-child-element-spacing": ["off"], - "react/jsx-closing-bracket-location": ["off"], - "react/jsx-closing-tag-location": ["off"], - "react/jsx-curly-newline": ["off"], - "react/jsx-curly-spacing": ["off"], - "react/jsx-equals-spacing": ["off"], - "react/jsx-first-prop-new-line": ["off"], - "react/jsx-indent": ["off"], - "react/jsx-indent-props": ["off"], - "react/jsx-max-props-per-line": ["off"], - "react/jsx-newline": ["off"], - "react/jsx-one-expression-per-line": ["off"], - "react/jsx-props-no-multi-spaces": ["off"], - "react/jsx-tag-spacing": ["off"], - "react/jsx-wrap-multilines": ["off"], - "standard/array-bracket-even-spacing": ["off"], - "standard/computed-property-even-spacing": ["off"], - "standard/object-curly-even-spacing": ["off"], - "unicorn/empty-brace-spaces": ["off"], - "unicorn/no-nested-ternary": ["off"], - "unicorn/number-literal-case": ["off"], - "vue/array-bracket-newline": ["off"], - "vue/array-bracket-spacing": ["off"], - "vue/array-element-newline": ["off"], - "vue/arrow-spacing": ["off"], - "vue/block-spacing": ["off"], - "vue/block-tag-newline": ["off"], - "vue/brace-style": ["off"], - "vue/comma-dangle": ["off"], - "vue/comma-spacing": ["off"], - "vue/comma-style": ["off"], - "vue/dot-location": ["off"], - "vue/func-call-spacing": ["off"], - "vue/html-closing-bracket-newline": ["off"], - "vue/html-closing-bracket-spacing": ["off"], - "vue/html-end-tags": ["off"], - "vue/html-indent": ["off"], - "vue/html-quotes": ["off"], - "vue/key-spacing": ["off"], - "vue/keyword-spacing": ["off"], - "vue/max-attributes-per-line": ["off"], - "vue/multiline-html-element-content-newline": ["off"], - "vue/multiline-ternary": ["off"], - "vue/mustache-interpolation-spacing": ["off"], - "vue/no-extra-parens": ["off"], - "vue/no-multi-spaces": ["off"], - "vue/no-spaces-around-equal-signs-in-attribute": ["off"], - "vue/object-curly-newline": ["off"], - "vue/object-curly-spacing": ["off"], - "vue/object-property-newline": ["off"], - "vue/operator-linebreak": ["off"], - "vue/quote-props": ["off"], - "vue/script-indent": ["off"], - "vue/singleline-html-element-content-newline": ["off"], - "vue/space-in-parens": ["off"], - "vue/space-infix-ops": ["off"], - "vue/space-unary-ops": ["off"], - "vue/template-curly-spacing": ["off"], - "space-unary-word-ops": ["off"], - "generator-star": ["off"], - "no-comma-dangle": ["off"], - "no-reserved-keys": ["off"], - "no-space-before-semi": ["off"], - "no-wrap-func": ["off"], - "space-after-function-name": ["off"], - "space-before-function-parentheses": ["off"], - "space-in-brackets": ["off"], - "no-arrow-condition": ["off"], - "space-after-keywords": ["off"], - "space-before-keywords": ["off"], - "space-return-throw-case": ["off"], - "no-spaced-func": ["off"], - "indent-legacy": ["off"], - "array-bracket-newline": ["off"], - "array-bracket-spacing": ["off"], - "array-element-newline": ["off"], - "arrow-parens": ["off"], - "arrow-spacing": ["off"], - "block-spacing": ["off"], - "brace-style": ["off"], - "comma-dangle": ["off"], - "comma-spacing": ["off"], - "comma-style": ["off"], - "computed-property-spacing": ["off"], - "dot-location": ["off"], - "eol-last": ["off"], - "func-call-spacing": ["off"], - "function-call-argument-newline": ["off"], - "function-paren-newline": ["off"], - "generator-star-spacing": ["off"], - "implicit-arrow-linebreak": ["off"], - "indent": ["off"], - "jsx-quotes": ["off"], - "key-spacing": ["off"], - "keyword-spacing": ["off"], - "linebreak-style": ["off"], + "@babel/object-curly-spacing": [0], + "@babel/semi": [0], + "@typescript-eslint/block-spacing": [0], + "@typescript-eslint/brace-style": [0], + "@typescript-eslint/comma-dangle": [0], + "@typescript-eslint/comma-spacing": [0], + "@typescript-eslint/func-call-spacing": [0], + "@typescript-eslint/indent": [0], + "@typescript-eslint/key-spacing": [0], + "@typescript-eslint/keyword-spacing": [0], + "@typescript-eslint/member-delimiter-style": [0], + "@typescript-eslint/no-extra-parens": [0], + "@typescript-eslint/no-extra-semi": [0], + "@typescript-eslint/object-curly-spacing": [0], + "@typescript-eslint/semi": [0], + "@typescript-eslint/space-before-blocks": [0], + "@typescript-eslint/space-before-function-paren": [0], + "@typescript-eslint/space-infix-ops": [0], + "@typescript-eslint/type-annotation-spacing": [0], + "babel/object-curly-spacing": [0], + "babel/semi": [0], + "flowtype/boolean-style": [0], + "flowtype/delimiter-dangle": [0], + "flowtype/generic-spacing": [0], + "flowtype/object-type-curly-spacing": [0], + "flowtype/object-type-delimiter": [0], + "flowtype/quotes": [0], + "flowtype/semi": [0], + "flowtype/space-after-type-colon": [0], + "flowtype/space-before-generic-bracket": [0], + "flowtype/space-before-type-colon": [0], + "flowtype/union-intersection-spacing": [0], + "react/jsx-child-element-spacing": [0], + "react/jsx-closing-bracket-location": [0], + "react/jsx-closing-tag-location": [0], + "react/jsx-curly-newline": [0], + "react/jsx-curly-spacing": [0], + "react/jsx-equals-spacing": [0], + "react/jsx-first-prop-new-line": [0], + "react/jsx-indent": [0], + "react/jsx-indent-props": [0], + "react/jsx-max-props-per-line": [0], + "react/jsx-newline": [0], + "react/jsx-one-expression-per-line": [0], + "react/jsx-props-no-multi-spaces": [0], + "react/jsx-tag-spacing": [0], + "react/jsx-wrap-multilines": [0], + "standard/array-bracket-even-spacing": [0], + "standard/computed-property-even-spacing": [0], + "standard/object-curly-even-spacing": [0], + "unicorn/empty-brace-spaces": [0], + "unicorn/no-nested-ternary": [0], + "unicorn/number-literal-case": [0], + "vue/array-bracket-newline": [0], + "vue/array-bracket-spacing": [0], + "vue/array-element-newline": [0], + "vue/arrow-spacing": [0], + "vue/block-spacing": [0], + "vue/block-tag-newline": [0], + "vue/brace-style": [0], + "vue/comma-dangle": [0], + "vue/comma-spacing": [0], + "vue/comma-style": [0], + "vue/dot-location": [0], + "vue/func-call-spacing": [0], + "vue/html-closing-bracket-newline": [0], + "vue/html-closing-bracket-spacing": [0], + "vue/html-end-tags": [0], + "vue/html-indent": [0], + "vue/html-quotes": [0], + "vue/key-spacing": [0], + "vue/keyword-spacing": [0], + "vue/max-attributes-per-line": [0], + "vue/multiline-html-element-content-newline": [0], + "vue/multiline-ternary": [0], + "vue/mustache-interpolation-spacing": [0], + "vue/no-extra-parens": [0], + "vue/no-multi-spaces": [0], + "vue/no-spaces-around-equal-signs-in-attribute": [0], + "vue/object-curly-newline": [0], + "vue/object-curly-spacing": [0], + "vue/object-property-newline": [0], + "vue/operator-linebreak": [0], + "vue/quote-props": [0], + "vue/script-indent": [0], + "vue/singleline-html-element-content-newline": [0], + "vue/space-in-parens": [0], + "vue/space-infix-ops": [0], + "vue/space-unary-ops": [0], + "vue/template-curly-spacing": [0], + "space-unary-word-ops": [0], + "generator-star": [0], + "no-comma-dangle": [0], + "no-reserved-keys": [0], + "no-space-before-semi": [0], + "no-wrap-func": [0], + "space-after-function-name": [0], + "space-before-function-parentheses": [0], + "space-in-brackets": [0], + "no-arrow-condition": [0], + "space-after-keywords": [0], + "space-before-keywords": [0], + "space-return-throw-case": [0], + "no-spaced-func": [0], + "indent-legacy": [0], + "array-bracket-newline": [0], + "array-bracket-spacing": [0], + "array-element-newline": [0], + "arrow-parens": [0], + "arrow-spacing": [0], + "block-spacing": [0], + "brace-style": [0], + "comma-dangle": [0], + "comma-spacing": [0], + "comma-style": [0], + "computed-property-spacing": [0], + "dot-location": [0], + "eol-last": [0], + "func-call-spacing": [0], + "function-call-argument-newline": [0], + "function-paren-newline": [0], + "generator-star-spacing": [0], + "implicit-arrow-linebreak": [0], + "indent": [0], + "jsx-quotes": [0], + "key-spacing": [0], + "keyword-spacing": [0], + "linebreak-style": [0], "lines-around-comment": [0], "max-len": [0], - "max-statements-per-line": ["off"], - "multiline-ternary": ["off"], - "new-parens": ["off"], - "newline-per-chained-call": ["off"], + "max-statements-per-line": [0], + "multiline-ternary": [0], + "new-parens": [0], + "newline-per-chained-call": [0], "no-confusing-arrow": [0], - "no-extra-parens": ["off"], - "no-extra-semi": ["off"], - "no-floating-decimal": ["off"], + "no-extra-parens": [0], + "no-extra-semi": [0], + "no-floating-decimal": [0], "no-mixed-operators": [0], - "no-mixed-spaces-and-tabs": ["off"], - "no-multi-spaces": ["off"], - "no-multiple-empty-lines": ["off"], + "no-mixed-spaces-and-tabs": [0], + "no-multi-spaces": [0], + "no-multiple-empty-lines": [0], "no-tabs": [0], - "no-trailing-spaces": ["off"], - "no-whitespace-before-property": ["off"], - "nonblock-statement-body-position": ["off"], - "object-curly-newline": ["off"], - "object-curly-spacing": ["off"], - "object-property-newline": ["off"], - "one-var-declaration-per-line": ["off"], - "operator-linebreak": ["off"], - "padded-blocks": ["off"], - "quote-props": ["off"], + "no-trailing-spaces": [0], + "no-whitespace-before-property": [0], + "nonblock-statement-body-position": [0], + "object-curly-newline": [0], + "object-curly-spacing": [0], + "object-property-newline": [0], + "one-var-declaration-per-line": [0], + "operator-linebreak": [0], + "padded-blocks": [0], + "quote-props": [0], "quotes": [0], - "rest-spread-spacing": ["off"], - "semi": ["off"], - "semi-spacing": ["off"], - "semi-style": ["off"], - "space-before-blocks": ["off"], - "space-before-function-paren": ["off"], - "space-in-parens": ["off"], - "space-infix-ops": ["off"], - "space-unary-ops": ["off"], - "switch-colon-spacing": ["off"], - "template-curly-spacing": ["off"], - "template-tag-spacing": ["off"], - "wrap-iife": ["off"], - "wrap-regex": ["off"], - "yield-star-spacing": ["off"], - "react/jsx-space-before-closing": ["off"], - "cypress/no-assigning-return-values": ["error"], - "cypress/no-unnecessary-waiting": ["error"], - "cypress/no-async-tests": ["error"], - "cypress/unsafe-to-chain-command": ["error"], - "constructor-super": ["error"], - "for-direction": ["error"], - "getter-return": ["error"], - "no-async-promise-executor": ["error"], - "no-case-declarations": ["error"], - "no-class-assign": ["error"], - "no-compare-neg-zero": ["error"], - "no-cond-assign": ["error"], - "no-const-assign": ["error"], - "no-constant-condition": ["error"], - "no-control-regex": ["error"], - "no-debugger": ["error"], - "no-delete-var": ["error"], - "no-dupe-args": ["error"], - "no-dupe-class-members": ["error"], - "no-dupe-else-if": ["error"], - "no-dupe-keys": ["error"], - "no-duplicate-case": ["error"], - "no-empty": ["error"], - "no-empty-character-class": ["error"], - "no-empty-pattern": ["error"], - "no-ex-assign": ["error"], - "no-extra-boolean-cast": ["error"], - "no-fallthrough": ["error"], - "no-func-assign": ["error"], - "no-global-assign": ["error"], - "no-import-assign": ["error"], - "no-inner-declarations": ["error"], - "no-invalid-regexp": ["error"], - "no-irregular-whitespace": ["error"], - "no-loss-of-precision": ["error"], - "no-misleading-character-class": ["error"], - "no-new-symbol": ["error"], - "no-nonoctal-decimal-escape": ["error"], - "no-obj-calls": ["error"], - "no-octal": ["error"], - "no-prototype-builtins": ["error"], - "no-redeclare": ["error"], - "no-regex-spaces": ["error"], - "no-self-assign": ["error"], - "no-setter-return": ["error"], - "no-shadow-restricted-names": ["error"], - "no-sparse-arrays": ["error"], - "no-this-before-super": ["error"], - "no-undef": ["error"], - "no-unreachable": ["error"], - "no-unsafe-finally": ["error"], - "no-unsafe-negation": ["error"], - "no-unsafe-optional-chaining": ["error"], - "no-unused-labels": ["error"], - "no-unused-vars": ["error"], - "no-useless-backreference": ["error"], - "no-useless-catch": ["error"], - "no-useless-escape": ["error"], - "no-with": ["error"], - "require-yield": ["error"], - "use-isnan": ["error"], - "valid-typeof": ["error"] - }, - "settings": {}, - "ignorePatterns": [] + "rest-spread-spacing": [0], + "semi": [0], + "semi-spacing": [0], + "semi-style": [0], + "space-before-blocks": [0], + "space-before-function-paren": [0], + "space-in-parens": [0], + "space-infix-ops": [0], + "space-unary-ops": [0], + "switch-colon-spacing": [0], + "template-curly-spacing": [0], + "template-tag-spacing": [0], + "wrap-iife": [0], + "wrap-regex": [0], + "yield-star-spacing": [0], + "react/jsx-space-before-closing": [0], + "prettier/prettier": [2], + "arrow-body-style": [0], + "prefer-arrow-callback": [0], + "prefer-const": [2] + } } diff --git a/e2e/eslint.config.mjs b/e2e/eslint.config.mjs new file mode 100644 index 0000000000..0beb4576a1 --- /dev/null +++ b/e2e/eslint.config.mjs @@ -0,0 +1,39 @@ +import { includeIgnoreFile } from '@eslint/compat' +import globals from 'globals' +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import js from '@eslint/js' +import { FlatCompat } from '@eslint/eslintrc' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all, +}) +const gitignorePath = path.resolve(__dirname, '.gitignore') + +export default [ + ...compat.extends( + 'eslint:recommended', + 'plugin:cypress/recommended', + 'plugin:prettier/recommended' + ), + + includeIgnoreFile(gitignorePath), + + { + languageOptions: { + globals: { + ...globals.node, + ...globals.mocha, + }, + }, + + rules: { + 'prefer-const': 'error', + 'prettier/prettier': 'error', + }, + }, +] diff --git a/e2e/package-lock.json b/e2e/package-lock.json index 1acf1335a6..a3135f13a6 100644 --- a/e2e/package-lock.json +++ b/e2e/package-lock.json @@ -6,11 +6,15 @@ "": { "name": "@ecamp3/e2e", "devDependencies": { + "@eslint/compat": "1.1.1", + "@eslint/eslintrc": "3.1.0", + "@eslint/js": "9.8.0", "cypress": "13.13.2", "eslint": "8.57.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-cypress": "3.4.0", "eslint-plugin-prettier": "5.2.1", + "globals": "15.9.0", "prettier": "3.3.3" } }, @@ -102,17 +106,27 @@ "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/compat": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.1.1.tgz", + "integrity": "sha512-lpHyRyplhGPL5mGEh6M9O5nnKk0Gz4bFI+Zu6tKlPpDUN7XshWvH9C/px4UVm87IAANE0W81CEsNGbS1KlzXpA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", + "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", "dev": true, "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", + "espree": "^10.0.1", + "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -120,20 +134,33 @@ "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "9.8.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.8.0.tgz", + "integrity": "sha512-MfluB7EUfxXtv3i/++oh89uzAr4PDI4nn201hsp+qaXqsjAWzinlZEHEfPgAX4doIlKvPG/i0A9dpKxOLII8yA==", "dev": true, "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@humanwhocodes/config-array": { @@ -226,14 +253,14 @@ } }, "node_modules/@types/node": { - "version": "22.0.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.0.0.tgz", - "integrity": "sha512-VT7KSYudcPOzP5Q0wfbowyNLaVR8QWUdw+088uFWwfvpY6uCWaXpqV6ieLAu9WBcnTa7H4Z5RLK8I5t2FuOcqw==", + "version": "22.1.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.1.0.tgz", + "integrity": "sha512-AOmuRF0R2/5j1knA3c6G3HOk523Ga+l+ZXltX8SF1+5oqcXijjfTd8fY3XRZqSihEu9XhtQnKYLmkFaoxgsJHw==", "dev": true, "license": "MIT", "optional": true, "dependencies": { - "undici-types": "~6.11.1" + "undici-types": "~6.13.0" } }, "node_modules/@types/sinonjs__fake-timers": { @@ -348,19 +375,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -1136,6 +1150,35 @@ "eslint": ">=7" } }, + "node_modules/eslint-plugin-cypress/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint-plugin-cypress/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint-plugin-prettier": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", @@ -1197,7 +1240,41 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/espree": { + "node_modules/eslint/node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", @@ -1215,6 +1292,66 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz", + "integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.12.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/esquery": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", @@ -1635,16 +1772,13 @@ } }, "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", + "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", "dev": true, "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -3087,9 +3221,9 @@ } }, "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, "license": "(MIT OR CC0-1.0)", "engines": { @@ -3100,9 +3234,9 @@ } }, "node_modules/undici-types": { - "version": "6.11.1", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.11.1.tgz", - "integrity": "sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", + "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==", "dev": true, "license": "MIT", "optional": true diff --git a/e2e/package.json b/e2e/package.json index 02e6d278a4..e2612b87f8 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -5,18 +5,22 @@ "cypress:open": "cypress open", "cypress:run": "cypress run", "lint": "npm run lint:eslint && npm run lint:prettier", - "lint:eslint": "eslint --fix --ext .js --ignore-path .gitignore .", - "lint:prettier": "prettier --write --ignore-path .gitignore **/*.{js,json,md}", + "lint:eslint": "eslint --fix", + "lint:prettier": "prettier --write --ignore-path .gitignore **/*.{js,mjs,json,md}", "lint:check": "npm run lint:check:eslint && npm run lint:check:prettier", - "lint:check:eslint": "eslint --ext .js --ignore-path .gitignore .", - "lint:check:prettier": "prettier --check --ignore-path .gitignore **/*.{js,json,md}" + "lint:check:eslint": "eslint", + "lint:check:prettier": "prettier --check --ignore-path .gitignore **/*.{js,mjs,json,md}" }, "devDependencies": { + "@eslint/compat": "1.1.1", + "@eslint/eslintrc": "3.1.0", + "@eslint/js": "9.8.0", "cypress": "13.13.2", "eslint": "8.57.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-cypress": "3.4.0", "eslint-plugin-prettier": "5.2.1", + "globals": "15.9.0", "prettier": "3.3.3" } }