Is it possible to force the following rule by eslint?
For example,
I checked the official document ( https://eslint.org/docs/rules/ ), but I couldn't find appropriate rules. I wonder if some kind of custom rules can realize this.
You can use max-params rule. https://eslint.org/docs/rules/max-params Set the max value to 1.