Rene Saarsoo
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}) {...
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); }...
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...
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...
For example this code: ``` js /** * File comment */ /** * Class comment */ function Employee() { this.alive = true; } /** * Method comment */ Employee.prototype.setSkills =...
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,...
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....
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...