4.1.0 β€’ Published 1 year ago

@putout/plugin-remove-iife v4.1.0

Weekly downloads
1,552
License
MIT
Repository
github
Last release
1 year ago

@putout/plugin-remove-iife NPM version

An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined.

(c) MDN

🐊Putout plugin adds ability to find and remove IIFE. Check out in 🐊Putout Editor:

Install

npm i @putout/plugin-remove-iife

Rule

{
    "rules": {
        "remove-iife": "on"
    }
}

❌ Example of incorrect code

(function() {
    console.log('hello');
})();

((a) => fn(a))(value);
((a, b) => fn(a, b))(value, value2);

βœ… Example of correct code

console.log('hello');
fn(value);
fn(value, value2);

License

MIT

4.1.0

1 year ago

4.0.0

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.1.0

4 years ago

1.0.0

4 years ago