Rene Saarsoo

Results 101 issues of Rene Saarsoo

When transforming a function with two objects that have the same field: ```js function fn(a, b) { console.log(a.foo, b.foo); } ``` Lebab produces the following: ```js function fn({foo}, {foo}) {...

bug

Currently this code: ``` js function foo() { var items = Array.prototype.slice.call(arguments); console.log(items); } ``` will be transformed to: ``` js function foo(...args) { var items = Array.prototype.slice.call(args); console.log(items); }...

enhancement

Lebab will currently produce invalid ES2015 code for `super()`: - [ ] `super()` must be called before any references to `this`. The following code will fail: ``` js constructor() {...

Currently `for-of` transform can handle the case where user has provided a name for the loop variable: ``` js for (let i = 0; i < fruits.length; i++) { let...

enhancement

Running the following code will log `undefined`: ``` js fn(); var foo = "hello"; function fn() { console.log(foo); } ``` but after transforming it to `let`, the following will give...

bug

For example this code: ``` js /** * File comment */ /** * Class comment */ function Employee() { this.alive = true; } /** * Method comment */ Employee.prototype.setSkills =...

bug

For example, the below code should not be converted to let/const: ``` var a = 1; var {a, b} = createObj(); ``` Lebab understand that `a` is a repeated variable,...

bug

When running `npm run test`, not all tests pass, but instead fail with syntax error. **To Reproduce** 1. Clone the repository 2. Check out `master` branch 3. `npm ci` 4....

dev

What are your thoughts about pulling JavaScript files also into the linting process? Two things I'd like to check with a linter: - Unused step definitions (a step is defined...

When using styled-components in React Native, I can write CSS like: ``` const MyView = styled.View` aspect-ratio: 2; margin-horizontal: 10px; padding-vertical: 20px; `; ``` But when seeing these properties, the...

feature request