Web Inspector: Instrument active pixel memory used by canvases
[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         "es6": true,
31         "worker": true,
32     },
33     "globals": {
34         // Agents
35         "ApplicationCacheAgent": true,
36         "CSSAgent": true,
37         "CanvasAgent": true,
38         "ConsoleAgent": true,
39         "DOMAgent": true,
40         "DOMDebuggerAgent": true,
41         "DOMStorageAgent": true,
42         "DatabaseAgent": true,
43         "DebuggerAgent": true,
44         "HeapAgent",
45         "IndexedDBAgent": true,
46         "InspectorAgent": true,
47         "LayerTreeAgent": true,
48         "MemoryAgent": true,
49         "NetworkAgent": true,
50         "PageAgent": true,
51         "ReplayAgent": true,
52         "RuntimeAgent": true,
53         "ScriptProfilerAgent": true,
54         "TimelineAgent": true,
55         "WorkerAgent": true,
56
57         // WebInspector
58         "AsyncTestSuite": true,
59         "Formatter": true,
60         "FormatterContentBuilder": true,
61         "FrontendTestHarness": true,
62         "InspectorBackend": true,
63         "InspectorBackendClass": true,
64         "InspectorFrontendAPI": true,
65         "InspectorFrontendHost": true,
66         "InspectorProtocol": true,
67         "InspectorTest": true,
68         "LinkedList": true,
69         "ListMultimap": true,
70         "ProtocolTest": true,
71         "ProtocolTestHarness": true,
72         "SyncTestSuite": true,
73         "TestHarness": true,
74         "TestSuite": true,
75         "WebInspector": true,
76
77         // Externals
78         "CodeMirror": true,
79         "esprima": true,
80
81         // DOM
82         "CSSPrimitiveValue": true,
83         "Exception": true,
84         "SQLException": true,
85         "WebKitPoint": true,
86
87         // Utilities
88         "figureDash": true,
89         "ellipsis": true,
90         "emDash": true,
91         "enDash": true,
92         "clamp": true,
93         "isEnterKey": true,
94         "isEmptyObject": true,
95         "insertionIndexForObjectInListSortedByFunction": true,
96         "isFunctionStringNativeCode": true,
97         "parseMIMEType": true,
98         "doubleQuotedString": true,
99         "isWebKitInternalScript": true,
100         "isWebInspectorInternalScript": true,
101         "isWebInspectorConsoleEvaluationScript": true,
102         "appendWebInspectorSourceURL": true,
103         "appendWebInspectorConsoleEvaluationSourceURL": true,
104         "timestamp": true,
105         "handlePromiseException": true,
106         "insertObjectIntoSortedArray": true,
107
108         // Image Utilities
109         "platformImagePath": true,
110         "wrappedSVGDocument": true,
111         "createSVGElement": true,
112         "useSVGSymbol": true,
113
114         // URL Utilities
115         "absoluteURL": true,
116         "parseQueryString": true,
117         "parseURL": true,
118         "parseSecurityOrigin": true,
119         "removeURLFragment": true,
120         "decodeBase64ToBlob": true,
121         "relativePath": true,
122         "parseDataURL": true,
123         "parseLocationQueryParameters": true,
124     },
125     "rules": {
126         "array-bracket-spacing": [2, "never"],
127         "block-spacing": [2, "always"],
128         "comma-dangle": [2, "only-multiline"],
129         "comma-spacing": [2, {"before": false, "after": true}],
130         "comma-style": [2, "last"],
131         "consistent-return": 2,
132         "curly": 0,
133         "dot-notation": 0,
134         "eol-last": 2,
135         "eqeqeq": 2,
136         "func-call-spacing": [2, "never"],
137         "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
138         "keyword-spacing": [2, {"before": true, "after": true}],
139         "new-cap": 0,
140         "new-parens": 0,
141         "no-console": 0,
142         "no-constant-condition": 0,
143         "no-extra-bind": 2,
144         "no-extra-parens": [2, "all", {"nestedBinaryExpressions": false}],
145         "no-extra-semi": 2,
146         "no-global-assign": 2,
147         "no-inner-declarations": 0,
148         "no-multi-spaces": 2,
149         "no-new": 0,
150         "no-proto": 0,
151         "no-redeclare": 0,
152         "no-return-assign": 2,
153         "no-self-compare": 2,
154         "no-shadow": 0,
155         "no-trailing-spaces": 2,
156         "no-undef": 2,
157         "no-underscore-dangle": 0,
158         "no-unused-expressions": 2,
159         "no-unused-vars": [2, {"vars": "all", "args": "none"}],
160         "no-use-before-define": 0,
161         "object-curly-spacing": [2, "never"],
162         "quotes": [2, "double"],
163         "semi": 2,
164         "semi-spacing": [2, {"before": false, "after": true}],
165         "space-infix-ops": 2,
166         "spaced-comment": [2, "always"],
167         "strict": 0,
168         "valid-typeof": 2,
169     }
170 }