'Yarn and npm has different in eslint

I use yarn to run a js node project using the IDE VS Code which has the Eslint extension installed.

in its use it turns out in yarn, Eslin does not want parentheses but when using npm can do parentheses.

The question is is there anything wrong with my yarn? and how to make settings so that my yarn can do parentheses without adding configurations.

Example parentheses code from other team use with npm and get a warning when using yarn



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source