Expose XPCServiceMain in a WebProcess header rather than WKProcessPool
[WebKit-https.git] / Source / WebInspectorUI / .eslintrc
1 /*
2  * Copyright (C) 2014 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 {
27     "extends": "eslint:recommended",
28     "env": {
29         "browser": true,
30         "worker": true,
31         "es6": true,
32     },
33     "parserOptions": {
34         "ecmaVersion": 2018,
35     },
36     "globals": {
37         // Agents
38         "ApplicationCacheAgent": true,
39         "CSSAgent": true,
40         "CanvasAgent": true,
41         "ConsoleAgent": true,
42         "DOMAgent": true,
43         "DOMDebuggerAgent": true,
44         "DOMStorageAgent": true,
45         "DatabaseAgent": true,
46         "DebuggerAgent": true,
47         "HeapAgent": true,
48         "IndexedDBAgent": true,
49         "InspectorAgent": true,
50         "LayerTreeAgent": true,
51         "MemoryAgent": true,
52         "NetworkAgent": true,
53         "PageAgent": true,
54         "RecordingAgent": true,
55         "RuntimeAgent": true,
56         "ScriptProfilerAgent": true,
57         "ServiceWorkerAgent": true,
58         "TimelineAgent": true,
59         "WorkerAgent": true,
60
61         // Namespace
62         "WI": true,
63
64         // WebInspector
65         "AsyncTestSuite": true,
66         "Formatter": true,
67         "FormatterContentBuilder": true,
68         "FrontendTestHarness": true,
69         "InspectorBackend": true,
70         "InspectorBackendClass": true,
71         "InspectorFrontendAPI": true,
72         "InspectorFrontendHost": true,
73         "InspectorProtocol": true,
74         "InspectorTest": true,
75         "LinkedList": true,
76         "ListMultimap": true,
77         "ProtocolTest": true,
78         "ProtocolTestHarness": true,
79         "SyncTestSuite": true,
80         "TestHarness": true,
81         "TestSuite": true,
82
83         // Externals
84         "CodeMirror": true,
85         "THREE": true,
86         "esprima": true,
87
88         // Formatters
89         "ESTreeWalker": true,
90         "EsprimaFormatter": true,
91         "FormatterWorker": true,
92
93         // Heap Snapshot
94         "HeapSnapshot": true,
95         "HeapSnapshotDiff": true,
96         "HeapSnapshotWorker": true,
97
98         // DOM
99         "CSSPrimitiveValue": true,
100         "Exception": true,
101         "WebKitPoint": true,
102         "SQLError": true,
103
104         // Utilities
105         "appendWebInspectorConsoleEvaluationSourceURL": true,
106         "appendWebInspectorSourceURL": true,
107         "clamp": true,
108         "doubleQuotedString": true,
109         "ellipsis": true,
110         "emDash": true,
111         "enDash": true,
112         "figureDash": true,
113         "handlePromiseException": true,
114         "insertionIndexForObjectInListSortedByFunction": true,
115         "insertObjectIntoSortedArray": true,
116         "isEmptyObject": true,
117         "isEnterKey": true,
118         "isFunctionStringNativeCode": true,
119         "isTextLikelyMinified": true,
120         "isWebInspectorConsoleEvaluationScript": true,
121         "isWebInspectorInternalScript": true,
122         "isWebKitInternalScript": true,
123         "multiplicationSign": true,
124         "parseMIMEType": true,
125         "resolveDotsInPath": true,
126         "simpleGlobStringToRegExp": true,
127         "textToBlob": true,
128         "timestamp": true,
129         "zeroWidthSpace": true,
130
131         // DOM Utilities
132         "createSVGElement": true,
133
134         // URL Utilities
135         "absoluteURL": true,
136         "decodeBase64ToBlob": true,
137         "parseDataURL": true,
138         "parseLocationQueryParameters": true,
139         "parseQueryString": true,
140         "parseSecurityOrigin": true,
141         "parseURL": true,
142         "relativePath": true,
143         "removeURLFragment": true,
144
145         // Formatter Utilities
146         "isECMAScriptLineTerminator": true,
147         "isECMAScriptWhitespace": true,
148
149         // Debug
150         "handleInternalException": true,
151
152         // CodeMirror
153         "createCodeMirrorColorTextMarkers": true,
154         "createCodeMirrorCubicBezierTextMarkers": true,
155         "createCodeMirrorGradientTextMarkers": true,
156         "createCodeMirrorSpringTextMarkers": true,
157         "createCodeMirrorVariableTextMarkers": true,
158     },
159     "rules": {
160         "array-bracket-spacing": [2, "never"],
161         "block-spacing": [2, "always"],
162         "comma-dangle": [2, "only-multiline"],
163         "comma-spacing": [2, {"before": false, "after": true}],
164         "comma-style": [2, "last"],
165         "consistent-return": 2,
166         "curly": 0,
167         "dot-notation": 0,
168         "eol-last": 2,
169         "eqeqeq": 2,
170         "func-call-spacing": [2, "never"],
171         "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
172         "keyword-spacing": [2, {"before": true, "after": true}],
173         "new-cap": 0,
174         "new-parens": 0,
175         "no-console": 0,
176         "no-constant-condition": 0,
177         "no-extra-bind": 2,
178         "no-extra-parens": [2, "all", {"nestedBinaryExpressions": false}],
179         "no-extra-semi": 2,
180         "no-global-assign": 2,
181         "no-inner-declarations": 0,
182         "no-multi-spaces": 2,
183         "no-new": 0,
184         "no-proto": 0,
185         "no-redeclare": 0,
186         "no-return-assign": 2,
187         "no-self-compare": 2,
188         "no-shadow": 0,
189         "no-trailing-spaces": 2,
190         "no-undef": 2,
191         "no-underscore-dangle": 0,
192         "no-unused-expressions": 2,
193         "no-unused-vars": [2, {"vars": "all", "args": "none"}],
194         "no-use-before-define": 0,
195         "object-curly-spacing": [2, "never"],
196         "quotes": [2, "double"],
197         "semi": 2,
198         "semi-spacing": [2, {"before": false, "after": true}],
199         "space-infix-ops": 2,
200         "spaced-comment": [2, "always"],
201         "strict": 0,
202         "valid-typeof": 2,
203     }
204 }