Added: trunk/Source/WebInspectorUI/.eslintrc (0 => 172547)
--- trunk/Source/WebInspectorUI/.eslintrc (rev 0)
+++ trunk/Source/WebInspectorUI/.eslintrc 2014-08-14 01:13:15 UTC (rev 172547)
@@ -0,0 +1,66 @@
+/*
+ * 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.
+ */
+
+{
+ "env": {
+ "browser": true,
+ "node": false
+ },
+ "globals": {
+ "console": true,
+ "ApplicationCacheAgent": true,
+ "CodeMirror": true,
+ "ConsoleAgent": true,
+ "CSSAgent": true,
+ "DatabaseAgent": true,
+ "DebuggerAgent": true,
+ "DOMAgent": true,
+ "DOMDebuggerAgent": true,
+ "DOMStorageAgent": true,
+ "Formatter": true,
+ "IndexedDBAgent": true,
+ "InspectorAgent": true,
+ "InspectorBackend": true,
+ "InspectorFrontendAPI": true,
+ "InspectorFrontendHost": true,
+ "LayerTreeAgent": true,
+ "Map": true,
+ "NetworkAgent": true,
+ "PageAgent": true,
+ "ProfilerAgent": true,
+ "ReplayAgent": true,
+ "RuntimeAgent": true,
+ "TimelineAgent": true,
+ "WebInspector": true,
+ "WorkerAgent": true
+ },
+ "rules": {
+ "eqeqeq": 2,
+ "curly": 0,
+ "quotes": [2, "double"],
+ "no-underscore-dangle": 0,
+ "new-parens": 0
+ }
+}
Modified: trunk/Source/WebInspectorUI/ChangeLog (172546 => 172547)
--- trunk/Source/WebInspectorUI/ChangeLog 2014-08-14 00:39:28 UTC (rev 172546)
+++ trunk/Source/WebInspectorUI/ChangeLog 2014-08-14 01:13:15 UTC (rev 172547)
@@ -1,3 +1,17 @@
+2014-08-13 Jono Wells <jonowe...@apple.com>
+
+ Web Inspector: eslint configuration should be stored as .eslintrc
+ https://bugs.webkit.org/show_bug.cgi?id=135916
+
+ .eslintrc file added to allow for ESLint solutions, within editors and otherwise,
+ to be automatically configured based on the WebKit _javascript_ coding style. The
+ initial file is incomplete.
+
+ Reviewed by Joseph Pecoraro.
+
+ * .eslintrc: Added.
+ * External/.eslintrc: Added.
+
2014-08-13 Timothy Hatcher <timo...@apple.com>
Web Inspector: Missing semicolon after console.assert in TimelineSidebarPanel.js
Added: trunk/Source/WebInspectorUI/UserInterface/External/.eslintrc (0 => 172547)
--- trunk/Source/WebInspectorUI/UserInterface/External/.eslintrc (rev 0)
+++ trunk/Source/WebInspectorUI/UserInterface/External/.eslintrc 2014-08-14 01:13:15 UTC (rev 172547)
@@ -0,0 +1,30 @@
+/*
+ * 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.
+ */
+
+{
+ "rules": {
+ "eqeqeq": 0
+ }
+}