[Vuejs]-Create ESLint configuration that works for both Vue 2 and Vue 3

0👍

You can use different majors of the package for different majors of Vue. Let’s say your package is awesome-eslint-plugin.

The project’s .eslintrc.yml would look like this, regardless of Vue version:

root: true
extends:
 - 'plugin:awesome-eslint-plugin'

In Vue2 projects install awesome-eslint-plugin@^2.
In Vue3 projects install awesome-eslint-plugin@^3.

Or @latest and @next.

Leave a comment