eslint-plugin-eslint-wrap-params

1.0.3 • Public • Published

/##### ESLINT Custom Rule to wrap paramters in arrow functions with parentheses and autofix it #######/

  • This is to specifically handle instances where you try to remove unused variables references in a single line without wrapping your arguments in parenthses.

  • Sample below:

  • Fixed a critical bug witht the autofix mapping over the Node Declarations

fn = e => { }

  • transforms to

fn => {}

  • when used with no-unused-vars

  • we wrap the function arguments to prevent this issue

npx eslint yourscript.js --fix

fn = (e) => {}

Package Sidebar

Install

npm i eslint-plugin-eslint-wrap-params

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

2.15 kB

Total Files

4

Last publish

Collaborators

  • devanandragland