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