Deejers
Deejers

Reputation: 3497

ESLint: Prevent Arrow Function Use in Javascript (I grew up calling them Lambda Functions)

I have a JavaScript project that I'd like to prevent the use of lambda expression functions =>.

Is there an ESLint rule I can use to help enforce this?

I'm working with Visual Studio Code.

(I've searched and tested and guessed for a couple hours...)

Upvotes: 0

Views: 514

Answers (1)

Rashad Ibrahimov
Rashad Ibrahimov

Reputation: 3309

Possible to use eslint-plugin-es with es/no-arrow-functions rule. Reference here

P.S. it's not lambda, but arrow functions :)

Upvotes: 2

Related Questions