haikuwebkit/Source/WebInspectorUI/.eslintrc

183 lines
5.9 KiB
Plaintext
Raw Permalink Normal View History

/*
* Copyright (C) 2014 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
{
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"extends": "eslint:recommended",
"env": {
"browser": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"worker": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"es6": true,
},
"parserOptions": {
"ecmaVersion": 2021,
},
"globals": {
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
// Namespace
"WI": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
// WebInspector
"AsyncTestSuite": true,
Web Inspector: make debounce Proxy into its own class https://bugs.webkit.org/show_bug.cgi?id=194721 Reviewed by Joseph Pecoraro. Source/WebInspectorUI: The `debounce`/`throttle` functions leveraged a `Proxy` to intercept the function call and replace it with a "delayed" version. The issue with this is that it set the identifier for the timer on the function itself, which is shared across all instances of a given class. When different instances call the same delayed function, they'd clobber eachother's attempts to delay work. * UserInterface/Base/Debouncer.js: Added. (Debouncer): (Debouncer.prototype.force): (Debouncer.prototype.delayForTime): (Debouncer.prototype.delayForFrame): (Debouncer.prototype.delayForMicrotask): (Debouncer.prototype.cancel): (Debouncer.prototype._execute): * UserInterface/Base/Throttler.js: Added. (Throttler): (Throttler.prototype.force): (Throttler.prototype.fire): (Throttler.prototype.cancel): (Throttler.prototype._execute): * UserInterface/Base/Utilities.js: * UserInterface/Views/BezierEditor.js: (WI.BezierEditor): * UserInterface/Views/ContentBrowser.js: (WI.ContentBrowser): (WI.ContentBrowser.prototype._contentViewSelectionPathComponentDidChange): (WI.ContentBrowser.prototype._contentViewSupplementalRepresentedObjectsDidChange): (WI.ContentBrowser.prototype._currentContentViewDidChange): (WI.ContentBrowser.prototype._dispatchCurrentRepresentedObjectsDidChangeEvent): Deleted. * UserInterface/Views/DOMTreeUpdater.js: (WI.DOMTreeUpdater): (WI.DOMTreeUpdater.prototype._nodeAttributeModified): (WI.DOMTreeUpdater.prototype._nodeInserted): (WI.DOMTreeUpdater.prototype._nodeRemoved): * UserInterface/Views/NavigationSidebarPanel.js: (WI.NavigationSidebarPanel): (WI.NavigationSidebarPanel.prototype.closed): (WI.NavigationSidebarPanel.prototype.showEmptyContentPlaceholder): (WI.NavigationSidebarPanel.prototype.hideEmptyContentPlaceholder): (WI.NavigationSidebarPanel.prototype.updateFilter): (WI.NavigationSidebarPanel.prototype.shown): (WI.NavigationSidebarPanel.prototype._updateContentOverflowShadowVisibility): (WI.NavigationSidebarPanel.prototype._treeElementAddedOrChanged): (WI.NavigationSidebarPanel.prototype._treeElementDisclosureDidChange): * UserInterface/Views/RecordingContentView.js: (WI.RecordingContentView): (WI.RecordingContentView.prototype.updateActionIndex): (WI.RecordingContentView.prototype.hidden): * UserInterface/Views/ResourceDetailsSidebarPanel.js: (WI.ResourceDetailsSidebarPanel.prototype._refreshRelatedResourcesSection): (WI.ResourceDetailsSidebarPanel.prototype._applyResourceEventListeners): (WI.ResourceDetailsSidebarPanel): * UserInterface/Views/ShaderProgramContentView.js: (WI.ShaderProgramContentView): * UserInterface/Views/SpringEditor.js: (WI.SpringEditor.prototype._resetPreviewAnimation): * UserInterface/Views/TreeElement.js: (WI.TreeElement.prototype.set hidden): (WI.TreeElement.prototype.didChange): (WI.TreeElement.prototype._attach): (WI.TreeElement.prototype._detach): (WI.TreeElement.prototype.collapse): (WI.TreeElement.prototype.expand): (WI.TreeElement.prototype.reveal): * UserInterface/Views/TreeOutline.js: (WI.TreeOutline): (WI.TreeOutline.prototype.registerScrollVirtualizer): (WI.TreeOutline.prototype.get updateVirtualizedElementsDebouncer): Added. (WI.TreeOutline.prototype._updateVirtualizedElements): Added. (WI.TreeOutline.prototype.updateVirtualizedElements.walk): Deleted. (WI.TreeOutline.prototype.updateVirtualizedElements): Deleted. * UserInterface/Views/WebSocketContentView.js: (WI.WebSocketContentView): (WI.WebSocketContentView.prototype.shown): (WI.WebSocketContentView.prototype._updateFramesSoon): (WI.WebSocketContentView.prototype._updateFrames): * UserInterface/Main.html: * UserInterface/Test.html: * .eslintrc: LayoutTests: * inspector/unit-tests/debouncer.html: Renamed from inspector/unit-tests/debounce.html:. * inspector/unit-tests/debouncer-expected.txt: Renamed from inspector/unit-tests/debounce-expected.txt. * inspector/unit-tests/throttler.html: Renamed from inspector/unit-tests/throttle.html:. * inspector/unit-tests/throttler-expected.txt: Renamed from inspector/unit-tests/throttle-expected.txt. * platform/gtk/TestExpectations: * platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/209352@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242017 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-02-25 03:04:01 +00:00
"Debouncer": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"Formatter": true,
"FormatterContentBuilder": true,
"FrontendTestHarness": true,
"InspectorBackend": true,
"InspectorBackendClass": true,
"InspectorFrontendAPI": true,
"InspectorFrontendHost": true,
"InspectorProtocol": true,
"InspectorTest": true,
Web Inspector: DOMDebugger: protocol error on first open https://bugs.webkit.org/show_bug.cgi?id=195248 <rdar://problem/48538465> Reviewed by Joseph Pecoraro. Don't try to call `DOMDebugger` commands until a target has been initialized. Still attempt to resolve DOM breakpoints whenever the main resource/frame changes. * UserInterface/Controllers/DOMDebuggerManager.js: (WI.DOMDebuggerManager): (WI.DOMDebuggerManager.prototype.initializeTarget): Added. (WI.DOMDebuggerManager.supportsEventBreakpoints): (WI.DOMDebuggerManager.prototype.get supported): (WI.DOMDebuggerManager.prototype.addDOMBreakpoint): (WI.DOMDebuggerManager.prototype.removeDOMBreakpoint): (WI.DOMDebuggerManager.prototype.addEventBreakpoint): (WI.DOMDebuggerManager.prototype.removeEventBreakpoint): (WI.DOMDebuggerManager.prototype.addURLBreakpoint): (WI.DOMDebuggerManager.prototype.removeURLBreakpoint): (WI.DOMDebuggerManager.prototype._speculativelyResolveDOMBreakpointsForURL): Added. (WI.DOMDebuggerManager.prototype._resolveDOMBreakpoint): (WI.DOMDebuggerManager.prototype._updateDOMBreakpoint): (WI.DOMDebuggerManager.prototype._updateEventBreakpoint): (WI.DOMDebuggerManager.prototype._updateURLBreakpoint): (WI.DOMDebuggerManager.prototype._saveDOMBreakpoints): (WI.DOMDebuggerManager.prototype._handleDOMBreakpointDisabledStateChanged): (WI.DOMDebuggerManager.prototype._handleEventBreakpointDisabledStateChanged): (WI.DOMDebuggerManager.prototype._handleURLBreakpointDisabledStateChanged): (WI.DOMDebuggerManager.prototype._mainFrameDidChange): (WI.DOMDebuggerManager.prototype._mainResourceDidChange): (WI.DOMDebuggerManager.prototype.removeEventBreakpoint.breakpointRemoved): Deleted. (WI.DOMDebuggerManager.prototype._speculativelyResolveBreakpoints): Deleted. (WI.DOMDebuggerManager.prototype._updateDOMBreakpoint.breakpointUpdated): Deleted. (WI.DOMDebuggerManager.prototype._resolveEventBreakpoint): Deleted. (WI.DOMDebuggerManager.prototype._resolveURLBreakpoint): Deleted. * UserInterface/Base/Multimap.js: Added. (Multimap): (Multimap.prototype.get): (Multimap.prototype.add): (Multimap.prototype.delete): (Multimap.prototype.clear): (Multimap.prototype.keys): (Multimap.prototype.*values): (Multimap.prototype.*[Symbol.iterator]): (Multimap.prototype.toJSON): * .eslintrc: * UserInterface/Main.html: * UserInterface/Test.html: Helper data structure for managing Maps of Sets (e.g. all DOM breakpoints for a URL). Canonical link: https://commits.webkit.org/209875@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-03-11 21:56:32 +00:00
"Multimap": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"ProtocolTest": true,
"ProtocolTestHarness": true,
"SyncTestSuite": true,
"TestHarness": true,
"TestSuite": true,
Web Inspector: make debounce Proxy into its own class https://bugs.webkit.org/show_bug.cgi?id=194721 Reviewed by Joseph Pecoraro. Source/WebInspectorUI: The `debounce`/`throttle` functions leveraged a `Proxy` to intercept the function call and replace it with a "delayed" version. The issue with this is that it set the identifier for the timer on the function itself, which is shared across all instances of a given class. When different instances call the same delayed function, they'd clobber eachother's attempts to delay work. * UserInterface/Base/Debouncer.js: Added. (Debouncer): (Debouncer.prototype.force): (Debouncer.prototype.delayForTime): (Debouncer.prototype.delayForFrame): (Debouncer.prototype.delayForMicrotask): (Debouncer.prototype.cancel): (Debouncer.prototype._execute): * UserInterface/Base/Throttler.js: Added. (Throttler): (Throttler.prototype.force): (Throttler.prototype.fire): (Throttler.prototype.cancel): (Throttler.prototype._execute): * UserInterface/Base/Utilities.js: * UserInterface/Views/BezierEditor.js: (WI.BezierEditor): * UserInterface/Views/ContentBrowser.js: (WI.ContentBrowser): (WI.ContentBrowser.prototype._contentViewSelectionPathComponentDidChange): (WI.ContentBrowser.prototype._contentViewSupplementalRepresentedObjectsDidChange): (WI.ContentBrowser.prototype._currentContentViewDidChange): (WI.ContentBrowser.prototype._dispatchCurrentRepresentedObjectsDidChangeEvent): Deleted. * UserInterface/Views/DOMTreeUpdater.js: (WI.DOMTreeUpdater): (WI.DOMTreeUpdater.prototype._nodeAttributeModified): (WI.DOMTreeUpdater.prototype._nodeInserted): (WI.DOMTreeUpdater.prototype._nodeRemoved): * UserInterface/Views/NavigationSidebarPanel.js: (WI.NavigationSidebarPanel): (WI.NavigationSidebarPanel.prototype.closed): (WI.NavigationSidebarPanel.prototype.showEmptyContentPlaceholder): (WI.NavigationSidebarPanel.prototype.hideEmptyContentPlaceholder): (WI.NavigationSidebarPanel.prototype.updateFilter): (WI.NavigationSidebarPanel.prototype.shown): (WI.NavigationSidebarPanel.prototype._updateContentOverflowShadowVisibility): (WI.NavigationSidebarPanel.prototype._treeElementAddedOrChanged): (WI.NavigationSidebarPanel.prototype._treeElementDisclosureDidChange): * UserInterface/Views/RecordingContentView.js: (WI.RecordingContentView): (WI.RecordingContentView.prototype.updateActionIndex): (WI.RecordingContentView.prototype.hidden): * UserInterface/Views/ResourceDetailsSidebarPanel.js: (WI.ResourceDetailsSidebarPanel.prototype._refreshRelatedResourcesSection): (WI.ResourceDetailsSidebarPanel.prototype._applyResourceEventListeners): (WI.ResourceDetailsSidebarPanel): * UserInterface/Views/ShaderProgramContentView.js: (WI.ShaderProgramContentView): * UserInterface/Views/SpringEditor.js: (WI.SpringEditor.prototype._resetPreviewAnimation): * UserInterface/Views/TreeElement.js: (WI.TreeElement.prototype.set hidden): (WI.TreeElement.prototype.didChange): (WI.TreeElement.prototype._attach): (WI.TreeElement.prototype._detach): (WI.TreeElement.prototype.collapse): (WI.TreeElement.prototype.expand): (WI.TreeElement.prototype.reveal): * UserInterface/Views/TreeOutline.js: (WI.TreeOutline): (WI.TreeOutline.prototype.registerScrollVirtualizer): (WI.TreeOutline.prototype.get updateVirtualizedElementsDebouncer): Added. (WI.TreeOutline.prototype._updateVirtualizedElements): Added. (WI.TreeOutline.prototype.updateVirtualizedElements.walk): Deleted. (WI.TreeOutline.prototype.updateVirtualizedElements): Deleted. * UserInterface/Views/WebSocketContentView.js: (WI.WebSocketContentView): (WI.WebSocketContentView.prototype.shown): (WI.WebSocketContentView.prototype._updateFramesSoon): (WI.WebSocketContentView.prototype._updateFrames): * UserInterface/Main.html: * UserInterface/Test.html: * .eslintrc: LayoutTests: * inspector/unit-tests/debouncer.html: Renamed from inspector/unit-tests/debounce.html:. * inspector/unit-tests/debouncer-expected.txt: Renamed from inspector/unit-tests/debounce-expected.txt. * inspector/unit-tests/throttler.html: Renamed from inspector/unit-tests/throttle.html:. * inspector/unit-tests/throttler-expected.txt: Renamed from inspector/unit-tests/throttle-expected.txt. * platform/gtk/TestExpectations: * platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/209352@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242017 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-02-25 03:04:01 +00:00
"Throttler": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
// Externals
"CodeMirror": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"THREE": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"esprima": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
// Formatters
Web Inspector: Formatter: pretty-print CSS using a Worker https://bugs.webkit.org/show_bug.cgi?id=197829 <rdar://problem/36891532> Reviewed by Timothy Hatcher. Source/WebInspectorUI: * UserInterface/Proxies/FormatterWorkerProxy.js: (WI.FormatterWorkerProxy.prototype.formatCSS): Added. * UserInterface/Workers/Formatter/FormatterWorker.js: (FormatterWorker.prototype.formatCSS): Added. * UserInterface/Workers/Formatter/CSSFormatter.js: Added. (CSSFormatter): (CSSFormatter.prototype.get success): (CSSFormatter.prototype.get formattedText): (CSSFormatter.prototype.get sourceMapData): (CSSFormatter.prototype._format): * UserInterface/Workers/Formatter/FormatterContentBuilder.js: (FormatterContentBuilder.prototype.get currentLine): Added. * UserInterface/Views/TextEditor.js: (WI.TextEditor.prototype._canUseFormatterWorker): (WI.TextEditor.prototype._startWorkerPrettyPrint): * .eslintrc: LayoutTests: * inspector/formatting/formatting-css.html: Added. * inspector/formatting/formatting-css-expected.txt: Added. * inspector/formatting/resources/css-tests/basic-expected.css: Added. * inspector/formatting/resources/css-tests/basic.css: Added. * inspector/formatting/resources/css-tests/gradient-expected.css: Added. * inspector/formatting/resources/css-tests/gradient.css: Added. * inspector/formatting/resources/css-tests/keyframes-expected.css: Added. * inspector/formatting/resources/css-tests/keyframes.css: Added. * inspector/formatting/resources/css-tests/media-query-expected.css: Added. * inspector/formatting/resources/css-tests/media-query.css: Added. * inspector/formatting/resources/css-tests/selectors-expected.css: Added. * inspector/formatting/resources/css-tests/selectors.css: Added. * inspector/formatting/resources/css-tests/wrapping-expected.css: Added. * inspector/formatting/resources/css-tests/wrapping.css: Added. * inspector/formatting/resources/utilities.js: (TestPage.registerInitializer.runFormattingTest): Canonical link: https://commits.webkit.org/212627@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-06 23:35:12 +00:00
"CSSFormatter": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"ESTreeWalker": true,
"EsprimaFormatter": true,
"FormatterWorker": true,
// Heap Snapshot
"HeapSnapshot": true,
"HeapSnapshotDiff": true,
"HeapSnapshotWorker": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
// DOM
"CSSPrimitiveValue": true,
"Exception": true,
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"WebKitPoint": true,
"SQLError": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
// Utilities
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"appendWebInspectorConsoleEvaluationSourceURL": true,
"appendWebInspectorSourceURL": true,
"clamp": true,
"doubleQuotedString": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"ellipsis": true,
"emDash": true,
"enDash": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"figureDash": true,
"handlePromiseException": true,
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"insertionIndexForObjectInListSortedByFunction": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"insertObjectIntoSortedArray": true,
"isEmptyObject": true,
"isEnterKey": true,
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"isFunctionStringNativeCode": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"isTextLikelyMinified": true,
Web Inspector: provide a way to inject "bootstrap" JavaScript into the page as the first script executed https://bugs.webkit.org/show_bug.cgi?id=195847 <rdar://problem/48950551> Reviewed by Joseph Pecoraro. Source/JavaScriptCore: When debugging webpages, it's often useful to be able to swizzle various functions in order to add extra logs for when they're called (e.g. `Event.prototype.preventDefault`). Sometimes this can be difficult, such as if the page saves a copy of the function and references that instead, in which case it would be helpful to have a way to guarantee that the swizzled code is the first thing evaluated after the context is created. This change adds support for that concept, which has been named Inspector Bootstrap Script. Once created, it will be injected as the first user script to every new global object that is created afterwards. Modifications to the Inspector Bootstrap Script take effect for all new global objects created _after_ the modification happened. * inspector/protocol/Page.json: Add `setBoostrapScript` command. Source/WebCore: When debugging webpages, it's often useful to be able to swizzle various functions in order to add extra logs for when they're called (e.g. `Event.prototype.preventDefault`). Sometimes this can be difficult, such as if the page saves a copy of the function and references that instead, in which case it would be helpful to have a way to guarantee that the swizzled code is the first thing evaluated after the context is created. This change adds support for that concept, which has been named Inspector Bootstrap Script. Once created, it will be injected as the first user script to every new global object that is created afterwards. Modifications to the Inspector Bootstrap Script take effect for all new global objects created _after_ the modification happened. Tests: inspector/page/setBootstrapScript-main-frame.html inspector/page/setBootstrapScript-sub-frame.html * inspector/agents/InspectorPageAgent.h: * inspector/agents/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::setBootstrapScript): Added. (WebCore::InspectorPageAgent::didClearWindowObjectInWorld): Added. * inspector/InspectorInstrumentation.cpp: (WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl): * inspector/agents/page/PageDebuggerAgent.h: * inspector/agents/page/PageDebuggerAgent.cpp: (WebCore::PageDebuggerAgent::didClearWindowObjectInWorld): Added. (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject): Deleted. * inspector/agents/page/PageRuntimeAgent.h: * inspector/agents/page/PageRuntimeAgent.cpp: (WebCore::PageRuntimeAgent::didClearWindowObjectInWorld): Added. (WebCore::PageRuntimeAgent::didCreateMainWorldContext): Deleted. Rename existing global object creation "notifications" for more consistency between agents. Source/WebInspectorUI: When debugging webpages, it's often useful to be able to swizzle various functions in order to add extra logs for when they're called (e.g. `Event.prototype.preventDefault`). Sometimes this can be difficult, such as if the page saves a copy of the function and references that instead, in which case it would be helpful to have a way to guarantee that the swizzled code is the first thing evaluated after the context is created. This change adds support for that concept, which has been named Inspector Bootstrap Script. Once created, it will be injected as the first user script to every new global object that is created afterwards. Modifications to the Inspector Bootstrap Script take effect for all new global objects created _after_ the modification happened. * UserInterface/Controllers/NetworkManager.js: (WI.NetworkManager): (WI.NetworkManager.supportsBootstrapScript): Added. (WI.NetworkManager.get bootstrapScriptURL): Added. (WI.NetworkManager.get bootstrapScriptSourceObjectStoreKey): Added. (WI.NetworkManager.prototype.initializeTarget): (WI.NetworkManager.prototype.get bootstrapScript): Added. (WI.NetworkManager.prototype.get bootstrapScriptEnabled): Added. (WI.NetworkManager.prototype.set bootstrapScriptEnabled): Added. (WI.NetworkManager.prototype.async createBootstrapScript): Added. (WI.NetworkManager.prototype.destroyBootstrapScript): Added. (WI.NetworkManager.prototype._processServiceWorkerConfiguration): (WI.NetworkManager.prototype._handleBootstrapScriptContentDidChange): Added. * UserInterface/Models/LocalScript.js: (WI.LocalScript): (WI.LocalScript.prototype.get editable): Added. (WI.LocalScript.prototype.get supportsScriptBlackboxing): Added. (WI.LocalScript.prototype.requestContentFromBackend): (WI.LocalScript.prototype.handleCurrentRevisionContentChange): Added. * UserInterface/Views/ScriptContentView.js: (WI.ScriptContentView): (WI.ScriptContentView.prototype._contentWillPopulate): (WI.ScriptContentView.prototype._contentDidPopulate): (WI.ScriptContentView.prototype._handleTextEditorContentDidChange): Added. Support editing of `WI.LocalScript` that are specifically marked as such. * UserInterface/Models/Script.js: (WI.Script): (WI.Script.prototype.get displayName): (WI.Script.prototype.get displayURL): (WI.Script.prototype.isMainResource): (WI.Script.prototype._resolveResource): * UserInterface/Views/SourceCodeTextEditor.js: (WI.SourceCodeTextEditor.prototype.customPerformSearch): (WI.SourceCodeTextEditor.prototype._createTypeTokenAnnotator): (WI.SourceCodeTextEditor.prototype._createBasicBlockAnnotator): Allow a `WI.Script` to not have an associated `WI.Target`, specifically for `WI.LocalScript`. * UserInterface/Views/SourcesNavigationSidebarPanel.js: (WI.SourcesNavigationSidebarPanel): (WI.SourcesNavigationSidebarPanel.prototype.treeElementForRepresentedObject): (WI.SourcesNavigationSidebarPanel.prototype.createContentTreeOutline): (WI.SourcesNavigationSidebarPanel.prototype._compareTreeElements): (WI.SourcesNavigationSidebarPanel.prototype._addLocalOverride): Added. (WI.SourcesNavigationSidebarPanel.prototype._removeResourceOverride): Added. (WI.SourcesNavigationSidebarPanel.prototype._populateCreateResourceContextMenu): (WI.SourcesNavigationSidebarPanel.prototype._handleBootstrapScriptCreated): Added. (WI.SourcesNavigationSidebarPanel.prototype._handleBootstrapScriptDestroyed): Added. (WI.SourcesNavigationSidebarPanel.prototype._handleLocalResourceOverrideAdded): (WI.SourcesNavigationSidebarPanel.prototype._handleLocalResourceOverrideRemoved): (WI.SourcesNavigationSidebarPanel.prototype._handleDebuggerPaused): (WI.SourcesNavigationSidebarPanel.prototype._handleDebuggerResumed): (WI.SourcesNavigationSidebarPanel.prototype._addLocalResourceOverride): Removed. (WI.SourcesNavigationSidebarPanel.prototype._removeLocalResourceOverride): Removed. Add an item in the create resource context menu for creating/focusing the bootstrap script. * UserInterface/Views/ScriptTreeElement.js: (WI.ScriptTreeElement): * UserInterface/Views/BootstrapScriptTreeElement.js: Added. (WI.BootstrapScriptTreeElement): (WI.BootstrapScriptTreeElement.prototype.onattach): (WI.BootstrapScriptTreeElement.prototype.ondetach): (WI.BootstrapScriptTreeElement.prototype.ondelete): (WI.BootstrapScriptTreeElement.prototype.onspace): (WI.BootstrapScriptTreeElement.prototype.canSelectOnMouseDown): (WI.BootstrapScriptTreeElement.prototype.populateContextMenu): (WI.BootstrapScriptTreeElement.prototype.updateStatus): (WI.BootstrapScriptTreeElement.prototype._handleNetworkManagerBootstrapScriptToggled): * UserInterface/Views/BootstrapScriptTreeElement.css: Added. (.item.script.bootstrap .status > input[type="checkbox"]): * UserInterface/Views/LocalResourceOverrideTreeElement.css: (.item.resource.override .status > input[type="checkbox"]): Added. (.item.resource.override .status > div): Removed. Don't show the full bootstrap script URL. Instead, show "Inspector Bootstrap Script". * UserInterface/Views/OpenResourceDialog.js: (WI.OpenResourceDialog.prototype.didPresentDialog): Show the bootstrap script in the open resource dialog. * UserInterface/Base/Utilities.js: (isWebInspectorBootstrapScript): Added. * UserInterface/Controllers/DebuggerManager.js: (WI.DebuggerManager.prototype.scriptDidFail): * UserInterface/Base/ObjectStore.js: (WI.ObjectStore.static _open): (WI.ObjectStore.prototype.async get): Added. Add a generalized object store that can be used for one-off values that need the larger storage capacity of `IndexedDB`. * .eslintrc: * Localizations/en.lproj/localizedStrings.js: LayoutTests: * inspector/page/setBootstrapScript-main-frame.html: Added. * inspector/page/setBootstrapScript-main-frame-expected.txt: Added. * inspector/page/setBootstrapScript-sub-frame.html: Added. * inspector/page/setBootstrapScript-sub-frame-expected.txt: Added. * inspector/page/resources/bootstrap-iframe.html: Added. Canonical link: https://commits.webkit.org/216764@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-10-24 06:54:49 +00:00
"isWebInspectorBootstrapScript": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"isWebInspectorConsoleEvaluationScript": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"isWebInspectorInternalScript": true,
"isWebKitInternalScript": true,
"multiplicationSign": true,
"parseMIMEType": true,
"resolveDotsInPath": true,
"simpleGlobStringToRegExp": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"timestamp": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"zeroWidthSpace": true,
// DOM Utilities
"createSVGElement": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
// URL Utilities
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"absoluteURL": true,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"parseDataURL": true,
"parseLocationQueryParameters": true,
Web Inspector: fix ESLint errors https://bugs.webkit.org/show_bug.cgi?id=175065 Reviewed by Joseph Pecoraro. Removed trailing whitespace, extra parenthesis, and some unnecessary escape characters. Added missing semicolons, spacing around default values for parameters, and changed `==` to `===` where applicable. Specific changes to each file were removed for brevity. * .eslintrc: Alphabetize each list of global variables and add some missing utility functions. * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/Main.js: * UserInterface/Base/Setting.js: * UserInterface/Base/TextUtilities.js: * UserInterface/Base/URLUtilities.js: * UserInterface/Base/Utilities.js: * UserInterface/Base/YieldableTask.js: * UserInterface/Controllers/AppControllerBase.js: * UserInterface/Controllers/CanvasManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/DOMDebuggerManager.js: * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: * UserInterface/Controllers/RuntimeManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Debug/DebugContentView.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/KeyboardShortcut.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ResourceCollection.js: * UserInterface/Models/Script.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Protocol/Connection.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/TestHarness.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ChartDetailsSectionRow.js: * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorFormatters.js: * UserInterface/Views/CodeMirrorRegexMode.js: * UserInterface/Views/ContentBrowserTabContentView.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DataGridNode.js: * UserInterface/Views/FindBanner.js: * UserInterface/Views/GroupNavigationItem.js: * UserInterface/Views/HierarchicalPathNavigationItem.js: * UserInterface/Views/NetworkTableContentView.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Views/ObjectTreeView.js: * UserInterface/Views/RecordingContentView.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/ResourceCookiesContentView.js: * UserInterface/Views/ResourceDetailsSection.js: * UserInterface/Views/ResourceHeadersContentView.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/SettingEditor.js: * UserInterface/Views/Sidebar.js: * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js: * UserInterface/Views/Table.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/TimelineDataGridNode.js: * UserInterface/Views/TreeElement.js: * UserInterface/Views/TreeOutline.js: * UserInterface/Views/WebSocketDataGridNode.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/194515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-13 23:52:34 +00:00
"parseQueryString": true,
"parseSecurityOrigin": true,
"parseURL": true,
"relativePath": true,
"removeURLFragment": true,
// Formatter Utilities
"isECMAScriptLineTerminator": true,
"isECMAScriptWhitespace": true,
// Debug
"handleInternalException": true,
// CodeMirror
"createCodeMirrorColorTextMarkers": true,
"createCodeMirrorCubicBezierTextMarkers": true,
"createCodeMirrorGradientTextMarkers": true,
"createCodeMirrorSpringTextMarkers": true,
},
"rules": {
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"array-bracket-spacing": [2, "never"],
"block-spacing": [2, "always"],
"comma-dangle": [2, "only-multiline"],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
Web Inspector: Fix ESLint consistent-return warnings https://bugs.webkit.org/show_bug.cgi?id=136682 Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-09-10 Reviewed by Timothy Hatcher. * .eslintrc: * UserInterface/Controllers/BranchManager.js: (WebInspector.BranchManager.prototype.createBranch): * UserInterface/Controllers/FrameResourceManager.js: (WebInspector.FrameResourceManager.prototype._addNewResourceToFrame): * UserInterface/Models/DOMNodeStyles.js: (WebInspector.DOMNodeStyles.prototype._parseStyleDeclarationPayload): * UserInterface/Views/BoxModelDetailsSectionRow.js: (WebInspector.BoxModelDetailsSectionRow.prototype._applyUserInput): * UserInterface/Views/DOMTreeElement.js: (WebInspector.DOMTreeElement.prototype.showChild): (WebInspector.DOMTreeElement.prototype._startEditingTarget): (WebInspector.DOMTreeElement.prototype._startEditing): * UserInterface/Views/EditingSupport.js: * UserInterface/Views/EventListenerSectionGroup.js: (WebInspector.EventListenerSectionGroup.prototype._nodeTextOrLink): * UserInterface/Views/FrameContentView.js: (WebInspector.FrameContentView.prototype._showContentViewForIdentifier): * UserInterface/Views/NavigationBar.js: (WebInspector.NavigationBar.prototype.insertNavigationItem): (WebInspector.NavigationBar.prototype.removeNavigationItem): * UserInterface/Views/QuickConsole.js: (WebInspector.QuickConsole.prototype._insertExecutionContextPathComponentForFrame): * UserInterface/Views/Sidebar.js: (WebInspector.Sidebar.prototype.addSidebarPanel): (WebInspector.Sidebar.prototype.removeSidebarPanel): * UserInterface/Views/TextEditor.js: (WebInspector.TextEditor.prototype.addStyleClassToLine): (WebInspector.TextEditor.prototype.removeStyleClassFromLine): (WebInspector.TextEditor.prototype.toggleStyleClassForLine): Canonical link: https://commits.webkit.org/154524@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-09-10 19:15:28 +00:00
"consistent-return": 2,
"curly": 0,
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"dot-notation": 0,
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"eol-last": 2,
"eqeqeq": 2,
"indent": ["error", 4],
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"func-call-spacing": [2, "never"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": [2, {"before": true, "after": true}],
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"new-cap": 0,
"new-parens": 0,
"no-console": 0,
"no-constant-condition": 0,
"no-extra-bind": 2,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"no-extra-parens": [2, "all", {"nestedBinaryExpressions": false}],
"no-extra-semi": 2,
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"no-global-assign": 2,
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"no-inner-declarations": 0,
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"no-multi-spaces": 2,
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"no-new": 0,
"no-proto": 0,
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"no-redeclare": 0,
"no-return-assign": 2,
"no-return-await": 2,
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"no-self-compare": 2,
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"no-shadow": 0,
Web Inspector: Fix ESLint no-trailing-spaces warnings https://bugs.webkit.org/show_bug.cgi?id=136657 Reviewed by NOBODY (OOPS!). * .eslintrc: * UserInterface/Base/DOMUtilities.js: * UserInterface/Base/URLUtilities.js: (relativePath): * UserInterface/Base/Utilities.js: * UserInterface/Controllers/CodeMirrorColorEditingController.js: (WebInspector.CodeMirrorColorEditingController.prototype._colorPickerColorChanged): * UserInterface/Controllers/CodeMirrorDragToAdjustNumberController.js: (WebInspector.CodeMirrorDragToAdjustNumberController.prototype.set enabled): (WebInspector.CodeMirrorDragToAdjustNumberController.prototype.dragToAdjustControllerCanAdjustObjectAtPoint): * UserInterface/Controllers/CodeMirrorEditingController.js: (WebInspector.CodeMirrorEditingController.prototype.handleKeydownEvent): * UserInterface/Controllers/CodeMirrorGradientEditingController.js: (WebInspector.CodeMirrorGradientEditingController.prototype.gradientSliderStopWasSelected): * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: (WebInspector.CodeMirrorTokenTrackingController.prototype._processJavaScriptExpression): * UserInterface/Controllers/DragToAdjustController.js: (WebInspector.DragToAdjustController.prototype.set active): (WebInspector.DragToAdjustController.prototype._setDragging): (WebInspector.DragToAdjustController.prototype._setTracksMouseClickAndDrag): * UserInterface/External/Esprima/esprima.js: * UserInterface/Models/ApplicationCacheFrame.js: (WebInspector.ApplicationCacheFrame): * UserInterface/Models/ApplicationCacheManifest.js: (WebInspector.ApplicationCacheManifest): (WebInspector.ApplicationCacheManifest.prototype.get manifestURL): * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/DOMSearchMatchObject.js: (WebInspector.DOMSearchMatchObject.prototype.get title): (WebInspector.DOMSearchMatchObject.titleForDOMNode): * UserInterface/Models/DatabaseObject.js: (WebInspector.DatabaseObject.prototype.getTableNames): * UserInterface/Models/DatabaseTableObject.js: (WebInspector.DatabaseTableObject): * UserInterface/Models/Gradient.js: (WebInspector.Gradient.fromString): (WebInspector.RadialGradient.prototype.toString): * UserInterface/Models/IssueMessage.js: (WebInspector.IssueMessage.prototype._formatTextIfNecessary): * UserInterface/Models/Resource.js: (WebInspector.Resource.prototype.getImageSize.imageDidLoad): (WebInspector.Resource.prototype.getImageSize): * UserInterface/Models/Script.js: (WebInspector.Script.prototype._makeSyntaxTree): * UserInterface/Models/SourceCodeLocation.js: (WebInspector.SourceCodeLocation.prototype.hasDifferentDisplayLocation): * UserInterface/Models/TextMarker.js: * UserInterface/Protocol/PageObserver.js: * UserInterface/Views/ApplicationCacheDetailsSidebarPanel.js: (WebInspector.ApplicationCacheDetailsSidebarPanel.prototype.set applicationCacheFrame): (WebInspector.ApplicationCacheDetailsSidebarPanel.prototype.refresh): (WebInspector.ApplicationCacheDetailsSidebarPanel.prototype._networkStateUpdated): * UserInterface/Views/ApplicationCacheFrameTreeElement.js: (WebInspector.ApplicationCacheFrameTreeElement): * UserInterface/Views/ApplicationCacheManifestTreeElement.js: (WebInspector.ApplicationCacheManifestTreeElement.prototype.get name): (WebInspector.ApplicationCacheManifestTreeElement.prototype.get secondaryName): * UserInterface/Views/ButtonNavigationItem.js: (WebInspector.ButtonNavigationItem): * UserInterface/Views/ColorPicker.js: * UserInterface/Views/ColorWheel.js: (WebInspector.ColorWheel.prototype._draw): * UserInterface/Views/CompletionSuggestionsView.js: (WebInspector.CompletionSuggestionsView.prototype.show): * UserInterface/Views/ConsoleCommand.js: * UserInterface/Views/ConsolePrompt.js: * UserInterface/Views/ContentFlowTreeElement.js: * UserInterface/Views/CookieStorageTreeElement.js: (WebInspector.CookieStorageTreeElement): * UserInterface/Views/EventListenerSectionGroup.js: (WebInspector.EventListenerSectionGroup.prototype._functionTextOrLink): * UserInterface/Views/GeneralTreeElementPathComponent.js: * UserInterface/Views/GoToLineDialog.js: (WebInspector.GoToLineDialog.prototype._handleKeydownEvent): * UserInterface/Views/LayerTreeDataGridNode.js: (WebInspector.LayerTreeDataGridNode.prototype._makeNameCell): * UserInterface/Views/LayerTreeSidebarPanel.js: * UserInterface/Views/LogContentView.js: (WebInspector.LogContentView.prototype._highlightRanges): * UserInterface/Views/NavigationBar.js: (WebInspector.NavigationBar): * UserInterface/Views/NavigationItem.js: (WebInspector.NavigationItem): * UserInterface/Views/ResourceDetailsSidebarPanel.js: (WebInspector.ResourceDetailsSidebarPanel.prototype._refreshImageSizeSection): * UserInterface/Views/ScopeBar.js: * UserInterface/Views/ScopeBarItem.js: (WebInspector.ScopeBarItem): * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: (WebInspector.ScopeChainDetailsSidebarPanel): * UserInterface/Views/ScriptTimelineDataGridNode.js: (WebInspector.ScriptTimelineDataGridNode.prototype.updateRangeTimes): * UserInterface/Views/ScriptTreeElement.js: (WebInspector.ScriptTreeElement): * UserInterface/Views/SearchBar.js: * UserInterface/Views/SearchResultTreeElement.js: (WebInspector.SearchResultTreeElement.truncateAndHighlightTitle): * UserInterface/Views/Slider.js: Conflicts: Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorColorEditingController.js Canonical link: https://commits.webkit.org/154488@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-09-09 19:46:41 +00:00
"no-trailing-spaces": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unused-expressions": 2,
Web Inspector: Update ESLint rules and run it over most of UserInterface https://bugs.webkit.org/show_bug.cgi?id=161561 Reviewed by Brian Burg. * .eslintrc: Updated ESLint rules. * UserInterface/Base/InspectorFrontendHostStub.js: * UserInterface/Base/Main.js: * UserInterface/Base/Object.js: * UserInterface/Base/Platform.js: * UserInterface/Base/Setting.js: * UserInterface/Controllers/CSSStyleManager.js: * UserInterface/Controllers/CodeMirrorCompletionController.js: * UserInterface/Controllers/CodeMirrorTextKillController.js: * UserInterface/Controllers/DebuggerManager.js: * UserInterface/Controllers/DragToAdjustController.js: * UserInterface/Controllers/ReplayManager.js: * UserInterface/Controllers/SourceMapManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Controllers/TypeTokenAnnotator.js: * UserInterface/Controllers/VisualStyleCompletionsController.js: * UserInterface/Debug/Bootstrap.js: * UserInterface/Debug/UncaughtExceptionReporter.js: * UserInterface/Models/CSSRule.js: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/CallingContextTreeNode.js: * UserInterface/Models/ConsoleCommandResultMessage.js: * UserInterface/Models/CookieStorageObject.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/IssueMessage.js: * UserInterface/Models/LayoutTimelineRecord.js: * UserInterface/Models/MemoryTimeline.js: * UserInterface/Models/NativeFunctionParameters.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/Resource.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Models/ScriptTimelineRecord.js: * UserInterface/Models/StackTrace.js: * UserInterface/Models/TypeSet.js: * UserInterface/Models/WrappedPromise.js: * UserInterface/Protocol/InspectorBackend.js: * UserInterface/Protocol/InspectorFrontendAPI.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Protocol/ScriptProfilerObserver.js: * UserInterface/Test/FrontendTestHarness.js: * UserInterface/Test/InspectorProtocol.js: * UserInterface/Test/ProtocolTestHarness.js: * UserInterface/Test/Test.js: * UserInterface/Test/TestHarness.js: * UserInterface/Test/TestSuite.js: * UserInterface/Workers/Formatter/EsprimaFormatter.js: * UserInterface/Workers/HeapSnapshot/HeapSnapshotWorker.js: Canonical link: https://commits.webkit.org/179756@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:01:57 +00:00
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
Web Inspector: Add more ESLint rules that reflect the current state of the code base https://bugs.webkit.org/show_bug.cgi?id=143212 Patch by Tobias Reiss <tobi+webkit@basecode.de> on 2015-03-30 Reviewed by Timothy Hatcher. * .eslintrc: Define some utilities as globals. Replace "no-comma-dangle" with "comma-dangle". "no-comma-dangle" is deprecated and does not trigger in ESLint v.0.17.1 Set "new-cap" to 0 due to the usage of "WebInspector.UIString". Disable "no-redeclare" for now and enable it back as soon as block scoped `let` is used. Disable "dot-notation", "no-shadow" and "no-use-before-define" due to a lot of hits. Disable "no-inner-declarations" as this is a common pattern to save memory. * UserInterface/Views/ObjectTreePropertyTreeElement.js: * UserInterface/Models/SourceCodeLocation.js: It's not necessary to initialize x to undefined. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: * UserInterface/Views/TextEditor.js: * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: Remove unused variable x. * UserInterface/Views/ObjectTreeMapEntryTreeElement.js: * UserInterface/Models/PropertyPath.js: * UserInterface/Views/RadioButtonNavigationItem.js: * UserInterface/Views/ReplayDashboardView.js: * UserInterface/Models/ScriptSyntaxTree.js: * UserInterface/Views/SourceCodeTextEditor.js: * UserInterface/Views/SourceCodeTreeElement.js: Remove trailing and unexpected whitespace. * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/TimelineRuler.js: Add missing semicolon. * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineRecordFrame.js: Add missing var statement. * UserInterface/Views/TypeTokenView.js: Remove unnecessary `bind`. Canonical link: https://commits.webkit.org/161242@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-30 16:29:18 +00:00
"no-use-before-define": 0,
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"object-curly-spacing": [2, "never"],
"quotes": [2, "double"],
"semi": 2,
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"semi-spacing": [2, {"before": false, "after": true}],
"space-infix-ops": 2,
Web Inspector: Enable and enforce some recommended and stylistic ESLint rules https://bugs.webkit.org/show_bug.cgi?id=161567 Reviewed by Brian Burg. * .eslintrc: * UserInterface/Base/EventListener.js: * UserInterface/Base/EventListenerSet.js: * UserInterface/Base/MIMETypeUtilities.js: * UserInterface/Base/Main.js: * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: * UserInterface/Controllers/DOMTreeManager.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Models/CSSKeywordCompletions.js: * UserInterface/Models/DOMNode.js: * UserInterface/Models/DOMNodeStyles.js: * UserInterface/Models/Frame.js: * UserInterface/Models/Geometry.js: * UserInterface/Models/ProfileNode.js: * UserInterface/Models/RenderingFrameTimelineRecord.js: * UserInterface/Models/SourceCodeLocation.js: * UserInterface/Protocol/RemoteObject.js: * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ContextMenu.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DOMTreeElement.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/GeneralTreeElement.js: * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/OpenResourceDialog.js: * UserInterface/Views/StyleDetailsPanel.js: * UserInterface/Views/VisualStyleDetailsPanel.js: * UserInterface/Views/VisualStyleKeywordPicker.js: * UserInterface/Views/VisualStylePropertyEditor.js: * UserInterface/Workers/Formatter/FormatterWorker.js: Canonical link: https://commits.webkit.org/179758@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-05 05:02:38 +00:00
"spaced-comment": [2, "always"],
"strict": 0,
"valid-typeof": 2,
}
}