Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #101 from mathieumg/no-invalid-this
Browse files Browse the repository at this point in the history
Added `babel/no-invalid-this`
  • Loading branch information
jquense committed Nov 2, 2016
2 parents c0a49d2 + 7e00840 commit 026eab8
Show file tree
Hide file tree
Showing 6 changed files with 1,485 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -34,7 +34,8 @@ original ones as well!).
"babel/arrow-parens": 1,
"babel/no-await-in-loop": 1,
"babel/flow-object-type": 1,
"babel/func-params-comma-dangle": 1
"babel/func-params-comma-dangle": 1,
"babel/no-invalid-this": 1
}
}
```
Expand All @@ -50,6 +51,7 @@ Each rule corresponds to a core `eslint` rule, and has the same options.
- `babel/object-curly-spacing`: doesn't complain about `export x from "mod";` or `export * as x from "mod";` (🛠 )
- `babel/object-shorthand`: doesn't fail when using object spread (`...obj`)
- `babel/arrow-parens`: Handles async functions correctly (🛠 )
- `babel/no-invalid-this`: doesn't fail when inside class properties (`class A { a = this.b; }`)

The following rules are not in `eslint`, but are relevant only to syntax that is not specified by
the current JavaScript standard or supported by `eslint`.
Expand Down

0 comments on commit 026eab8

Please sign in to comment.