standard icon indicating copy to clipboard operation
standard copied to clipboard

Still impossible to use Vue plugin

Open ArmorDarks opened this issue 6 years ago • 6 comments

See #750 and #1183

Mentioned issues were closed without any resolution. However, it is still impossible to use eslint-plugin-vue with standard without opting to use eslint-plugin-standard and regular Eslint configuration file or standardx.

ArmorDarks avatar May 24 '19 18:05 ArmorDarks

Thanks for re-opening this. Do you have a suggestion for how to proceed at resolving this issue?

feross avatar Aug 12 '19 02:08 feross

To be honest, I'm not sure how to handle it.

It's basically the same issue as #1283 and it will emerge every time standard needs to be used with newer technologies. Unfortunately, those techs are popping up too often and developers are forced to adapt to them quickly. However, standard can't and that makes it hard to sell standard to stakeholders.

Options:

  1. For such cases use standardx — though, it's a deviation from standard vision. Kinda makes standard itself not that useful.
  2. Incorporate any required changes right into the standard — that will bloat lib with not essential features. Besides, as shows experience with TypeScript — it takes wayyy to long, to the point where people start to use other linters just because they can't use it with important tech right now.
  3. Allow to add and override rules — unfortunately, it's a deviation from standard vision too.
  4. Provide the way to extend or override rules with standard plugins — they'd be a bridge between eslint rules and standard. However, in fact, it's the same as 3, but only masked.

ArmorDarks avatar Aug 12 '19 09:08 ArmorDarks

@ArmorDarks how do you feel about #703?

mightyiam avatar Aug 12 '19 09:08 mightyiam

Honestly, I'm leaning towards just supporting flags that add extra rules and make fixes for each type of environment we want to support.

standard --react
standard --vue
standard --typescript
standard --typescript --react // allow them to be stacked

Then, most users can just avoid ESLint plugins and the extra work to install them, configure them, debug them, etc. and we can even start to add additional opinionated rules for React apps, Vue apps, etc.

We can still keep standard --plugin around as an escape hatch (like we do today) but hopefully a lot fewer users will need to use it.

Thoughts?

feross avatar Aug 12 '19 22:08 feross

I prefer my #703. With #703, you'd install and keep updated a set of 'standard' packages and then you'd not need to be concerned with flags, because standard will automatically detect and use the installed packages. Flags seem contrary to what standard is trying to be - a zero configuration utility. I wouldn't like to diverge from the beauty of simply running standard. Yet, installing one or more packages to support a specific transpiled-to-JS language or a library seems reasonable to me.

mightyiam avatar Aug 13 '19 03:08 mightyiam

Just for the history, the relevant discussion keeps going here #1356

ArmorDarks avatar Aug 14 '19 19:08 ArmorDarks