TristonJ / eslint-plugin-prefer-arrow

ESLint plugin to prefer arrow functions
MIT License
54 stars 10 forks source link

Is there a way not to detect the object properties #33

Open lastnigtic opened 3 years ago

lastnigtic commented 3 years ago

This is my case:

const a = {
  // no want to be detected
   say() {}
}

Looking for helps!

Tzahile commented 2 years ago

Hi, this is very important, and even more for all of the Vuejs users! Vue has data in its script, and each of them is marked wrong, although this is the recommended syntax by Vue core team

image

ramiro-rivera commented 2 years ago

Is this something that would be not-a-complete-rewrite level of difficulty to fix/implement? I could take a look at implementing it (have written some custom rules) with a bit of guidance from a maintainer :)