-
-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(linter): eslint-plugin-unicorn/no-useless-undefined #3870
Comments
I'm trying to implement this rule but I have one problem. the eslint version strip some whitespace and I'm not sure if I should do it exactly the same or not. Example:
It's seem to me that you don't plan to add rules like https://eslint.org/docs/latest/rules/no-irregular-whitespace should i just stip the undefined keyworld nothing else or should i do it like eslint ? |
Let's not worry about the whitespace. But if you really want to give it a try, you can follow the implementation in its implementation, and you'll end up in https://github.com/sindresorhus/eslint-plugin-unicorn/blob/1deb9bb5edf27fdb2f656add11c924dfa59fdac9/rules/fix/replace-node-or-token-and-spaces-before.js |
To get started, run
The text was updated successfully, but these errors were encountered: