eslint-plugin-babel
Advanced tools
Comparing version 4.1.1 to 4.1.2
{ | ||
"name": "eslint-plugin-babel", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "an eslint rule plugin companion to babel-eslint", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -47,3 +47,3 @@ # eslint-plugin-babel | ||
- `babel/no-invalid-this`: doesn't fail when inside class properties (`class A { a = this.b; }`) | ||
- `babel/semi`: Includes class properties (🛠) | ||
- `babel/semi`: doesn't fail when using `for await (let something of {})`. Includes class properties (🛠) | ||
@@ -50,0 +50,0 @@ #### Deprecated |
@@ -190,3 +190,3 @@ /** | ||
if ((parent.type !== "ForStatement" || parent.init !== node) && | ||
(!/^For(?:In|Of)Statement/.test(parent.type) || parent.left !== node) | ||
(!/^For(?:In|Of|Await)Statement/.test(parent.type) || parent.left !== node) | ||
) { | ||
@@ -193,0 +193,0 @@ checkForSemicolon(node); |
@@ -105,2 +105,3 @@ /* eslnit-disable */ | ||
"class Foo { static bar = 'example'; }", | ||
{ code: "async function foo() { for await (let thing of {}) { console.log(thing); } }", parserOptions: { ecmaVersion: 6 } }, | ||
@@ -107,0 +108,0 @@ // babel, "never" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142894
3336