Title: [181987] trunk/Source/WebInspectorUI
Revision
181987
Author
[email protected]
Date
2015-03-25 17:46:57 -0700 (Wed, 25 Mar 2015)

Log Message

Web Inspector: Add ESLint "Disallow Undeclared Variables" rule and enable ES6 env
https://bugs.webkit.org/show_bug.cgi?id=143062

Patch by Tobias Reiss <[email protected]> on 2015-03-25
Reviewed by Joseph Pecoraro.

ESLint: Add support for es6 environment and "no-undef" rule which disallows
use of undeclared variables unless mentioned in a /*global */ block.

* .eslintrc:

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/.eslintrc (181986 => 181987)


--- trunk/Source/WebInspectorUI/.eslintrc	2015-03-26 00:03:44 UTC (rev 181986)
+++ trunk/Source/WebInspectorUI/.eslintrc	2015-03-26 00:46:57 UTC (rev 181987)
@@ -26,6 +26,7 @@
 {
     "env": {
         "browser": true,
+        "es6": true,
         "node": false,
     },
     "globals": {
@@ -68,6 +69,7 @@
         "no-proto": 0,
         "no-return-assign": 2,
         "no-trailing-spaces": 2,
+        "no-undef": 2,
         "no-underscore-dangle": 0,
         "no-unused-expressions": 2,
         "no-wrap-func": 2,

Modified: trunk/Source/WebInspectorUI/ChangeLog (181986 => 181987)


--- trunk/Source/WebInspectorUI/ChangeLog	2015-03-26 00:03:44 UTC (rev 181986)
+++ trunk/Source/WebInspectorUI/ChangeLog	2015-03-26 00:46:57 UTC (rev 181987)
@@ -1,3 +1,15 @@
+2015-03-25  Tobias Reiss  <[email protected]>
+
+        Web Inspector: Add ESLint "Disallow Undeclared Variables" rule and enable ES6 env
+        https://bugs.webkit.org/show_bug.cgi?id=143062
+
+        Reviewed by Joseph Pecoraro.
+
+        ESLint: Add support for es6 environment and "no-undef" rule which disallows
+        use of undeclared variables unless mentioned in a /*global */ block.
+
+        * .eslintrc:
+
 2015-03-25  Nikita Vasilyev  <[email protected]>
 
         Web Inspector: console.table with source code location look poor
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to